Backend Service

This commit is contained in:
2019-04-07 02:27:09 +00:00
parent 0ae9b76f97
commit 4fa09b12bc
5 changed files with 576 additions and 217 deletions
@@ -24,34 +24,34 @@
</tr>
</thead>
<tbody>
<?php
$darr = array();
$patient_list = isset($patient_list) ? $patient_list : $darr;
<?php
$darr = array();
$patient_list = isset($patient_list) ? $patient_list : $darr;
//print_r($patient_list);
$icc=0;
foreach($patient_list as $prow){
$icc++;
?>
$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>
<?
}
?>
<tr>
<td><?=$icc?></td>
<td><?=$prow->firstname?> <?=$prow->lastname?></td>
<td><?=$prow->phone?></td>
<td><a href="/patient/chart"><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>Name</th>
<th>Phone</th>
<th>Chart</th>
<th>Status</th>