5175 lines
230 KiB
PHP
5175 lines
230 KiB
PHP
<?php include('techsyn_header.php'); ?>
|
|
<!-- Main Content Container for side bar and body-->
|
|
<div class="main-container ace-save-state" id="main-container">
|
|
<script type="text/javascript">
|
|
try {
|
|
ace.settings.loadState('main-container')
|
|
} catch (e) {}
|
|
</script>
|
|
<?php include('techsyn_sidebar.php'); ?>
|
|
|
|
<!--breadcrumb-->
|
|
<?php
|
|
$current_month = date('m');
|
|
$current_year = date('Y');
|
|
$current_day = date('d');
|
|
?>
|
|
|
|
<div class="main-content">
|
|
<div class="main-content-inner">
|
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
|
<ul class="breadcrumb">
|
|
<li class="active">Reports</li>
|
|
<li class="active">MIS Report</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- End of breadcrumb -->
|
|
|
|
</div>
|
|
<div class="page-content">
|
|
<div id="flexigridDiv" class="table-responsiv">
|
|
<h4 style="font-size: 15px; text-align: center; font-weight: bold">Reports</h4>
|
|
|
|
|
|
|
|
<table class="table table-bordered" style="width: 100%">
|
|
|
|
<tr>
|
|
<td width="50%" align="left"><b>
|
|
<h4>Report name</h4>
|
|
</b></td>
|
|
<td align="left"><select class="chosen-select" id="report_type" name="report_type" onchange="show_report(this.value)">
|
|
|
|
<option value="" disabled selected>Please Select a Report</option>
|
|
|
|
<?php
|
|
$sql_report = "SELECT a.report_id AS report_id, a.report_name AS repotName FROM report_master a left join assign_report b on a.report_id=b.report_id where b.role_id='" . $_SESSION['RoleId'] . "' and report_type = 'R' ";
|
|
// echo $sql_report;
|
|
// where b.role_id='". $_SESSION['RoleId']."'
|
|
?>
|
|
|
|
<?php
|
|
|
|
echo generate_options($sql_report, '', 'report_id', 'repotName', 'report_type', '') ?>
|
|
|
|
</select></td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<form id="long_term_report" name="long_term_report">
|
|
<table id="long_term" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>PEME LONG TERM Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month" name="month" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
<td><select class="chosen-select form-control" id="year1" name="year1" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
<!-- <option value="<?php echo $c ?>"><?php echo $c ?></option>
|
|
<option value="<?php echo $d ?>"><?php echo $d ?></option>
|
|
<option value="<?php echo $e ?>"><?php echo $e ?></option>
|
|
-->
|
|
|
|
|
|
</select></td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="long_term_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="long_term_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<form id="short_term_report" name="short_term_report">
|
|
<table id="short_term" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>PEME SHORT TERM Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month2" name="month2" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
<td><select class="chosen-select form-control" id="year2" name="year2" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
|
|
</select></td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="short_term_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="short_term_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="detention_report" name="detention_report">
|
|
<table id="detention" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>from date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>end date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Detention Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="date1" name="date1" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
<!-- <div class="input-group">
|
|
<select class="chosen-select form-control" id="month6" name="month6"
|
|
data-placeholder="Choose month" width="50%">
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div> -->
|
|
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="date2" name="date2" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="detention_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="detention_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="wah_report" name="wah_report">
|
|
<table id="wah" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Work at height Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month_1" name="month_1" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
<td><select class="chosen-select form-control" id="year_1" name="year_1" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
<!-- <option value="<?php echo $c ?>"><?php echo $c ?></option>
|
|
<option value="<?php echo $d ?>"><?php echo $d ?></option>
|
|
<option value="<?php echo $e ?>"><?php echo $e ?></option>
|
|
-->
|
|
|
|
|
|
</select></td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="wah_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="wah_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<form id="health_index_report" name="health_index_report">
|
|
<table id="health_index" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Division</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Medical Examination Type</strong>
|
|
</td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Health Index Report</td>
|
|
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="startDate2" name="startDate2" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="endDate2" name="endDate2" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="bu_id" name="bu_id" data-placeholder="Choose employee/contractor" width="50%">
|
|
<option value="" disabled selected>please select a report</option>
|
|
|
|
<?
|
|
$sqli = "select * from bussiness_unit ";
|
|
error_log("sql" . $sqli);
|
|
$resulti = mysqli_query($conn, $sqli);
|
|
while ($rowi = mysqli_fetch_array($resulti)) {
|
|
?>
|
|
<option value="<? echo $rowi['bu_id']; ?>">
|
|
<? echo $rowi['bu_name']; ?>
|
|
</option>
|
|
<?
|
|
}
|
|
?>
|
|
<option value="all">All</option>
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="exam_type" name="exam_type" data-placeholder="Choose employee/contractor" width="50%">
|
|
|
|
<option value="" disabled selected>please select a report</option>
|
|
|
|
|
|
<option value="23">ANNUAL MEDICAL EXAMINATION</option>
|
|
<option value="25">EXECUTIVE HEALTH EXAMINATION</option>
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td align="left"><a href="#" onclick="pohc_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="pohc_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<br>
|
|
<form id="fitness_certificate_report" name="fitness_certificate_report">
|
|
<table id="fitness_certificate" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>From date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Status</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Fitness certificate Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="fitnessDate1" name="fitnessDate1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="fitnessDate2" name="fitnessDate2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="status_fit" name="status_fit" data-placeholder="Choose status" width="50%">
|
|
|
|
<option value="all" selected>All</option>
|
|
<option value="APPROVED">Fit</option>
|
|
<option value="">Sick</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="fitness_certificate_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="fitness_certificate_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<form id="opd_report_ailmentwise" name="opd_report_ailmentwise">
|
|
<table id="opdreportailmentwise" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>OPD Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month4" name="month4" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
<td><select class="chosen-select form-control" id="year4" name="year4" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
|
|
|
|
</select></td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="opd_report_ailmentwise_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="opd_report_ailmentwise_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<form id="opd_report" name="opd_report">
|
|
<table id="opdreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Date</strong></td>
|
|
<!-- <td style="font-size: 10px" width="15%"><strong>Year</strong></td> -->
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>OPD Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startDate1" name="startDate1" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="opd_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="opd_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<form id="ehc_report" name="ehc_report">
|
|
<table id="ehcreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong> Start Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Executive Follow-up Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="ehc_startDate" name="ehc_startDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="ehc_endDate" name="ehc_endDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="ehc_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="ehc_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<form id="dlme_report" name="dlme_report">
|
|
<table id="dlmereport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong> Start Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>DLMI Examination Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="dlme_startDate" name="dlme_startDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="dlme_endDate" name="dlme_endDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="dlme_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="dlme_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<form id="ambulance_recovery" name="ambulance_recovery">
|
|
<table id="ambulance_recovery_report" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong> Start Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Ambulance Recovery Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="ambulance_recovery_startDate" name="ambulance_recovery_startDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="ambulance_recovery_endDate" name="ambulance_recovery_endDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="ambulance_recovery_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="ambulance_recovery_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
|
|
<form id="daily_report" name="daily_report">
|
|
<table id="dailyreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Only Referral</strong></td>
|
|
<td style=" font-size: 10px" width="15%"><strong>Category</strong></td>
|
|
|
|
<td style=" font-size: 10px" width="5%"><strong>Case Type</strong></td>
|
|
|
|
<td class="deten_sub_cat_div" style="display:none; font-size: 10px" width="15%">
|
|
<strong>Sub Category</strong>
|
|
</td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily cases Report</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="opdDateDailyFrom" name="opdDateDailyFrom" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="opdDateDailyTo" name="opdDateDailyTo" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="form-control" style="width: 180px; font-size: 10px; height: 25px;" id="only_referral" name="only_referral" aria-placeholder="only Referred Patient Report">
|
|
<option value="N" selected>No</option>
|
|
<option value="Y">Yes</option>
|
|
|
|
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="form-control" onchange="detention_sub_category(this.value)" style="width: 180px; font-size: 10px; height: 25px;" id="detention_cat" name="detention_cat" aria-placeholder="Please select Category">
|
|
<option selected value="">ALL</option>
|
|
<?php echo generateOption("patient_category", "patient_cat_name", "patient_cat_id", "", "") ?>
|
|
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select name="case_type" id="case_type">
|
|
|
|
<option selected value="ALL">ALL</option>
|
|
<?php echo generateOption('case_type', 'case_name', 'case_code', '', '') ?>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
<td class="deten_sub_cat_div" style="display:none">
|
|
<div class="input-group ">
|
|
<select class="form-control" style="width: 180px; font-size: 10px; height: 25px;" id="detention_sub_cat" name="detention_sub_cat" aria-placeholder="Please select Category">
|
|
<option value="" disabled selected>Please select Category</option>
|
|
<option value="dep">Dependent</option>
|
|
<option value="vis">visitor</option>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
<td align="left"><a href="#" onclick="daily_cases_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_cases_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
|
|
|
|
<form id="chronic_medication_medicine_report" name="chronic_medication_medicine_report">
|
|
<table id="chronic_medication_report" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Chronic Illness</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Chronic Medication Medicine Report</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="opdDate1" name="opdDate1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="opdDate2" name="opdDate2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
<td>
|
|
<div style="width: 150px;" class="input-group">
|
|
<select name="chronic_illness" id="chronic_illness" class="form-control select2">
|
|
<option selected value="ALL">ALL</option>
|
|
<?php echo generateOption('abnormality', 'abnormality_name', 'abnormality_id', '', '') ?>
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td align="left"><a href="#" onclick="chronic_medication_medicine_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="chronic_medication_medicine_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<br>
|
|
|
|
<form id="diagnosis_opd_report" name="diagnosis_opd_report">
|
|
<table id="diagnosis_report" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Diagnosis</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Diagnosis Wise Opd Report</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="DiagDateFrom" name="DiagDateFrom" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="DiagDateTo" name="DiagDateTo" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
<td>
|
|
<div style="width: 150px;" class="input-group">
|
|
<select name="ailment_id" id="ailment_id" class="form-control select2">
|
|
<option selected value="ALL">ALL</option>
|
|
<?php echo generateOptionForMultipleActive('ailment', 'ailment_name', 'ailment_id', '', '') ?>
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td align="left"><a href="#" onclick="diagnosis_opd_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="diagnosis_opd_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<!-- vision report -->
|
|
|
|
<form id="driver_vision_report" name="driver_vision_report">
|
|
<table id="drivervisionreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>start date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>end date</strong></td>
|
|
<td style=" font-size: 10px" width="15%"><strong>MEDICAL EXAMINATION</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Drivers Vision Report</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker " id="start_date_excel" name="start_date_excel" type="text" data-date-format="yyyy/mm/dd" placeholder="Start Date(yyyy/mm/dd)"> <span class="input-group-addon">
|
|
<i class="ace-icon fa fa-calendar"></i>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker " id="end_date_excel" name="end_date_excel" type="text" data-date-format="yyyy/mm/dd" placeholder="End Date(yyyy/mm/dd)"> <span class="input-group-addon"> <i class="ace-icon fa fa-calendar"></i>
|
|
|
|
</div>
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="form-control select2" name="checkup_type_id_m" id="checkup_type_id_m" value="checkup_type_id_m" style="font-size: 15px;">
|
|
<option value="">--Select Checkup Type--</option>
|
|
<?php
|
|
$sqli = "select * from checkup_type where type_status='Active'";
|
|
error_log("sql" . $sqli);
|
|
$resulti = mysqli_query($conn, $sqli);
|
|
while ($rowi = mysqli_fetch_array($resulti)) {
|
|
?>
|
|
<option value="<?php echo $rowi['checkup_type_id']; ?>">
|
|
<?php echo $rowi['checkup_type_name']; ?></option>
|
|
<?php
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="driver_vision_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="driver_vision_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<!-- ///// training / -->
|
|
<form id="training_report" name="training_report">
|
|
<table id="trainingreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<!-- <td style="font-size: 10px" width="15%"><strong>Year</strong></td> -->
|
|
<td style=" font-size: 10px" width="15%"><strong>Wellness/Training Program
|
|
Name</strong>
|
|
</td>
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Department</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Wellness/Training Program Report</td>
|
|
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="form-control" onchange="training_date(this.value)" style="width: 180px; font-size: 10px; height: 25px;" id="training_id" name="training_id" aria-placeholder="Please select training">
|
|
<option value="" disabled selected>Please select training</option>
|
|
<?php $assig_traings = "select * from assign_training a left join training_schedule s on a.training_schedule_id=s.schedule_id left join training_master m on s.training_id=m.training_master_id where a.status in('active','complete') ";
|
|
$result_traings = mysqli_query($conn, $assig_traings);
|
|
|
|
while ($row_traings = mysqli_fetch_assoc($result_traings)) {
|
|
?>
|
|
<option value="<?php echo $row_traings['assign_training_id'] . "-" . $row_traings['training_schedule_id'] ?>">
|
|
<?php echo $row_traings['training_name'] . "(" . $row_traings['trainer_name'] . "-" . $row_traings['date_assigned'] . ")" ?>
|
|
</option>
|
|
|
|
<?php
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="trainingDate1" name="trainingDate1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="trainingDate2" name="trainingDate2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select name="training_dept_type" id="training_dept_type">
|
|
|
|
<option value="ALL" selected>ALL</option>
|
|
<?php echo generateOption('department', 'dept_name', 'dept_id', '', '') ?>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
<td align="left"><a href="#" onclick="training_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="training_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<br>
|
|
<form id="aod_report" name="aod_report">
|
|
<table id="aod" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>AOD Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="injuryDate1" name="injuryDate1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="injuryDate2" name="injuryDate2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="aod_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="aod_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="add_direct_item_issue" name="add_direct_item_issue">
|
|
<table id="adii" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Add Direct Item Issue Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="adii_date1" name="adii_date1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="adii_date2" name="adii_date2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="addi_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="addi_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="direct_store_return_item" name="direct_store_return_item">
|
|
<table id="dsri" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Direct Store Return Item</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="dsri_date1" name="dsri_date1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="dsri_date2" name="dsri_date2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="dsri_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="dsri_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="hygiene_gaps_report" name="hygiene_gaps_report">
|
|
<table id="hygiene_gaps" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Select Employee</strong></td>
|
|
|
|
|
|
<td style="font-size: 10px" width="10%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Medicine Issue Report</td>
|
|
|
|
<td><select style="height: 30px; font-size: 10px" class="chosen-select form-control" name="empName" data-placeholder="Select Employee" id="empName" autofocus="autofocus" required>
|
|
<option value="All">All Employee</option>
|
|
<?php echo getEmployeeOptions() ?>
|
|
</select></td>
|
|
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="startDate" name="startDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="endDate" name="endDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="medicine_issue_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="medicine_issue_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="pre_wellness_report" name="pre_wellness_report">
|
|
<table id="pre_wellness" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Select Employee</strong></td>
|
|
|
|
<td style="font-size: 10px;" width="15%">Wellness Program</td>
|
|
|
|
<td style="font-size: 10px" width="10%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Pre & Post Wellness comparison Report</td>
|
|
|
|
<td><select style="height: 30px; font-size: 10px" class="chosen-select form-control" onchange="getProgram(this.value);" name="empName" data-placeholder="Select Employee" id="empName" autofocus="autofocus" required>
|
|
<option value="">Select</option>
|
|
<?php echo getEmployeeOptions() ?>
|
|
</select></td>
|
|
|
|
<td>
|
|
<select style="height: 30px; font-size: 10px" class="form-control" name="pro_id" data-placeholder="Select Program" id="pro_id" autofocus="autofocus" required>
|
|
|
|
</select>
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="pre_wellness_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="pre_wellness_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="daily_log_report" name="daily_log_report">
|
|
<table id="daily_log" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Date</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily medicine log report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startDate1" name="startDate1" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="daily_log_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_log_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="daily_respiratory_log_report" name="daily_respiratory_log_report">
|
|
<table id="daily_respiratory_log" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Date</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily Respiratory report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startdate7" name="startdate7" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="daily_respiratory_log_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_respiratory_log_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="csr_report" name="csr_report">
|
|
<table id="csr_table" class="table table-bordered" style="width: 100%; display: none;">
|
|
<thead>
|
|
<tr>
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>CSR PROGRAM</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>CSR Program Report</td>
|
|
<td>
|
|
<select class="form-control select2" name="program_name" id="program_name">
|
|
<option value="" disabled selected>Please select Csr Program Name</option>
|
|
<?php
|
|
$sqlcsr = "SELECT program_name from `csr_program` group by program_name asc";
|
|
echo generate_options($sqlcsr, '', 'program_name', 'program_name', '', ''); ?>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="csr_date1" name="csr_date1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="csr_date2" name="csr_date2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
|
|
<td align="left"><a href="#" onclick="csr_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="csr_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<!-- ////procurement Report -->
|
|
|
|
<form id="procurement_report" name="procurement_report">
|
|
<table id="procurement_table" class="table table-bordered" style="width: 100%; display: none;">
|
|
<thead>
|
|
<tr>
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Procurement Report</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="procurement_date1" name="procurement_date1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="procurement_date2" name="procurement_date2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
|
|
<td align="left"><a href="#" onclick="procurement_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="procurement_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<!-- asset proc report -->
|
|
<form id="asset_procurement_report" name="asset_procurement_report">
|
|
<table id="asset_procurement_table" class="table table-bordered" style="width: 100%; display: none;">
|
|
<thead>
|
|
<tr>
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Asset Management Report</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="asset_procurement_date1" name="asset_procurement_date1" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="asset_procurement_date2" name="asset_procurement_date2" type="text" data-date-format="dd-mm-yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
|
|
<td align="left"><a href="#" onclick="asset_procurement_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="asset_procurement_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="daily_respiratory_pwt_log_report" name="daily_respiratory_pwt_log_report">
|
|
<table id="daily_respiratory_pwt_log" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Date</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily Respiratory Pwt report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startdate7" name="startdate7" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="daily_respiratory_pwt_log_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_respiratory_pwt_log_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="consumables_report" name="consumables_report">
|
|
<table id="consumables" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Consumables report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startDate" name="startDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="endDate" name="endDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="consumables_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="consumables_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="daily_case_report_form" name="daily_case_report_form">
|
|
<table id="daily_case_report" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily Case report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startopdDate" name="startopdDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="endopdDate" name="endopdDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="daily_case_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_case_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="daily_shift_log_report" name="daily_shift_log_report">
|
|
<table id="daily_shift_log" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>shift</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily medicine shift log report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startDate1" name="startDate1" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><select style="width: 180px;" name="shift" id="shift">
|
|
<option value="Please select an option" disabled selected></option>
|
|
<?php
|
|
$generate_option_sql = "select status_name,shift_status_id from shift_status where ohc_location_id='" . $_SESSION['current_ohcttype'] . "' and is_shift='Y'";
|
|
|
|
$result_generate_option_sql = mysqli_query($conn, $generate_option_sql);
|
|
|
|
while ($row_generate_option_sql = mysqli_fetch_assoc($result_generate_option_sql)) {
|
|
?>
|
|
<option value="<?php echo $row_generate_option_sql['shift_status_id'] ?>">
|
|
<?php echo $row_generate_option_sql['status_name'] ?></option>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
</select></td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="daily_shift_log_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_shift_log_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<form id="monthly_expense_report" name="monthly_expense_report">
|
|
<table id="monthly_expense" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>Month</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Monthly Expense report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month5" name="month5" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="year5" name="year5" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$a = date('Y', strtotime('-1 year'));
|
|
$b = date("Y");
|
|
$c = date('Y', strtotime('+1 year'));
|
|
$d = date('Y', strtotime('+2 year'));
|
|
$e = date('Y', strtotime('+3 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="monthly_expense_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="monthly_expense_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<form id="emp_expense_report_form" name="emp_expense_report_form">
|
|
<table id="emp_expense_report" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%">Chargeable?</td>
|
|
|
|
<td style="font-size: 10px" width="15%">Employee Filter</td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Clinical Recovery Report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startexpDate" name="startexpDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="endexpDate" name="endexpDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select name="chargeable" id="chargeable" class="form-control select2">
|
|
<option value="1">Yes</option>
|
|
<option value="0">No</option>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select name="emp_type" id="emp_type" class="form-control select2">
|
|
<option value="1">Employee</option>
|
|
<option value="3">Contractor Employee</option>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="emp_expense_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="emp_expense_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="clinical_recovery_emp_form" name="clinical_recovery_emp_form">
|
|
<table id="clinical_recovery_emp" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
|
|
<!-- <td style="font-size: 10px" width="15%">Chargeable?</td> -->
|
|
|
|
<td style="font-size: 10px" width="20%">Employee Filter</td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Clinical Recovery Report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startexpDate" name="startexpDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="endexpDate" name="endexpDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<!-- <td>
|
|
<div class="input-group">
|
|
<select name="chargeable" id="chargeable" class="form-control select2">
|
|
<option value="1">Yes</option>
|
|
<option value="0">No</option>
|
|
</select>
|
|
</div>
|
|
</td> -->
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select name="emp_id" id="emp_id" class="form-control select2">
|
|
<option value="" disabled selected>--select Employee Name--</option>
|
|
<?php echo getEmployeeOptions(); ?>
|
|
</select>
|
|
</div>
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="emp_clinical_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="emp_clinical_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="clinical_visit_form" name="clinical_visit_form">
|
|
<table id="clinical_visit" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>From Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>To Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Clinical Visit Report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startexpDate" name="startexpDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="endexpDate" name="endexpDate" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="clinical_visit_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="clinical_visit_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="monthly_expense_report_store" name="monthly_expense_report_store">
|
|
<table id="monthly_expensestore" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>Month</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Monthly store Expense report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month15" name="month15" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="year15" name="year15" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$a = date('Y', strtotime('-1 year'));
|
|
$b = date("Y");
|
|
$c = date('Y', strtotime('+1 year'));
|
|
$d = date('Y', strtotime('+2 year'));
|
|
$e = date('Y', strtotime('+3 year'));
|
|
?>
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="monthly_expense_store_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="monthly_expense_store_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="monthly_stock_report_store" name="monthly_stock_report_store" method="get">
|
|
<table id="monthly_stockstore" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>From</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>To</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td> Combine Stock Report OHC and Dispensary</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="startDatestock" name="startDatestock" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="endDatestock" name="endDatestock" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="monthly_stock_store_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="monthly_stock_store_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
<form id="medical_consumption" name="medical_consumption" method="get">
|
|
<table id="med_con" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>From</strong></td>
|
|
<td style="font-size: 10px" width="10%"><strong>To</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Medical Consumption Report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="startDatecon" name="startDatecon" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 80px; font-size: 10px; height: 25px;" id="endDatecon" name="endDatecon" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="medical_consumption_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="medical_consumption_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="yearly_medicine_expense" name="yearly_medicine_expense">
|
|
<table id="yearly_medicine" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>YEAR</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Yearly Expense Report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="year" name="year" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$d = date('Y', strtotime('-1 year'));
|
|
$e = date("Y");
|
|
?>
|
|
|
|
<option value="<?php echo $d ?>"><?php echo $d ?>-<?php echo $e ?>
|
|
</option>
|
|
|
|
<?php
|
|
|
|
$x = date("Y");
|
|
$y = date('Y', strtotime('+1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $x ?>"><?php echo $x ?>-<?php echo $y ?>
|
|
</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="yearly_expense_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="yearly_expense_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="yearly_medicine_expense_store" name="yearly_medicine_expense_store">
|
|
<table id="yearly_medicinestore" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>YEAR</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Yearly store Expense Report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="years" name="years" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$d = date('Y', strtotime('-1 year'));
|
|
$e = date("Y");
|
|
?>
|
|
|
|
<option value="<?php echo $d ?>"><?php echo $d ?>-<?php echo $e ?>
|
|
</option>
|
|
|
|
<?php
|
|
|
|
$x = date("Y");
|
|
$y = date('Y', strtotime('+1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $x ?>"><?php echo $x ?>-<?php echo $y ?>
|
|
</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="yearly_expense_store_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="yearly_expense_store_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="yearly_bio_waste" name="yearly_bio_waste">
|
|
<table id="yearly_bio_medical_waste" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>YEAR</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start Month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End Month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Yearly Bio Waste</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="years" name="years" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$d = date('Y', strtotime('-1 year'));
|
|
$e = date("Y");
|
|
?>
|
|
|
|
<option value="<?php echo $d ?>"><?php echo $d ?>-<?php echo $e ?>
|
|
</option>
|
|
|
|
<?php
|
|
|
|
$x = date("Y");
|
|
$y = date('Y', strtotime('+1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $x ?>"><?php echo $x ?>-<?php echo $y ?>
|
|
</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group" style="width:200px">
|
|
<select class="chosen-select form-control" id="start_month" name="start_month" data-placeholder="Choose Start Month">
|
|
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group" style="width:200px">
|
|
<select class="chosen-select form-control" id="end_month" name="end_month" data-placeholder="Choose End Month">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="yearly_bio_waste_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="yearly_bio_waste_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
|
|
<form id="daily_medicine_expense" name="daily_medicine_expense">
|
|
<table id="daily_medicine" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily Expense Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="year" name="year" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$a = date('Y', strtotime('-1 year'));
|
|
$b = date("Y");
|
|
$c = date('Y', strtotime('+1 year'));
|
|
$d = date('Y', strtotime('+2 year'));
|
|
$e = date('Y', strtotime('+3 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month" name="month" data-placeholder="Choose month">
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="daily_expense_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_expense_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="pending_medexam" name="pending_medexam">
|
|
<table id="pending_med_exam" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>year</strong></td>
|
|
<!-- <td style="font-size: 10px" width="15%"><strong>month</strong></td> -->
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Pending Medical Examination Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="year" name="year" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$a = date('Y', strtotime('-1 year'));
|
|
$b = date("Y");
|
|
$c = date('Y', strtotime('+1 year'));
|
|
$d = date('Y', strtotime('+2 year'));
|
|
$e = date('Y', strtotime('+3 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<!-- <td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control"
|
|
|
|
id="month" name="month"
|
|
|
|
data-placeholder="Choose month" >
|
|
|
|
<option value="1">JANUARY</option>
|
|
<option value="2">FEBRUARY</option>
|
|
<option value="3">MARCH</option>
|
|
<option value="4">APRIL</option>
|
|
<option value="5">MAY</option>
|
|
<option value="6">JUNE</option>
|
|
<option value="7">JULY</option>
|
|
<option value="8">AUGUST</option>
|
|
<option value="9">SEPTEMBER</option>
|
|
<option value="10">OCTOBER</option>
|
|
<option value="11">NOVEMBER</option>
|
|
<option value="12">DECEMBER</option>
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td> -->
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="pending_medexam_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="pending_medexam_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="covid_screening" name="covid_screening">
|
|
<table id="covid_screen" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Covid Screening Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="year_cov" name="year_cov" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$a = date('Y', strtotime('-1 year'));
|
|
$b = date("Y");
|
|
$c = date('Y', strtotime('+1 year'));
|
|
$d = date('Y', strtotime('+2 year'));
|
|
$e = date('Y', strtotime('+3 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month_cov" name="month_cov" data-placeholder="Choose month">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="covid_screening_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="covid_screening_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="covid_monitoring" name="covid_monitoring">
|
|
<table id="covid_monitor" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Covid Monitoring Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="year_cov" name="year_cov" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$a = date('Y', strtotime('-1 year'));
|
|
$b = date("Y");
|
|
$c = date('Y', strtotime('+1 year'));
|
|
$d = date('Y', strtotime('+2 year'));
|
|
$e = date('Y', strtotime('+3 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month_cov" name="month_cov" data-placeholder="Choose month">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="covid_monitoring_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="covid_monitoring_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="less_qty_medi_prescribed" name="less_qty_medi_prescribed">
|
|
<table id="less_qty_medicine_prescribed" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Less Qty Prescribed Medicine Report</td>
|
|
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startDate_l_qty" name="startDate_l_qty" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="endDate_l_qty" name="endDate_l_qty" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="less_qty_medi_pre_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="less_qty_medi_pre_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="monthly_bio_medical" name="monthly_bio_medical">
|
|
<table id="monthly_biowaste" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Start date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>End date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Monthly Bio Medical Waste Report</td>
|
|
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startDate_bm" name="startDate_bm" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="endDate_bm" name="endDate_bm" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="biowaste_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="covid_screening_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="ambulance_report" name="ambulance_report">
|
|
<table id="ambulancereport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Ambulance</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Ambulance Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="month18" name="month18" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
<td><select class="chosen-select form-control" id="year18" name="year18" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
|
|
|
|
</select></td>
|
|
|
|
<td><select class="form-control" name="ambulance_no" id="ambulance_no">
|
|
<option value="" disabled selected>Please select ambulance</option>
|
|
<?php echo generateOption('ambulance_details_new', 'ambulance_number', 'ambulance_number', '', '') ?>
|
|
</select></td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="ambulance_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="ambulance_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="firstaidbox_report" name="firstaidbox_report">
|
|
<table id="firstaidboxreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
`
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>First aid box</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Monthly First Aid Box Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="first_month" name="first_month" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
<td><select class="chosen-select form-control" id="first_year" name="first_year" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
|
|
|
|
</select></td>
|
|
|
|
<!-- <td><select class="chosen-select form-control" id="box_no" name="box_no" data-placeholder="Choose Year">
|
|
|
|
|
|
<option disabled selected>Please select option</option>
|
|
<?php echo generateOption('first_aid_box', "CONCAT(box_code,'-',box_name)", 'box_id', '', ''); ?>
|
|
|
|
|
|
</select></td> -->
|
|
|
|
<td><select multiple class="chosen-select form-control" id="box_loc" name="box_loc" data-placeholder="Choose Year">
|
|
|
|
|
|
|
|
<option selected value='ALL'>All</option>
|
|
<?php
|
|
|
|
$sql_first = "SELECT DISTINCT(`box_loc`) as loc FROM `first_aid_box` ";
|
|
|
|
$resultSet_first = mysqli_query($conn, $sql_first);
|
|
$optionValue = '';
|
|
while ($row_first = mysqli_fetch_array($resultSet_first)) {
|
|
|
|
|
|
$optionValue .= "<option value='" . $row_first['loc'] . "'>" . $row_first['loc'] . "</option>";
|
|
}
|
|
|
|
|
|
// error_log('ooo'.$optionValue);
|
|
echo $optionValue; ?>
|
|
|
|
|
|
</select>
|
|
<input type="hidden" name="box_locs" id="box_locs" />
|
|
</td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="firstaid_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="firstaid_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form id="vaccine_report" name="vaccine_report">
|
|
<table id="vaccinereport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<!-- <td style="font-size: 10px" width="15%"><strong>month</strong></td> -->
|
|
<!-- <td style="font-size: 10px" width="15%"><strong>Year</strong></td> -->
|
|
<td style="font-size: 10px" width="15%"><strong>Vaccine Name</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Vaccination Report</td>
|
|
|
|
<!-- <td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="vaccine_month" name="vaccine_month" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?>selected<?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?>selected<?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?>selected<?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?>selected<?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?>selected<?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?>selected<?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?>selected<?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?>selected<?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?>selected<?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?>selected<?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?>selected<?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?>selected<?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td> -->
|
|
<!-- <td>
|
|
<select class="chosen-select form-control" id="vaccine_year" name="vaccine_year" data-placeholder="Choose Year">
|
|
|
|
<?php
|
|
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php $a ?>" <?php if ($current_year == $a) { ?>selected<?php } ?>><?php $a ?></option>
|
|
<option value="<?php $b ?>" <?php if ($current_year == $b) { ?>selected<?php } ?>><?php $b ?></option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</td> -->
|
|
|
|
<td>
|
|
|
|
<div>
|
|
<input type="text" class="form-control" id="vac_name" name="vac_name" placeholder="Vaccine Name" />
|
|
</div>
|
|
|
|
<div>
|
|
<p> <strong> Vaccines Are:</strong>
|
|
<?php
|
|
$query = "select vaccine_name from vaccine_master ";
|
|
if (!$result = @mysqli_query($conn, $query)) {
|
|
exit(mysqli_error($conn));
|
|
}
|
|
$data = array();
|
|
if (mysqli_num_rows($result) > 0) {
|
|
while ($row = mysqli_fetch_assoc($result)) {
|
|
echo $row['vaccine_name'] . ", ";
|
|
}
|
|
}
|
|
|
|
?>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="vaccine_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="vaccine_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<form id="mediclaim_report" name="mediclaim_report">
|
|
<table id="mediclaimreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Category</strong></td>
|
|
<!-- <td style="font-size: 10px" width="15%"><strong>Year</strong></td> -->
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Mediclaim Report</td>
|
|
|
|
<!-- <td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="vaccine_month" name="vaccine_month" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?>selected<?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?>selected<?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?>selected<?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?>selected<?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?>selected<?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?>selected<?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?>selected<?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?>selected<?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?>selected<?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?>selected<?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?>selected<?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?>selected<?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td> -->
|
|
<td><select class="chosen-select form-control" id="category" name="category" data-placeholder="Choose Year">
|
|
|
|
|
|
|
|
<option value="tml">TML</option>
|
|
<option value="all">ALL EMPLOYEES</option>
|
|
|
|
|
|
|
|
|
|
</select></td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="mediclaim_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="mediclaim_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form id="daily_shift_report" name="daily_shift_report">
|
|
<table id="daily_shift_report_t" class="table table-bordered" style="width: 100%; display: none">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Date</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>shift</strong></td>
|
|
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Excel</strong></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Daily shift report</td>
|
|
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startDate1" name="startDate1" type="text" data-date-format="dd-mm-yyyy" /> <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><select style="width: 180px;" name="shift" id="shift">
|
|
<option value="Please select an option" disabled selected></option>
|
|
<?php
|
|
$generate_option_sql = "select status_name,shift_status_id from shift_status where ohc_location_id='" . $_SESSION['current_ohcttype'] . "' and is_shift='Y'";
|
|
|
|
$result_generate_option_sql = mysqli_query($conn, $generate_option_sql);
|
|
|
|
while ($row_generate_option_sql = mysqli_fetch_assoc($result_generate_option_sql)) {
|
|
?>
|
|
<option value="<?php echo $row_generate_option_sql['shift_status_id'] ?>">
|
|
<?php echo $row_generate_option_sql['status_name'] ?></option>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
</select></td>
|
|
|
|
|
|
<td align="left"><a href="#" onclick="daily_shift_log_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<td align="left"><a href="#" onclick="daily_shift_log_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form id="summarycases_report" name="summarycases_report">
|
|
<table id="summarycasesreport" class="table table-bordered" style="width: 100%; display: none;">
|
|
|
|
<thead>
|
|
<tr>
|
|
|
|
<td align="left" style="font-size: 10px" width="15%"><strong>Report</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Month</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Year</strong></td>
|
|
<td style="font-size: 10px" width="15%"><strong>Pdf</strong></td>
|
|
<!-- <td style="font-size: 10px" width="15%"><strong>Excel</strong></td> -->
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Summary of Monthly Cases Report</td>
|
|
|
|
<td>
|
|
<div class="input-group">
|
|
<select class="chosen-select form-control" id="summary_month" name="summary_month" data-placeholder="Choose month" width="50%">
|
|
|
|
<option value="1" <?php if ($current_month == "1") { ?> selected <?php } ?>>JANUARY</option>
|
|
<option value="2" <?php if ($current_month == "2") { ?> selected <?php } ?>>FEBRUARY</option>
|
|
<option value="3" <?php if ($current_month == "3") { ?> selected <?php } ?>>MARCH</option>
|
|
<option value="4" <?php if ($current_month == "4") { ?> selected <?php } ?>>APRIL</option>
|
|
<option value="5" <?php if ($current_month == "5") { ?> selected <?php } ?>>MAY</option>
|
|
<option value="6" <?php if ($current_month == "6") { ?> selected <?php } ?>>JUNE</option>
|
|
<option value="7" <?php if ($current_month == "7") { ?> selected <?php } ?>>JULY</option>
|
|
<option value="8" <?php if ($current_month == "8") { ?> selected <?php } ?>>AUGUST</option>
|
|
<option value="9" <?php if ($current_month == "9") { ?> selected <?php } ?>>SEPTEMBER</option>
|
|
<option value="10" <?php if ($current_month == "10") { ?> selected <?php } ?>>OCTOBER</option>
|
|
<option value="11" <?php if ($current_month == "11") { ?> selected <?php } ?>>NOVEMBER</option>
|
|
<option value="12" <?php if ($current_month == "12") { ?> selected <?php } ?>>DECEMBER</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</div>
|
|
|
|
</td>
|
|
<td><select class="chosen-select form-control" id="summary_year" name="summary_year" data-placeholder="Choose Year">
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$c = date('Y', strtotime('-2 year'));
|
|
$d = date('Y', strtotime('-3 year'));
|
|
$e = date('Y', strtotime('-4 year'));
|
|
$a = date("Y");
|
|
$b = date('Y', strtotime('-1 year'));
|
|
?>
|
|
|
|
<option value="<?php echo $a ?>" <?php if ($current_year == $a) { ?> selected <?php } ?>><?php echo $a ?></option>
|
|
<option value="<?php echo $b ?>" <?php if ($current_year == $b) { ?> selected <?php } ?>><?php echo $b ?></option>
|
|
|
|
|
|
|
|
</select></td>
|
|
|
|
|
|
|
|
<td align="left"><a href="#" onclick="summarycases_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td>
|
|
<!-- <td align="left"><a href="#" onclick="summarycases_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td> -->
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<?php include('techsyn_footer.php'); ?>
|
|
<style>
|
|
.input-group-addon {
|
|
height: 25px;
|
|
width: 30px;
|
|
padding: 0px 0px;
|
|
}
|
|
</style>
|
|
<script>
|
|
function yearly_bio_waste_pdf() {
|
|
document.forms['yearly_bio_waste'].action = "yearly_bio_waste_pdf.php";
|
|
document.forms['yearly_bio_waste'].method = 'POST';
|
|
document.forms['yearly_bio_waste'].target = '_blank'
|
|
document.forms['yearly_bio_waste'].submit();
|
|
}
|
|
|
|
function yearly_bio_waste_excel() {
|
|
document.forms['yearly_bio_waste'].action = "yearly_bio_waste_excel.php";
|
|
document.forms['yearly_bio_waste'].method = 'POST';
|
|
document.forms['yearly_bio_waste'].target = '_blank'
|
|
document.forms['yearly_bio_waste'].submit();
|
|
}
|
|
|
|
|
|
function procurement_report_pdf() {
|
|
document.forms['procurement_report'].action = "procurement_pdf.php";
|
|
document.forms['procurement_report'].method = 'POST';
|
|
document.forms['procurement_report'].target = '_blank'
|
|
document.forms['procurement_report'].submit();
|
|
}
|
|
|
|
function procurement_report_excel() {
|
|
document.forms['procurement_report'].action = "procurement_excel.php";
|
|
document.forms['procurement_report'].method = 'POST';
|
|
document.forms['procurement_report'].target = '_blank'
|
|
document.forms['procurement_report'].submit();
|
|
}
|
|
|
|
function asset_procurement_report_pdf() {
|
|
document.forms['asset_procurement_report'].action = "asset_procurement_pdf.php";
|
|
document.forms['asset_procurement_report'].method = 'POST';
|
|
document.forms['asset_procurement_report'].target = '_blank'
|
|
document.forms['asset_procurement_report'].submit();
|
|
}
|
|
|
|
function asset_procurement_report_excel() {
|
|
document.forms['asset_procurement_report'].action = "asset_procurement_excel.php";
|
|
document.forms['asset_procurement_report'].method = 'POST';
|
|
document.forms['asset_procurement_report'].target = '_blank'
|
|
document.forms['asset_procurement_report'].submit();
|
|
}
|
|
|
|
function csr_report_pdf() {
|
|
document.forms['csr_report'].action = "csr_pdf.php";
|
|
document.forms['csr_report'].method = 'POST';
|
|
document.forms['csr_report'].target = '_blank'
|
|
document.forms['csr_report'].submit();
|
|
}
|
|
|
|
function csr_report_excel() {
|
|
document.forms['csr_report'].action = "csr_excel.php";
|
|
document.forms['csr_report'].method = 'POST';
|
|
document.forms['csr_report'].target = '_blank'
|
|
document.forms['csr_report'].submit();
|
|
}
|
|
|
|
function long_term_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['long_term_report'].action = "peme_long_term_report_pdf.php";
|
|
document.forms['long_term_report'].method = 'POST';
|
|
document.forms['long_term_report'].target = '_blank'
|
|
document.forms['long_term_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function long_term_report_excel() {
|
|
|
|
|
|
|
|
document.forms['long_term_report'].action = "peme_long_term_report_excel.php";
|
|
document.forms['long_term_report'].method = 'POST';
|
|
document.forms['long_term_report'].target = '_blank'
|
|
document.forms['long_term_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function emp_expense_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['emp_expense_report_form'].action = "emp_expense_report_pdf.php";
|
|
document.forms['emp_expense_report_form'].method = 'POST';
|
|
document.forms['emp_expense_report_form'].target = '_blank'
|
|
document.forms['emp_expense_report_form'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function emp_clinical_report_pdf() {
|
|
document.forms['clinical_recovery_emp_form'].action = "emp_clinical_report_pdf.php";
|
|
document.forms['clinical_recovery_emp_form'].method = 'POST';
|
|
document.forms['clinical_recovery_emp_form'].target = '_blank'
|
|
document.forms['clinical_recovery_emp_form'].submit();
|
|
|
|
}
|
|
|
|
function emp_clinical_report_excel() {
|
|
document.forms['clinical_recovery_emp_form'].action = "emp_clinical_report_excel.php";
|
|
document.forms['clinical_recovery_emp_form'].method = 'POST';
|
|
document.forms['clinical_recovery_emp_form'].target = '_blank'
|
|
document.forms['clinical_recovery_emp_form'].submit();
|
|
|
|
}
|
|
|
|
function clinical_visit_report_pdf() {
|
|
document.forms['clinical_visit_form'].action = "clinical_visit_report_pdf.php";
|
|
document.forms['clinical_visit_form'].method = 'POST';
|
|
document.forms['clinical_visit_form'].target = '_blank'
|
|
document.forms['clinical_visit_form'].submit();
|
|
}
|
|
|
|
function clinical_visit_report_excel() {
|
|
document.forms['clinical_visit_form'].action = "clinical_visit_report_excel.php";
|
|
document.forms['clinical_visit_form'].method = 'POST';
|
|
document.forms['clinical_visit_form'].target = '_blank'
|
|
document.forms['clinical_visit_form'].submit();
|
|
}
|
|
|
|
function emp_expense_report_excel() {
|
|
|
|
|
|
|
|
document.forms['emp_expense_report_form'].action = "emp_expense_report_excel.php";
|
|
document.forms['emp_expense_report_form'].method = 'POST';
|
|
document.forms['emp_expense_report_form'].target = '_blank'
|
|
document.forms['emp_expense_report_form'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function short_term_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['short_term_report'].action = "peme_short_term_report_pdf.php";
|
|
document.forms['short_term_report'].method = 'POST';
|
|
document.forms['short_term_report'].target = '_blank'
|
|
document.forms['short_term_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function short_term_report_excel() {
|
|
|
|
|
|
|
|
document.forms['short_term_report'].action = "peme_short_term_report_excel.php";
|
|
document.forms['short_term_report'].method = 'POST';
|
|
document.forms['short_term_report'].target = '_blank'
|
|
document.forms['short_term_report'].submit();
|
|
|
|
}
|
|
|
|
function training_date(training) {
|
|
$.ajax({
|
|
url: 'select_assign_training.php',
|
|
data: {
|
|
training: training
|
|
},
|
|
type: 'POST',
|
|
dataType: 'json',
|
|
success: function(data) {
|
|
// alert(data.from_date);
|
|
$("#trainingDate1").val(data.from_date);
|
|
document.getElementById("trainingDate1").setAttribute("max", data.to_date);
|
|
document.getElementById("trainingDate1").setAttribute("min", data.from_date);
|
|
|
|
$("#trainingDate2").val(data.to_date);
|
|
document.getElementById("trainingDate2").setAttribute("max", data.to_date);
|
|
document.getElementById("trainingDate2").setAttribute("min", data.from_date);
|
|
},
|
|
error: function(data) {
|
|
BootstrapDialog.alert('Error Populating Reports Details');
|
|
return;
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
|
|
function detention_sub_category(cat) {
|
|
if (cat == 2 || cat == '2') {
|
|
$(".deten_sub_cat_div").show();
|
|
} else {
|
|
$(".deten_sub_cat_div").hide();
|
|
}
|
|
}
|
|
|
|
function detention_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['detention_report'].action = "detention_report_pdf.php";
|
|
document.forms['detention_report'].method = 'POST';
|
|
document.forms['detention_report'].target = '_blank'
|
|
document.forms['detention_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function detention_report_excel() {
|
|
|
|
|
|
|
|
document.forms['detention_report'].action = "detention_report_excel.php";
|
|
document.forms['detention_report'].method = 'POST';
|
|
document.forms['detention_report'].target = '_blank'
|
|
document.forms['detention_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function pohc_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['health_index_report'].action = "pohc_report_pdf.php";
|
|
document.forms['health_index_report'].method = 'POST';
|
|
document.forms['health_index_report'].target = '_blank'
|
|
document.forms['health_index_report'].submit();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
function pohc_report_excel() {
|
|
|
|
|
|
|
|
document.forms['health_index_report'].action = "pohc_report_excel.php";
|
|
document.forms['health_index_report'].method = 'POST';
|
|
document.forms['health_index_report'].target = '_blank'
|
|
document.forms['health_index_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function fitness_certificate_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['fitness_certificate_report'].action = "fitness_certificate_report_pdf.php";
|
|
document.forms['fitness_certificate_report'].method = 'POST';
|
|
document.forms['fitness_certificate_report'].target = '_blank'
|
|
document.forms['fitness_certificate_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function fitness_certificate_report_excel() {
|
|
|
|
|
|
|
|
document.forms['fitness_certificate_report'].action = "fitness_certificate_report_excel.php";
|
|
document.forms['fitness_certificate_report'].method = 'POST';
|
|
document.forms['fitness_certificate_report'].target = '_blank'
|
|
document.forms['fitness_certificate_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function opd_report_ailmentwise_pdf() {
|
|
|
|
|
|
|
|
document.forms['opd_report_ailmentwise'].action = "opd_report_pdf.php";
|
|
document.forms['opd_report_ailmentwise'].method = 'POST';
|
|
document.forms['opd_report_ailmentwise'].target = '_blank'
|
|
document.forms['opd_report_ailmentwise'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function opd_report_ailmentwise_excel() {
|
|
|
|
|
|
|
|
document.forms['opd_report_ailmentwise'].action = "opd_report_excel.php";
|
|
document.forms['opd_report_ailmentwise'].method = 'POST';
|
|
document.forms['opd_report_ailmentwise'].target = '_blank'
|
|
document.forms['opd_report_ailmentwise'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function opd_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['opd_report'].action = "opd_report_detailed_pdf.php";
|
|
document.forms['opd_report'].method = 'POST';
|
|
document.forms['opd_report'].target = '_blank'
|
|
document.forms['opd_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function opd_report_excel() {
|
|
|
|
|
|
|
|
document.forms['opd_report'].action = "opd_report_detailed_excel.php";
|
|
document.forms['opd_report'].method = 'POST';
|
|
document.forms['opd_report'].target = '_blank'
|
|
document.forms['opd_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function ehc_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['ehc_report'].action = "executive_followup_pdf.php";
|
|
document.forms['ehc_report'].method = 'POST';
|
|
document.forms['ehc_report'].target = '_blank'
|
|
document.forms['ehc_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function ehc_report_excel() {
|
|
|
|
|
|
|
|
document.forms['ehc_report'].action = "executive_followup_excel.php";
|
|
document.forms['ehc_report'].method = 'POST';
|
|
document.forms['ehc_report'].target = '_blank'
|
|
document.forms['ehc_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function dlme_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['dlme_report'].action = "dlme_exam_report_pdf.php";
|
|
document.forms['dlme_report'].method = 'POST';
|
|
document.forms['dlme_report'].target = '_blank'
|
|
document.forms['dlme_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function ambulance_recovery_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['ambulance_recovery'].action = "ambulance_recovery_report_pdf.php";
|
|
document.forms['ambulance_recovery'].method = 'POST';
|
|
document.forms['ambulance_recovery'].target = '_blank'
|
|
document.forms['ambulance_recovery'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function dlme_report_excel() {
|
|
|
|
|
|
|
|
document.forms['dlme_report'].action = "dlme_exam_report_excel.php";
|
|
document.forms['dlme_report'].method = 'POST';
|
|
document.forms['dlme_report'].target = '_blank'
|
|
document.forms['dlme_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function ambulance_recovery_report_excel() {
|
|
|
|
|
|
|
|
document.forms['ambulance_recovery'].action = "ambulance_recovery_report_excel.php";
|
|
document.forms['ambulance_recovery'].method = 'POST';
|
|
document.forms['ambulance_recovery'].target = '_blank'
|
|
document.forms['ambulance_recovery'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function daily_cases_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['daily_report'].action = "daily_cases_report.php";
|
|
document.forms['daily_report'].method = 'POST';
|
|
document.forms['daily_report'].target = '_blank'
|
|
document.forms['daily_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function daily_cases_report_excel() {
|
|
|
|
|
|
|
|
document.forms['daily_report'].action = "daily_cases_report_excel.php";
|
|
document.forms['daily_report'].method = 'POST';
|
|
document.forms['daily_report'].target = '_blank'
|
|
document.forms['daily_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function chronic_medication_medicine_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['chronic_medication_medicine_report'].action = "chronic_medication_medicine_report_pdf.php";
|
|
document.forms['chronic_medication_medicine_report'].method = 'POST';
|
|
document.forms['chronic_medication_medicine_report'].target = '_blank'
|
|
document.forms['chronic_medication_medicine_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function chronic_medication_medicine_report_excel() {
|
|
|
|
|
|
|
|
document.forms['chronic_medication_medicine_report'].action = "chronic_medication_medicine_report_excel.php";
|
|
document.forms['chronic_medication_medicine_report'].method = 'POST';
|
|
document.forms['chronic_medication_medicine_report'].target = '_blank'
|
|
document.forms['chronic_medication_medicine_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function diagnosis_opd_report_pdf() {
|
|
|
|
document.forms['diagnosis_opd_report'].action = "diagnosis_opd_report_pdf.php";
|
|
document.forms['diagnosis_opd_report'].method = 'POST';
|
|
document.forms['diagnosis_opd_report'].target = '_blank'
|
|
document.forms['diagnosis_opd_report'].submit();
|
|
}
|
|
|
|
function diagnosis_opd_report_excel() {
|
|
|
|
document.forms['diagnosis_opd_report'].action = "diagnosis_opd_report_excel.php";
|
|
document.forms['diagnosis_opd_report'].method = 'POST';
|
|
document.forms['diagnosis_opd_report'].target = '_blank'
|
|
document.forms['diagnosis_opd_report'].submit();
|
|
}
|
|
|
|
|
|
function driver_vision_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['driver_vision_report'].action = "driver_vision_report.php";
|
|
document.forms['driver_vision_report'].method = 'POST';
|
|
document.forms['driver_vision_report'].target = '_blank'
|
|
document.forms['driver_vision_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function driver_vision_report_excel() {
|
|
|
|
|
|
|
|
document.forms['driver_vision_report'].action = "driver_vision_report_excel.php";
|
|
document.forms['driver_vision_report'].method = 'POST';
|
|
document.forms['driver_vision_report'].target = '_blank'
|
|
document.forms['driver_vision_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function training_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['training_report'].action = "training_report.php";
|
|
document.forms['training_report'].method = 'POST';
|
|
document.forms['training_report'].target = '_blank'
|
|
document.forms['training_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function training_report_excel() {
|
|
|
|
|
|
|
|
document.forms['training_report'].action = "training_report_excel.php";
|
|
document.forms['training_report'].method = 'POST';
|
|
document.forms['training_report'].target = '_blank'
|
|
document.forms['training_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function ambulance_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['ambulance_report'].action = "ambulance_report_pdf.php";
|
|
document.forms['ambulance_report'].method = 'POST';
|
|
document.forms['ambulance_report'].target = '_blank'
|
|
document.forms['ambulance_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function ambulance_report_excel() {
|
|
|
|
|
|
|
|
document.forms['ambulance_report'].action = "ambulance_report_excel.php";
|
|
document.forms['ambulance_report'].method = 'POST';
|
|
document.forms['ambulance_report'].target = '_blank'
|
|
document.forms['ambulance_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function aod_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['aod_report'].action = "aod_report_pdf.php";
|
|
document.forms['aod_report'].method = 'POST';
|
|
document.forms['aod_report'].target = '_blank'
|
|
document.forms['aod_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function aod_report_excel() {
|
|
|
|
|
|
|
|
document.forms['aod_report'].action = "aod_report_excel.php";
|
|
document.forms['aod_report'].method = 'POST';
|
|
document.forms['aod_report'].target = '_blank'
|
|
document.forms['aod_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function addi_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['add_direct_item_issue'].action = "add_direct_item_issue_report_pdf.php";
|
|
document.forms['add_direct_item_issue'].method = 'POST';
|
|
document.forms['add_direct_item_issue'].target = '_blank'
|
|
document.forms['add_direct_item_issue'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function addi_report_excel() {
|
|
|
|
|
|
|
|
document.forms['add_direct_item_issue'].action = "add_direct_item_issue_report_excel.php";
|
|
document.forms['add_direct_item_issue'].method = 'POST';
|
|
document.forms['add_direct_item_issue'].target = '_blank'
|
|
document.forms['add_direct_item_issue'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function dsri_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['direct_store_return_item'].action = "direct_store_return_item_report_pdf.php";
|
|
document.forms['direct_store_return_item'].method = 'POST';
|
|
document.forms['direct_store_return_item'].target = '_blank'
|
|
document.forms['direct_store_return_item'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function dsri_report_excel() {
|
|
|
|
|
|
|
|
document.forms['direct_store_return_item'].action = "direct_store_return_item_report_excel.php";
|
|
document.forms['direct_store_return_item'].method = 'POST';
|
|
document.forms['direct_store_return_item'].target = '_blank'
|
|
document.forms['direct_store_return_item'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
function medicine_issue_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['hygiene_gaps_report'].action = "medicine_issue_report_pdf.php";
|
|
document.forms['hygiene_gaps_report'].method = 'POST';
|
|
document.forms['hygiene_gaps_report'].target = '_blank'
|
|
document.forms['hygiene_gaps_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function medicine_issue_report_excel() {
|
|
|
|
|
|
|
|
document.forms['hygiene_gaps_report'].action = "medicine_issue_report_excel.php";
|
|
document.forms['hygiene_gaps_report'].method = 'POST';
|
|
document.forms['hygiene_gaps_report'].target = '_blank'
|
|
document.forms['hygiene_gaps_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function daily_log_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['daily_log_report'].action = "daily_log_report_pdf.php";
|
|
document.forms['daily_log_report'].method = 'POST';
|
|
document.forms['daily_log_report'].target = '_blank'
|
|
document.forms['daily_log_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function daily_log_report_excel() {
|
|
|
|
|
|
|
|
document.forms['daily_log_report'].action = "daily_log_report_excel.php";
|
|
document.forms['daily_log_report'].method = 'POST';
|
|
document.forms['daily_log_report'].target = '_blank'
|
|
document.forms['daily_log_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function daily_respiratory_log_report_pdf() {
|
|
document.forms['daily_respiratory_log_report'].action = "daily_respiratory_report_pdf.php";
|
|
document.forms['daily_respiratory_log_report'].method = 'POST';
|
|
document.forms['daily_respiratory_log_report'].target = '_blank'
|
|
document.forms['daily_respiratory_log_report'].submit();
|
|
}
|
|
|
|
function daily_respiratory_log_report_excel() {
|
|
document.forms['daily_respiratory_log_report'].action = "daily_respiratory_report_excel.php";
|
|
document.forms['daily_respiratory_log_report'].method = 'POST';
|
|
document.forms['daily_respiratory_log_report'].target = '_blank'
|
|
document.forms['daily_respiratory_log_report'].submit();
|
|
}
|
|
|
|
function daily_respiratory_pwt_log_report_pdf() {
|
|
document.forms['daily_respiratory_pwt_log_report'].action = "daily_respiratory_pwt_report_pdf.php";
|
|
document.forms['daily_respiratory_pwt_log_report'].method = 'POST';
|
|
document.forms['daily_respiratory_pwt_log_report'].target = '_blank'
|
|
document.forms['daily_respiratory_pwt_log_report'].submit();
|
|
}
|
|
|
|
function daily_respiratory_pwt_log_report_excel() {
|
|
document.forms['daily_respiratory_pwt_log_report'].action = "daily_respiratory_pwt_report_excel.php";
|
|
document.forms['daily_respiratory_pwt_log_report'].method = 'POST';
|
|
document.forms['daily_respiratory_pwt_log_report'].target = '_blank'
|
|
document.forms['daily_respiratory_pwt_log_report'].submit();
|
|
}
|
|
|
|
function daily_shift_log_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['daily_shift_log_report'].action = "daily_shift_log_report_pdf.php";
|
|
document.forms['daily_shift_log_report'].method = 'POST';
|
|
document.forms['daily_shift_log_report'].target = '_blank'
|
|
document.forms['daily_shift_log_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function daily_shift_log_report_excel() {
|
|
|
|
|
|
|
|
document.forms['daily_shift_log_report'].action = "daily_shift_log_report_excel.php";
|
|
document.forms['daily_shift_log_report'].method = 'POST';
|
|
document.forms['daily_shift_log_report'].target = '_blank'
|
|
document.forms['daily_shift_log_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function monthly_expense_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['monthly_expense_report'].action = "monthly_expense_report_pdf.php";
|
|
document.forms['monthly_expense_report'].method = 'POST';
|
|
document.forms['monthly_expense_report'].target = '_blank'
|
|
document.forms['monthly_expense_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function monthly_expense_report_excel() {
|
|
|
|
|
|
|
|
document.forms['monthly_expense_report'].action = "monthly_expense_report_excel.php";
|
|
document.forms['monthly_expense_report'].method = 'POST';
|
|
document.forms['monthly_expense_report'].target = '_blank'
|
|
document.forms['monthly_expense_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function monthly_expense_store_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['monthly_expense_report_store'].action = "monthly_expense_store_report_pdf.php";
|
|
document.forms['monthly_expense_report_store'].method = 'POST';
|
|
document.forms['monthly_expense_report_store'].target = '_blank'
|
|
document.forms['monthly_expense_report_store'].submit();
|
|
|
|
|
|
|
|
}
|
|
////
|
|
|
|
function monthly_stock_store_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['monthly_stock_report_store'].action = "monthly_stock_store_report_pdf.php";
|
|
document.forms['monthly_stock_report_store'].method = 'POST';
|
|
document.forms['monthly_stock_report_store'].target = '_blank'
|
|
document.forms['monthly_stock_report_store'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function medical_consumption_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['medical_consumption'].action = "filter_report_ohc_deshboard.php";
|
|
document.forms['medical_consumption'].method = 'POST';
|
|
document.forms['medical_consumption'].target = '_blank'
|
|
document.forms['medical_consumption'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function monthly_stock_store_report_excel() {
|
|
|
|
|
|
|
|
document.forms['monthly_stock_report_store'].action = "monthly_store_stock_report_excel.php";
|
|
document.forms['monthly_stock_report_store'].method = 'POST';
|
|
document.forms['monthly_stock_report_store'].target = '_blank'
|
|
document.forms['monthly_stock_report_store'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function medical_consumption_report_excel() {
|
|
|
|
|
|
|
|
document.forms['medical_consumption'].action = "filter_report_ohc_deshboard_excel.php";
|
|
document.forms['medical_consumption'].method = 'POST';
|
|
document.forms['medical_consumption'].target = '_blank'
|
|
document.forms['medical_consumption'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
////
|
|
function monthly_expense_store_report_excel() {
|
|
|
|
|
|
|
|
document.forms['monthly_expense_report_store'].action = "monthly_store_expense_report_excel.php";
|
|
document.forms['monthly_expense_report_store'].method = 'POST';
|
|
document.forms['monthly_expense_report_store'].target = '_blank'
|
|
document.forms['monthly_expense_report_store'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
function yearly_expense_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['yearly_medicine_expense'].action = "yearly_expense_report_pdf.php";
|
|
document.forms['yearly_medicine_expense'].method = 'POST';
|
|
document.forms['yearly_medicine_expense'].target = '_blank'
|
|
document.forms['yearly_medicine_expense'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function yearly_expense_report_excel() {
|
|
|
|
|
|
|
|
document.forms['yearly_medicine_expense'].action = "yearly_expense_report_excel.php";
|
|
document.forms['yearly_medicine_expense'].method = 'POST';
|
|
document.forms['yearly_medicine_expense'].target = '_blank'
|
|
document.forms['yearly_medicine_expense'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function yearly_expense_store_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['yearly_medicine_expense_store'].action = "yearly_store_expense_report_pdf.php";
|
|
document.forms['yearly_medicine_expense_store'].method = 'POST';
|
|
document.forms['yearly_medicine_expense_store'].target = '_blank'
|
|
document.forms['yearly_medicine_expense_store'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function yearly_expense_store_report_excel() {
|
|
|
|
|
|
|
|
document.forms['yearly_medicine_expense_store'].action = "yearly_expense_store_report_excel.php";
|
|
document.forms['yearly_medicine_expense_store'].method = 'POST';
|
|
document.forms['yearly_medicine_expense_store'].target = '_blank'
|
|
document.forms['yearly_medicine_expense_store'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
function daily_expense_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['daily_medicine_expense'].action = "daily_expense_report_pdf.php";
|
|
document.forms['daily_medicine_expense'].method = 'POST';
|
|
document.forms['daily_medicine_expense'].target = '_blank'
|
|
document.forms['daily_medicine_expense'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function daily_expense_report_excel() {
|
|
|
|
|
|
|
|
document.forms['daily_medicine_expense'].action = "daily_expense_report_excel.php";
|
|
document.forms['daily_medicine_expense'].method = 'POST';
|
|
document.forms['daily_medicine_expense'].target = '_blank'
|
|
document.forms['daily_medicine_expense'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function pending_medexam_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['pending_medexam'].action = "pending_medical_examination_list_pdf.php";
|
|
document.forms['pending_medexam'].method = 'POST';
|
|
document.forms['pending_medexam'].target = '_blank'
|
|
document.forms['pending_medexam'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function pending_medexam_report_excel() {
|
|
|
|
|
|
|
|
document.forms['pending_medexam'].action = "pending_medical_examination_list_excel.php";
|
|
document.forms['pending_medexam'].method = 'POST';
|
|
document.forms['pending_medexam'].target = '_blank'
|
|
document.forms['pending_medexam'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function covid_screening_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['covid_screening'].action = "covid_screening_report_pdf.php";
|
|
document.forms['covid_screening'].method = 'POST';
|
|
document.forms['covid_screening'].target = '_blank';
|
|
document.forms['covid_screening'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function covid_screening_report_excel() {
|
|
|
|
|
|
|
|
document.forms['covid_screening'].action = "covid_screening_report_excel.php";
|
|
document.forms['covid_screening'].method = 'POST';
|
|
document.forms['covid_screening'].target = '_blank';
|
|
document.forms['covid_screening'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function covid_monitoring_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['covid_monitoring'].action = "covid_monitoring_report_pdf.php";
|
|
document.forms['covid_monitoring'].method = 'POST';
|
|
document.forms['covid_monitoring'].target = '_blank';
|
|
document.forms['covid_monitoring'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function covid_monitoring_report_excel() {
|
|
|
|
|
|
|
|
document.forms['covid_monitoring'].action = "covid_monitoring_report_excel.php";
|
|
document.forms['covid_monitoring'].method = 'POST';
|
|
document.forms['covid_monitoring'].target = '_blank';
|
|
document.forms['covid_monitoring'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
function consumables_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['consumables_report'].action = "consumables_report.php";
|
|
document.forms['consumables_report'].method = 'POST';
|
|
document.forms['consumables_report'].target = '_blank';
|
|
document.forms['consumables_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function consumables_report_excel() {
|
|
|
|
|
|
|
|
document.forms['consumables_report'].action = "consumables_report_excel.php";
|
|
document.forms['consumables_report'].method = 'POST';
|
|
document.forms['consumables_report'].target = '_blank';
|
|
document.forms['consumables_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function wah_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['wah_report'].action = "wah_report_pdf.php";
|
|
document.forms['wah_report'].method = 'POST';
|
|
document.forms['wah_report'].target = '_blank';
|
|
document.forms['wah_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function wah_report_excel() {
|
|
|
|
|
|
|
|
document.forms['wah_report'].action = "wah_report_excel.php";
|
|
document.forms['wah_report'].method = 'POST';
|
|
document.forms['wah_report'].target = '_blank';
|
|
document.forms['wah_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function biowaste_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['monthly_bio_medical'].action = "monthly_bio_medical_waste_report.php";
|
|
document.forms['monthly_bio_medical'].method = 'POST';
|
|
document.forms['monthly_bio_medical'].target = '_blank';
|
|
document.forms['monthly_bio_medical'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function less_qty_medi_pre_pdf() {
|
|
|
|
|
|
|
|
document.forms['less_qty_medi_prescribed'].action = "less_qty_medi_pre_pdf.php";
|
|
document.forms['less_qty_medi_prescribed'].method = 'POST';
|
|
document.forms['less_qty_medi_prescribed'].target = '_blank';
|
|
document.forms['less_qty_medi_prescribed'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function less_qty_medi_pre_excel() {
|
|
|
|
|
|
|
|
document.forms['less_qty_medi_prescribed'].action = "less_qty_medi_pre_excel.php";
|
|
document.forms['less_qty_medi_prescribed'].method = 'POST';
|
|
document.forms['less_qty_medi_prescribed'].target = '_blank';
|
|
document.forms['less_qty_medi_prescribed'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function firstaid_report_pdf() {
|
|
$("#box_locs").val($("#box_loc").val())
|
|
|
|
|
|
document.forms['firstaidbox_report'].action = "first_aid_box_report.php";
|
|
document.forms['firstaidbox_report'].method = 'POST';
|
|
document.forms['firstaidbox_report'].target = '_blank';
|
|
document.forms['firstaidbox_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function firstaid_report_excel() {
|
|
$("#box_locs").val($("#box_loc").val())
|
|
|
|
|
|
document.forms['firstaidbox_report'].action = "first_aid_box_report_excel.php";
|
|
document.forms['firstaidbox_report'].method = 'POST';
|
|
document.forms['firstaidbox_report'].target = '_blank';
|
|
document.forms['firstaidbox_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function vaccine_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['vaccine_report'].action = "vaccination_report.php";
|
|
document.forms['vaccine_report'].method = 'POST';
|
|
document.forms['vaccine_report'].target = '_blank';
|
|
document.forms['vaccine_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function vaccine_report_excel() {
|
|
|
|
|
|
|
|
document.forms['vaccine_report'].action = "vaccination_report_excel.php";
|
|
document.forms['vaccine_report'].method = 'POST';
|
|
document.forms['vaccine_report'].target = '_blank';
|
|
document.forms['vaccine_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function mediclaim_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['mediclaim_report'].action = "mediclaim_report.php";
|
|
document.forms['mediclaim_report'].method = 'POST';
|
|
document.forms['mediclaim_report'].target = '_blank';
|
|
document.forms['mediclaim_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function mediclaim_report_excel() {
|
|
|
|
|
|
document.forms['mediclaim_report'].action = "mediclaim_report_excel.php";
|
|
document.forms['mediclaim_report'].method = 'POST';
|
|
document.forms['mediclaim_report'].target = '_blank';
|
|
document.forms['mediclaim_report'].submit();
|
|
|
|
}
|
|
|
|
function summarycases_report_pdf() {
|
|
|
|
|
|
|
|
document.forms['summarycases_report'].action = "monthly_cases_report.php";
|
|
document.forms['summarycases_report'].method = 'POST';
|
|
document.forms['summarycases_report'].target = '_blank';
|
|
document.forms['summarycases_report'].submit();
|
|
|
|
|
|
|
|
}
|
|
|
|
function pre_wellness_report_pdf() {
|
|
document.forms['pre_wellness_report'].action = "pre_wellness_program_report_pdf.php";
|
|
document.forms['pre_wellness_report'].method = 'POST';
|
|
document.forms['pre_wellness_report'].target = '_blank';
|
|
document.forms['pre_wellness_report'].submit();
|
|
}
|
|
|
|
function pre_wellness_report_excel() {
|
|
document.forms['pre_wellness_report'].action = "pre_wellness_program_report_excel.php";
|
|
document.forms['pre_wellness_report'].method = 'POST';
|
|
document.forms['pre_wellness_report'].target = '_blank';
|
|
document.forms['pre_wellness_report'].submit();
|
|
}
|
|
|
|
function daily_case_report_pdf() {
|
|
document.forms['daily_case_report_form'].action = "daily_case_report_FTD_pdf.php";
|
|
document.forms['daily_case_report_form'].method = 'POST';
|
|
document.forms['daily_case_report_form'].target = '_blank';
|
|
document.forms['daily_case_report_form'].submit();
|
|
}
|
|
|
|
function daily_case_report_excel() {
|
|
document.forms['daily_case_report_form'].action = "daily_case_report_FTD_excel.php";
|
|
document.forms['daily_case_report_form'].method = 'POST';
|
|
document.forms['daily_case_report_form'].target = '_blank';
|
|
document.forms['daily_case_report_form'].submit();
|
|
}
|
|
|
|
|
|
function show_report(repID) {
|
|
|
|
if (repID === '27') {
|
|
$("#long_term").show();
|
|
} else {
|
|
$("#long_term").hide();
|
|
}
|
|
|
|
if (repID === '28') {
|
|
$("#short_term").show();
|
|
} else {
|
|
$("#short_term").hide();
|
|
}
|
|
|
|
if (repID === '29') {
|
|
$("#fitness_certificate").show();
|
|
} else {
|
|
$("#fitness_certificate").hide();
|
|
}
|
|
|
|
if (repID === '30') {
|
|
$("#hygiene_gaps").show();
|
|
} else {
|
|
$("#hygiene_gaps").hide();
|
|
}
|
|
|
|
if (repID === '31') {
|
|
$("#daily_log").show();
|
|
} else {
|
|
$("#daily_log").hide();
|
|
}
|
|
|
|
if (repID === '32') {
|
|
$("#monthly_expense").show();
|
|
} else {
|
|
$("#monthly_expense").hide();
|
|
}
|
|
|
|
if (repID === '43') {
|
|
$("#monthly_expensestore").show();
|
|
} else {
|
|
$("#monthly_expensestore").hide();
|
|
}
|
|
if (repID === '100') {
|
|
$("#monthly_stockstore").show();
|
|
} else {
|
|
$("#monthly_stockstore").hide();
|
|
}
|
|
if (repID === '101') {
|
|
$("#med_con").show();
|
|
} else {
|
|
$("#med_con").hide();
|
|
}
|
|
|
|
if (repID === '33') {
|
|
$("#yearly_medicine").show();
|
|
} else {
|
|
$("#yearly_medicine").hide();
|
|
}
|
|
|
|
if (repID === '44') {
|
|
$("#yearly_medicinestore").show();
|
|
} else {
|
|
$("#yearly_medicinestore").hide();
|
|
}
|
|
|
|
if (repID === '34') {
|
|
$("#daily_medicine").show();
|
|
} else {
|
|
$("#daily_medicine").hide();
|
|
}
|
|
|
|
if (repID === '39') {
|
|
$("#pending_med_exam").show();
|
|
} else {
|
|
$("#pending_med_exam").hide();
|
|
}
|
|
|
|
if (repID === '47') {
|
|
$("#covid_screen").show();
|
|
} else {
|
|
$("#covid_screen").hide();
|
|
}
|
|
|
|
if (repID === '41') {
|
|
$("#opdreportailmentwise").show();
|
|
} else {
|
|
$("#opdreportailmentwise").hide();
|
|
}
|
|
if (repID === '102') {
|
|
$("#ehcreport").show();
|
|
} else {
|
|
$("#ehcreport").hide();
|
|
}
|
|
|
|
if (repID === '103') {
|
|
$("#dlmereport").show();
|
|
} else {
|
|
$("#dlmereport").hide();
|
|
}
|
|
if (repID === '106') {
|
|
$("#ambulance_recovery_report").show();
|
|
} else {
|
|
$("#ambulance_recovery_report").hide();
|
|
}
|
|
|
|
if (repID === '42') {
|
|
$("#aod").show();
|
|
} else {
|
|
$("#aod").hide();
|
|
}
|
|
|
|
if (repID === '45') {
|
|
$("#health_index").show();
|
|
} else {
|
|
$("#health_index").hide();
|
|
}
|
|
|
|
if (repID === '46') {
|
|
$("#detention").show();
|
|
} else {
|
|
$("#detention").hide();
|
|
}
|
|
|
|
|
|
|
|
if (repID === '48') {
|
|
$("#consumables").show();
|
|
} else {
|
|
$("#consumables").hide();
|
|
}
|
|
|
|
if (repID === '49') {
|
|
$("#wah").show();
|
|
} else {
|
|
$("#wah").hide();
|
|
}
|
|
if (repID === '114') {
|
|
$("#daily_shift_log").show();
|
|
} else {
|
|
$("#daily_shift_log").hide();
|
|
}
|
|
|
|
if (repID === '52') {
|
|
$("#monthly_biowaste").show();
|
|
} else {
|
|
$("#monthly_biowaste").hide();
|
|
}
|
|
if (repID === '53') {
|
|
$("#opdreport").show();
|
|
} else {
|
|
$("#opdreport").hide();
|
|
}
|
|
if (repID === '54') {
|
|
$("#ambulancereport").show();
|
|
} else {
|
|
$("#ambulancereport").hide();
|
|
}
|
|
if (repID === '55') {
|
|
$("#covid_monitor").show();
|
|
} else {
|
|
$("#covid_monitor").hide();
|
|
}
|
|
if (repID === '56') {
|
|
$("#firstaidboxreport").show();
|
|
} else {
|
|
$("#firstaidboxreport").hide();
|
|
}
|
|
if (repID === '57') {
|
|
$("#vaccinereport").show();
|
|
} else {
|
|
$("#vaccinereport").hide();
|
|
}
|
|
if (repID === '58') {
|
|
$("#mediclaimreport").show();
|
|
} else {
|
|
$("#mediclaimreport").hide();
|
|
}
|
|
if (repID === '59') {
|
|
$("#summarycasesreport").show();
|
|
} else {
|
|
$("#summarycasesreport").hide();
|
|
}
|
|
if (repID === '93') {
|
|
$("#pre_wellness").show();
|
|
} else {
|
|
$("#pre_wellness").hide();
|
|
}
|
|
|
|
if (repID === '94') {
|
|
$("#dailyreport").show();
|
|
} else {
|
|
$("#dailyreport").hide();
|
|
}
|
|
if (repID === '111') {
|
|
$("#drivervisionreport").show();
|
|
} else {
|
|
$("#drivervisionreport").hide();
|
|
}
|
|
if (repID === '108') {
|
|
$("#trainingreport").show();
|
|
} else {
|
|
$("#trainingreport").hide();
|
|
}
|
|
if (repID === '95') {
|
|
$("#daily_respiratory_log").show();
|
|
} else {
|
|
$("#daily_respiratory_log").hide();
|
|
}
|
|
|
|
if (repID === '96') {
|
|
$("#daily_respiratory_pwt_log").show();
|
|
} else {
|
|
$("#daily_respiratory_pwt_log").hide();
|
|
}
|
|
|
|
if (repID === '97') {
|
|
$("#daily_case_report").show();
|
|
} else {
|
|
$("#daily_case_report").hide();
|
|
}
|
|
if (repID === '98') {
|
|
$("#daily_shift_report_t").show();
|
|
} else {
|
|
$("#daily_shift_report_t").hide();
|
|
}
|
|
if (repID === '104') {
|
|
$("#yearly_bio_medical_waste").show();
|
|
} else {
|
|
$("#yearly_bio_medical_waste").hide();
|
|
}
|
|
if (repID === '107') {
|
|
$("#emp_expense_report").show();
|
|
} else {
|
|
$("#emp_expense_report").hide();
|
|
}
|
|
if (repID === '109') {
|
|
$("#csr_table").show();
|
|
} else {
|
|
$("#csr_table").hide();
|
|
}
|
|
if (repID === '110') {
|
|
$("#procurement_table").show();
|
|
} else {
|
|
$("#procurement_table").hide();
|
|
}
|
|
if (repID === '113') {
|
|
$("#asset_procurement_table").show();
|
|
} else {
|
|
$("#asset_procurement_table").hide();
|
|
}
|
|
if (repID === '115') {
|
|
$("#clinical_recovery_emp").show();
|
|
} else {
|
|
$("#clinical_recovery_emp").hide();
|
|
}
|
|
|
|
if (repID == '116') {
|
|
$("#clinical_visit").show();
|
|
} else {
|
|
$("#clinical_visit").hide();
|
|
}
|
|
if (repID == '117') {
|
|
$("#less_qty_medicine_prescribed").show();
|
|
} else {
|
|
$("#less_qty_medicine_prescribed").hide();
|
|
}
|
|
|
|
if (repID == '118') {
|
|
$("#chronic_medication_report").show();
|
|
} else {
|
|
$("#chronic_medication_report").hide();
|
|
}
|
|
|
|
if (repID === '119') {
|
|
$("#adii").show();
|
|
} else {
|
|
$("#adii").hide();
|
|
}
|
|
if (repID === '120') {
|
|
$("#dsri").show();
|
|
} else {
|
|
$("#dsri").hide();
|
|
}
|
|
if(repID === '121'){
|
|
$("#diagnosis_report").show();
|
|
}else{
|
|
$("#diagnosis_report").hide();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function getShowingData() {
|
|
|
|
|
|
var report_type = $("#report_type").val();
|
|
|
|
$.ajax({
|
|
url: 'select_mis_report_details.php',
|
|
data: {
|
|
report_id: report_type
|
|
},
|
|
type: 'POST',
|
|
dataType: 'json',
|
|
success: function(data) {
|
|
if (report_type == data.report_id) {
|
|
eval(data.fun_name);
|
|
|
|
}
|
|
|
|
},
|
|
error: function(data) {
|
|
BootstrapDialog.alert('Error Populating Reports Details');
|
|
return;
|
|
}
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
function getProgram(emp) {
|
|
$("#pro_id").find('option').remove().end();
|
|
$.ajax({
|
|
url: 'get_emp_program_data.php',
|
|
type: 'POST',
|
|
data: {
|
|
emp: emp
|
|
},
|
|
success: function(data) {
|
|
if (data !== null) {
|
|
$("#pro_id").append("<option value=''>select</option>");
|
|
$("#pro_id").append(data);
|
|
}
|
|
},
|
|
error: function(data) {
|
|
BootstrapDialog.alert("Somethings Wrong")
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
if ($('#vac_name')) {
|
|
|
|
var vac_names = new Array();
|
|
getVac_name();
|
|
|
|
function getVac_name() {
|
|
$.ajax({
|
|
url: 'select_vac_name.php',
|
|
type: "GET",
|
|
success: function(data) {
|
|
vac_name = $.parseJSON(data);
|
|
|
|
},
|
|
error: function(data) {
|
|
BootstrapDialog.alert('Error pulling vaccine name!!');
|
|
return;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ($('#vac_name')) {
|
|
setTimeout(function() {
|
|
|
|
var tag_input_vac_name = $('#vac_name');
|
|
try {
|
|
tag_input_vac_name.tag({
|
|
placeholder: tag_input_vac_name.attr('placeholder'),
|
|
|
|
source: vac_name
|
|
|
|
})
|
|
|
|
//programmatically add/remove a tag
|
|
var $tag_obj = $('#vac_name').data('tag');
|
|
//$tag_obj.add('Programmatically Added');
|
|
var existingvac_name = "<?php echo $row['vaccine_name'] ?>"
|
|
if (existingvac_name != undefined && existingvac_name != null && existingvac_name != '') {
|
|
var existingvac_nameArr = existingvac_name.split(",");
|
|
jQuery.each(existingvac_nameArr, function(i, val) {
|
|
$tag_obj.add(val.toUpperCase());
|
|
});
|
|
}
|
|
//var index = $tag_obj.inValues('some tag');
|
|
// $tag_obj.remove(index);
|
|
} catch (e) {
|
|
//display a textarea for old IE, because it doesn't support this plugin or another one I tried!
|
|
tag_input_vac_name.after('<textarea id="' + tag_input_vac_name.attr('id') + '" name="' +
|
|
tag_input_vac_name.attr('name') + '" rows="3">' + tag_input_vac_name.val() +
|
|
'</textarea>').remove();
|
|
//autosize($('#form-field-tags'));
|
|
}
|
|
var y = $('#vac_name').parents(".col-sm-4").width();
|
|
$('#vac_name').siblings().css('width', y - 5);
|
|
}, 500);
|
|
}
|
|
</script>
|