You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.5 KiB
96 lines
2.5 KiB
2 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @package OpenEMR
|
||
|
* @link
|
||
|
* @author Ken Schaefer <kschaefer@harmonyhealthmedical.com>
|
||
|
* @copyright Copyright (c) 2022 Ken Schaefer
|
||
|
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
|
||
|
*/
|
||
|
|
||
|
require_once("../../globals.php");
|
||
|
require_once("$srcdir/forms.inc");
|
||
|
require_once("$srcdir/options.inc.php");
|
||
|
require_once("attendance.class.php");
|
||
|
|
||
|
use OpenEMR\Common\Csrf\CsrfUtils;
|
||
|
use OpenEMR\Core\Header;
|
||
|
use OpenEMR\Billing\BillingUtilities;
|
||
|
|
||
|
if (!empty($_POST)) {
|
||
|
if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
|
||
|
CsrfUtils::csrfNotVerified();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$attendance = new Attendance();
|
||
|
|
||
|
$pid = (isset($_GET['pid'])) ? $_GET['pid'] : 0;
|
||
|
|
||
|
if(!empty($_GET['pid'])) {
|
||
|
$data_query = $attendance->getScofflawData($pid);
|
||
|
$data_results = sqlStatement($data_query);
|
||
|
|
||
|
$appt_query = $attendance->getScofflawAppointments($pid);
|
||
|
$appt_results = sqlStatement($appt_query);
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<title><?php echo xlt('Scofflaw Report'); ?></title>
|
||
|
|
||
|
<?php Header::setupHeader(['datetime-picker', 'report-helper']); ?>
|
||
|
|
||
|
<style>
|
||
|
.container {
|
||
|
margin: 10px 0;
|
||
|
max-width: 100%;
|
||
|
width: 100%;
|
||
|
}
|
||
|
.ns {
|
||
|
background: rgb(51, 204, 255);
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body class="body_top">
|
||
|
<?php foreach($data_results as $row) { ?>
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-md-2">
|
||
|
<h2><?php echo $row['lname'] . ", " . $row['fname']; ?></h2>
|
||
|
<h3><?php echo $row['DOB']; ?></h3>
|
||
|
</div>
|
||
|
<div class="col-md-10">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php } ?>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead class="thead-light">
|
||
|
<tr>
|
||
|
<th>Date</th>
|
||
|
<th>Time</th>
|
||
|
<th>Title</th>
|
||
|
<th>Status</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php foreach($appt_results as $appt) { ?>
|
||
|
<tr <?php if($appt['pc_apptstatus'] == '?' || $appt['pc_apptstatus'] == '%') echo "class='ns'" ?>>
|
||
|
<td><?php echo $appt['pc_eventDate']; ?></td>
|
||
|
<td><?php echo $appt['pc_startTime']; ?></td>
|
||
|
<td><?php echo $appt['pc_title']; ?></td>
|
||
|
<td><?php echo $appt['pc_apptstatus']; ?></td>
|
||
|
</tr>
|
||
|
<?php } ?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|