<table class="table table-hover portlet light bg-inverse" id="fullTable">
    <thead>
        <tr>
            <th>No.</th>
            <th> P. Name</th>
            <th>P. No</th>
            <th> No. Visits</th>
            <th> P. History</th>
            <th> Examination</th>
            <th> Investigation</th>
            <th> Antenatal</th>
            <th> Gyna</th>
            <th> US Gyna</th>
            <th> US Antenatal</th>
            <th> Sonar</th>
            <th> operation</th>
        </tr>
    </thead>
    <tbody>
        {assign var="i" value="1"}
        {foreach $allData as $data}
        <tr class="odd gradeX">
            <td>{$i}</td>
            <td>
                <a href="{$hosturl}/controllers/patienthistory.php?ac=show&patientid={$data.patientid}" target="_new">{$data.wifeName}</a>
            </td>
            <td>{$data.statusno}</td>
            <td> {$data.visitCount}</td>
            <td> {if $data.patienthistory == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.examination == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.investigation == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.antenatal == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.gyna == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.usgyna == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.usant == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.sonar == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
            <td> {if $data.operation == 1 }<i class="fa fa-check" style="color: #0ADA0A;"></i>{else}<i class="fa fa-close" style="color: red;"></i>{/if}</td>
        </tr>
        {assign var="i" value={$i+1}}
        {/foreach}
    </tbody>
</table>



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