<table class="table table-hover portlet light bg-inverse" id="repTable">
    <thead>
        <tr>
            <th>No.</th>
            <th>Status No.</th>
            <th>
                Patient Name
            </th>
            <th>
                Husband Name
            </th>
            <th>Date </th>
        </tr>
    </thead>
    <tbody>
        {assign var="i" value="1"}
        {foreach $allData as $data}
        <tr class="odd gradeX">
            <td>{$i}</td>
            <td>{$data.statusno}</td>
            <td>
                <a href="{$hosturl}/controllers/patienthistory.php?ac=show&patientid={$data.patientid}#tab_2_6" target="_new">{$data.wifename}</a>
            </td>
            <td>
                {$data.husdandname}
            </td>
            <td>
                {$data.obsdate}
            </td>

        </tr>
        {assign var="i" value={$i+1}}
        {/foreach}
    </tbody>
</table>


{literal}
<script type="text/javascript" >
    $('#repTable').dataTable();
</script>
{/literal}



<div class="modal-body printtable" id="printd" style="display:none">
    <center><h4 class="modal-title">Termination report</h4></center>
    <table class="table table-hover portlet light bg-inverse" >
        <thead>
            <tr>
                <th>No.</th>
                <th>Status No.</th>
                <th>
                    Patient Name
                </th>
                <th>
                    Husband Name
                </th>
                <th>Date </th>
            </tr>
        </thead>
        <tbody>
            {assign var="i" value="1"}
            {foreach $allData as $data}
            <tr class="odd gradeX">
                <td>{$i}</td>
                <td>{$data.statusno}</td>
                <td>
                    {$data.wifename}
                </td>
                <td>
                    {$data.husdandname}
                </td>
                <td>
                    {$data.obsdate}
                </td>

            </tr>
            {assign var="i" value={$i+1}}
            {/foreach}
        </tbody>
    </table>
</div>