Files
MermsEmrWeb/providerwww/application/views/provider/components/patient_listing.php
T
2019-04-08 23:32:41 +00:00

65 lines
2.7 KiB
PHP

<div class="card card-statistics h-100 m-b-30">
<div class="card-header d-flex align-items-center justify-content-between">
<div class="card-heading">
<h4 class="card-title">Patients List</h4>
</div>
<div class="dropdown">
<a class="btn btn-round btn-inverse-primary btn-xs" href="/patient/addnew">Add New </a>
<a class="btn btn-round btn-inverse-primary btn-xs" href="/patient/findpatient">Find Patient </a>
</div>
</div>
<div class="card-body scrollbar scroll_dark pt-0" style="max-height: 630px;">
<div class="datatable-wrapper table-responsive">
<table id="datatable" class="table table-borderless table-striped">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Phone</th>
<th>Chart</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$darr = array();
$patient_list = isset($patient_list) ? $patient_list : $darr;
//print_r($patient_list);
$icc = 0;
foreach ($patient_list as $prow) {
$icc++;
?>
<tr>
<td><?= $icc ?></td>
<td><?= $prow->firstname ?> <?= $prow->lastname ?></td>
<td><?= $prow->phone ?></td>
<td><a href="/patient/chart/<?= $prow->patient_id ?>"><button type="button" class="btn btn-info btn-sm">Chart</button></a></td>
<td><span class="badge badge-success-inverse">Active</span></td>
<td> <a class="mr-3" href="javascript:void(0);" onclick="selectPatient(<?= $prow->patient_id ?>)" ><i class="fe fe-edit"></i></a><a href="javascript:void(0);" onclick="calendarPatient(<?= $prow->patient_id ?>)"><i class="fe fe-calendar"></i></a></td>
</tr>
<?
}
?>
</tbody>
<tfoot>
<tr>
<th>#</th>
<th>Name</th>
<th>Phone</th>
<th>Chart</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>