<?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="attendance_form" name="attendance_form"> <table id="attendance_repo" class="table table-bordered" style="width: 100%; display: none"> <button class="btn btn-primary form-control dm" style="display: none;"> Month Wise Report For Staff </button> <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>OHC</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>attendance register</td> <td> <div class="input-group"> <select class="chosen-select form-control" id="attend_month" name="attend_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> <div class="input-group"> <select name="yearAtt" id="yearAtt" class="chosen-select form-control" data-placeholder="Choose Year" width="100%"> <option selected disabled>PLEASE SELECT YEAR</option> <?php $currentYear = date('Y'); for ($year = $currentYear; $year >= ($currentYear - 100); $year--) { echo "<option value=\"$year\">$year</option>"; } ?> </select> </div> </td> <td> <div class="input-group"> <select class="chosen-select form-control" id="ohc_attend" name="ohc_attend" data-placeholder="Choose OHC" width="100%"> <option selected disabled> PLEASE SELECT OHC </option> <?php // $sql_ohc = "select * from ohc_type where ohc_type_id in " . getCommaSeperatedValuesToInClause($_SESSION['ohctypes']); // generate_options($sql_ohc, '', 'ohc_type_id', 'ohc_type_name', '', ''); echo generateOption("ohc_type","ohc_type_name" , "ohc_type_id",$_SESSION['current_ohcttype'],''); ?> </select> </div> </td> <td align="left"><a href="#" onclick="attendance_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="attendance_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td> </tr> </tbody> </table> </form> <br><br><br> <form id="attendance_form_driver" name="attendance_form_driver"> <table id="attendance_repo_driver" class="table table-bordered" style="width: 100%; display: none"> <button class="btn btn-primary form-control dm" style="display: none;"> Date Wise Report For Driver </button> <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>Staff Category</strong></td> <td style="font-size: 10px" width="15%"><strong>OHC</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>attendance register</td> <td> <div class="input-group"> <input type="date" name="startdateAtt" id="startdateAtt" class="form-control" style="width: 100%;" value="<?= date('Y-m-d') ?>" onchange="disableEndDate(this.value)"> </div> </td> <td> <div class="input-group"> <input type="date" name="enddateAtt" id="enddateAtt" class="form-control" style="width: 100%;" value="<?= date('Y-m-d') ?>" disabled> </div> </td> <script> function disableEndDate(date) { var startDate = new Date(date); var endDate = new Date(startDate.getFullYear(), startDate.getMonth() + 2, 0); var endDateInput = document.getElementById('enddateAtt'); endDateInput.disabled = false; endDateInput.min = startDate.toISOString().split('T')[0]; endDateInput.max = endDate.toISOString().split('T')[0]; } </script> <td> <div class="input-group"> <select class="chosen-select form-control" id="attend_staff_cate" name="attend_staff_cate" data-placeholder="Choose Staff Category" width="100%"> <option selected disabled> PLEASE SELECT STAFF CATEGORY </option> <option value="ALL">ALL</option> <?php echo generateOption("staff_category_master","category_name" , "id",'',''); ?> </select> </div> </td> <td> <div class="input-group"> <select class="chosen-select form-control" id="ohc_attend_Driver" name="ohc_attend_Driver" data-placeholder="Choose OHC" width="100%"> <option selected disabled> PLEASE SELECT OHC </option> <?php // $sql_ohc = "select * from ohc_type where ohc_type_id in " . getCommaSeperatedValuesToInClause($_SESSION['ohctypes']); // generate_options($sql_ohc, '', 'ohc_type_id', 'ohc_type_name', '', ''); echo generateOption("ohc_type","ohc_type_name" , "ohc_type_id",$_SESSION['current_ohcttype'],''); ?> </select> </div> </td> <td align="left"><a href="#" onclick="attendance_pdf_driver();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="attendance_excel_driver();"><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="patient_medical_comparison_report" name="patient_medical_comparison_report"> <table id="patient_medical_comparison" class="table table-bordered" style="width: 100%; display:none"> <thead> <tr> <td align="left" style="font-size: 10px"><strong>Report</strong></td> <td style="font-size: 10px"><strong>Start date</strong></td> <td style="font-size: 10px"><strong>End date</strong></td> <td style="font-size: 10px"><strong>Medical Examination Type</strong> </td> <td style="font-size: 10px" class="patient_selector"><strong>Patient</strong> </td> <td style="font-size: 10px" width="5%"><strong>Pdf</strong></td> <td style="font-size: 10px" width="5%"><strong>Excel</strong></td> </tr> </thead> <tbody> <tr> <td>Patient medical examination comparison report</td> <td> <div class="input-group"> <input class="form-control date-picker privious_year_selected" 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 today_year_selected" 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> <div class="input-group"> <select class="chosen-select form-control" multiple id="medical_exam_type" name="medical_exam_type[]" data-placeholder="Choose employee/contractor" width="50%"> <option value="" selected>All</option> <?php echo generateCheckupOptionsAccToOhc('checkup_type', 'checkup_type_name', 'checkup_type_id', '', '', 'type_status', 'Active', $_SESSION['current_ohcttype']); ?> </select> </div> </td> <!-- <td align="center"> <div class="form-group" > <div class=col-sm-1> <input type="checkbox" name="all" id="all" value="" onchange="$('.patient_selector').toggle(),setValue('all');" /> </div> </div> </td> --> <td class="patient_selector"> <div class="form-group"> <div class=col-sm-11> <?php include('patient_search_list_illness.php'); ?> </div> </div> </td> <td align="left"><a href="#" onclick="patient_medical_comparison_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="patient_medical_comparison_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td> </tr> </tbody> </table> </form> <form id="patient_opd_comparison_report" name="patient_opd_comparison_report"> <table id="patient_opd_comparison" class="table table-bordered" style="width: 100%; display:none"> <thead> <tr> <td align="left" style="font-size: 10px"><strong>Report</strong></td> <td style="font-size: 10px"><strong>Start date</strong></td> <td style="font-size: 10px"><strong>End date</strong></td> <td style="font-size: 10px"><strong>Case Type</strong> </td> <td style="font-size: 10px"><strong>All Patient</strong> </td> <td style="font-size: 10px" width="25%" class="patient_selector3"><strong>Patient</strong> </td> <td style="font-size: 10px" width="5%"><strong>Pdf</strong></td> <td style="font-size: 10px" width="5%"><strong>Excel</strong></td> </tr> </thead> <tbody> <tr> <td>Patient OPD comparison report</td> <td> <div class="input-group"> <input class="form-control date-picker privious_year_selected" style="width: 80px; 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 today_year_selected" style="width: 80px; 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 class="input-group"> <select class="chosen-select form-control" id="case_type" name="case_type" data-placeholder="Choose Case" width="50%"> <option value="" selected>All</option> <option value="O">OPD</option> <option value="I">INJURY</option> </select> </div> </td> <td align="center"> <div class="form-group"> <div class=col-sm-1> <input type="checkbox" name="all" id="all" value="" onchange="$('.patient_selector3').toggle(),setValue('all');" /> </div> </div> </td> <td class="patient_selector3"> <div class=" form-group3"> <div class=col-sm-11> <?php include('patient_search_list_opd_report.php'); ?> </div> </div> </td> <td align="left"><a href="#" onclick="patient_opd_comparison_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="patient_opd_comparison_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="10%"><strong>Status</strong></td> <td style="font-size: 10px" width="20%"><strong>Patient</strong></td> <td style="font-size: 10px" width="5%"><strong>Pdf</strong></td> <td style="font-size: 10px" width="5%"><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 class="patient_selector2"> <div class="form-group2"> <div class=col-sm-11> <?php include('patient_search_list_fitness_report.php'); ?> </div> </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="form16_report" name="form16_report"> <table id="form16report" class="table table-bordered" style="width: 100%; "> <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>Employee Type</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>form 16 Mis Report</td> <td> <div class="input-group"> <input class="form-control" style="width: 180px; font-size: 10px; height: 25px;" id="startDateForm16" name="startDateForm16" type="date" data-date-format="dd-mm-yyyy" /> </span> </div> </td> <td> <div class="input-group"> <input class="form-control" style="width: 180px; font-size: 10px; height: 25px;" id="endDateForm16" name="endDateForm16" type="date" data-date-format="dd-mm-yyyy" /> </span> </div> </td> <td> <div class="input-group"> <select class="form-control select2" name="employeeCateForm16" id="employeeCateForm16"> <option selected disabled>Please Select Employee Category</option> <option value="ALL">ALL</option> <?php echo generateOption('patient_category','patient_cat_name','patient_cat_id' ,'' , ''); ?> </select> </div> </td> <td> <div class="input-group"> <select class="form-control select2" name="DepartmentForm16" id="DepartmentForm16"> <option selected disabled>Please Select Employee Category</option> <option value="ALL">ALL</option> <?php echo generateOption('department','dept_name','dept_id' ,'' , ''); ?> </select> </div> </td> <td align="left"><a href="#" onclick="form16_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="form16_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="8%"><strong>Report</strong></td> <td style="font-size: 10px" width="3%"><strong>From Date</strong></td> <td style="font-size: 10px" width="8%"><strong>To Date</strong></td> <td style="font-size: 10px" width="8%"><strong>Only Referral</strong></td> <td style=" font-size: 10px" width="8%"><strong>Category</strong></td> <!-- <td style=" font-size: 10px" width="5%"><strong>Case Type</strong></td> --> <td style="font-size: 10px"><strong>Patient</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="8%"><strong>Pdf</strong></td> <td style="font-size: 10px" width="8%"><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: 130px; 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: 130px; 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: 130px; 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: 100px; 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 class="patient_selector"> <div class="form-group"> <div class=col-sm-11> <?php include('patient_search_list_daily_report.php'); ?> </div> </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[]" multiple 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="pending_chronic_medication_medicine_report" name="pending_chronic_medication_medicine_report"> <table id="pending_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>Pending 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>Pending 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_pending[]" id="chronic_illness_pending" class="form-control select2" multiple> <option selected value="ALL">ALL</option> <?php echo generateOption('abnormality', 'abnormality_name', 'abnormality_id', '', '') ?> </select> </div> </td> <td align="left"><a href="#" onclick="pending_chronic_medication_medicine_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="pending_chronic_medication_medicine_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td> </tr> </tbody> </table> </form> <form id="new_chronic_patient_report_form" name="new_chronic_patient_report_form"> <table id="new_chronic_patient_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>New Chronically ILL Patient 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_p[]" multiple id="chronic_illness_p" 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="new_chronic_patient_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="new_chronic_patient_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td> </tr> </tbody> </table> </form> <form id="patient_medical_parameter_report_form" name="patient_medical_parameter_report_form"> <table id="patient_medical_parameter_report" class="table table-bordered" style="width: 100%; display:none ;"> <thead> <tr> <td align="left" style="font-size: 10px"><strong>Report</strong></td> <td style="font-size: 10px"><strong>From Date</strong></td> <td style="font-size: 10px"><strong>To Date</strong></td> <td style="font-size: 10px"><strong>Medical parameter</strong></td> <td style="font-size: 10px" align="center"><strong>All Patient</strong> </td> <td style="font-size: 10px" class="patient_selector1"><strong>Patient</strong></td> <td style="font-size: 10px" width="5%"><strong>Pdf</strong></td> <td style="font-size: 10px" width="5%"><strong>Excel</strong></td> </tr> </thead> <tbody> <tr> <td>Patient Medical Parameter Report</td> <td> <div class="input-group"> <input class="form-control date-picker privious_year_selected" style="width: 80px; 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 today_year_selected" style="width: 80px; 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 class="chosen-select form-control" id="health_parameter" name="health_parameter" data-placeholder="Select Health Parameter"> <?php echo generateOption('key_health_reportable_parameter_master', 'key_param_name', 'key_param_id', '', ''); ?> </select> </div> </td> <td align="center"> <div class="form-group"> <div class=col-sm-1> <input type="checkbox" name="all1" id="all1" value="" onchange="$('.patient_selector1').toggle(),setValue('all1');" /> </div> </div> </td> <td class="patient_selector1"> <div class="form-group"> <div class=col-sm-11> <!-- <input type="number" name="patient_id" id="patient_id" value="" /> --> <?php include('patient_search_list_med_parameter_report.php'); ?> </div> </div> </td> <td align="left" style="width: 10px;"><a href="#" onclick="patient_medical_parameter_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left" style="width: 10px;"><a href="#" onclick="patient_medical_parameter_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="chosen-select form-control" multiple> <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="10%"><strong>Start Date</strong></td> <td style="font-size: 10px" width="10%"><strong>End Date</strong></td> <td style="font-size: 10px" width="15%"><strong>Location</strong></td> <td style="font-size: 10px" width="20%"><strong>Number / Name</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>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> <select style="height: 30px; font-size: 10px" class="chosen-select form-control" onchange="getLocation(this.value);" name="location" data-placeholder="Select Employee" id="location" autofocus="autofocus" required> <option value="">Select</option> <?php $sql_location = "select ohc_type_name,ohc_type_id from ohc_type where ohc_type_id!='1' and `ohc_category`!='OHC' and ohc_type_id!='2' and ohc_desc!='ohc'"; echo generate_options($sql_location, $row['ohc_type_id'], 'ohc_type_id', 'ohc_type_name', '', ''); ?> </select> </td> <td> <div class="form-group" id=ambulance_div> <select class="form-control select2" id="ambulance_number" name="ambulance_number"> <option disabled selected>Please select option</option> <?php echo generateOption('ambulance_details_new', 'ambulance_number', 'id', '', ''); ?> </select> </div> <div class="form-group" id=box_div1> <div class=col-sm-12> <select class="form-control select2" id="box_number" name="box_number"> <option disabled selected>Please select option</option> <?php echo generateOption('first_aid_box', "CONCAT(box_code,'-',box_name)", 'box_id', '', ''); ?> </select> </div> </div> <div class="form-group"> <div class=col-sm-12> <?php include('patient_search_list_adiir.php'); ?> </div> </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> </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="10%"><strong>Start Date</strong></td> <td style="font-size: 10px" width="10%"><strong>End Date</strong></td> <td style="font-size: 10px" width="15%"><strong>Location</strong></td> <td style="font-size: 10px" width="20%"><strong>Number / Name</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>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> <select style="height: 30px; font-size: 10px" class="chosen-select form-control" onchange="getLocation01(this.value);" name="location01" data-placeholder="Select Employee" id="location01" autofocus="autofocus" required> <option value="">Select</option> <?php $sql_location = "select ohc_type_name,ohc_type_id from ohc_type where ohc_type_id!='1' and `ohc_category`!='OHC' and ohc_type_id!='2' and ohc_desc!='ohc'"; echo generate_options($sql_location, $row['ohc_type_id'], 'ohc_type_id', 'ohc_type_name', '', ''); ?> </select> </td> <td> <div class="form-group" id=ambulance_div01> <select class="form-control select2" id="ambulance_number01" name="ambulance_number01"> <option disabled selected>Please select option</option> <?php echo generateOption('ambulance_details_new', 'ambulance_number', 'id', '', ''); ?> </select> </div> <div class="form-group" id=box_div101> <div class=col-sm-12> <select class="form-control select2" id="box_number01" name="box_number01"> <option disabled selected>Please select option</option> <?php echo generateOption('first_aid_box', "CONCAT(box_code,'-',box_name)", 'box_id', '', ''); ?> </select> </div> </div> <div class="form-group"> <div class=col-sm-12> <?php include('patient_search_list_dsri.php'); ?> </div> </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="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="30%"><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 col-sm-10"> <select class="chosen-select form-control " id="exam_type" name="exam_type" data-placeholder="Choose medical examination type"> <option value="" disabled selected>please select a report</option> <?php echo generateCheckupOptionsAccToOhc('checkup_type', 'checkup_type_name', 'checkup_type_id', '', '', 'type_status', 'Active', $_SESSION['current_ohcttype']); ?> </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="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="habit_report_form" name="habit_report_form"> <table id="habit_report_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>Habit</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>Habit report</td> <td> <select class="form-control chosen-select" style="width: 180px;" multiple name="habit_id[]" id="habit_id"> <option value="" disabled>Please select an option</option> <option value="All">All</option> <?php echo generate_options('select habit,habit_id from habits', '', 'habit_id', 'habit', '', '') ?> </select> </td> <td align="left"><a href="#" onclick="habit_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="habit_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td> </tr> </tbody> </table> </form> <form id="allergy_report_form" name="allergy_report_form"> <table id="allergy_report_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>Drug Allergy</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>Drug Allergy Report</td> <td> <select class="form-control chosen-select" style="width: 180px;" multiple name="salt_id[]" id="salt_id"> <option value="" disabled>Please select an option</option> <option value="All">All</option> <?php echo generate_options('select salt_name,salt_id from salt_master', '', 'salt_id', 'salt_name', '', '') ?> </select> </td> <td align="left"><a href="#" onclick="allergy_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="allergy_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="body_system_summary_form" name="body_system_summary_form"> <table id="body_system_summary_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>Body System Summary Report</td> <td> <div class="input-group"> <input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startbodyDate" name="startbodyDate" 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="endbodyDate" name="endbodyDate" 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="body_system_summary_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="body_system_summary_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>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 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="body_system_summary_form" name="body_system_summary_form"> <table id="body_system_summary_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>Body System Summary Report</td> <td> <div class="input-group"> <input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="startbodyDate" name="startbodyDate" 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="endbodyDate" name="endbodyDate" 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="body_system_summary_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="body_system_summary_report_excel();"><i class="glyphicon glyphicon-download-alt"></i></a></td> </tr> </tbody> </table> </form> <form id="oxy_report" name="oxy_report"> <table id="oxy" 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>Oxygen cylinder Issue Report</td> <td> <div class="input-group"> <input class="form-control date-picker" style="width: 180px; font-size: 10px; height: 25px;" id="oxyDate1" name="oxyDate1" 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="oxyDate2" name="oxyDate2" 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="oxy_report_pdf();"><i class="glyphicon glyphicon-file"></i></a></td> <td align="left"><a href="#" onclick="oxy_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> getLocation($("#ohc_loc").val()); function getLocation(emp) { if (emp == "3") $("#ambulance_div").show(), $("#box_div1").hide(), $("#patient1").hide(); else if (emp == "4") $("#box_div1").show(), $("#ambulance_div").hide(), $("#patient1").hide(); else if (emp == "11") $("#patient1").show(), $("#box_div1").hide(), $("#ambulance_div").hide(); else $("#box_div1").hide(), $("#ambulance_div").hide(), $("#patient1").hide(); } getLocation01($("#ohc_loc01").val()); function getLocation01(emp01) { if (emp01 == "3") $("#ambulance_div01").show(), $("#box_div101").hide(), $("#patient101").hide(); else if (emp01 == "4") $("#box_div101").show(), $("#ambulance_div01").hide(), $("#patient101").hide(); else if (emp01 == "11") $("#patient101").show(), $("#box_div101").hide(), $("#ambulance_div01").hide(); else $("#box_div101").hide(), $("#ambulance_div01").hide(), $("#patient101").hide(); } 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 body_system_summary_report_pdf() { document.forms['body_system_summary_form'].action = "body_system_pdf.php"; document.forms['body_system_summary_form'].method = 'POST'; document.forms['body_system_summary_form'].target = '_blank' document.forms['body_system_summary_form'].submit(); } function body_system_summary_report_excel() { document.forms['body_system_summary_form'].action = "body_system_excel.php"; document.forms['body_system_summary_form'].method = 'POST'; document.forms['body_system_summary_form'].target = '_blank' document.forms['body_system_summary_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 patient_medical_comparison_report_pdf() { // alert($('#patient_id').val()); document.forms['patient_medical_comparison_report'].action = "patient_medical_comparison_report_pdf.php"; document.forms['patient_medical_comparison_report'].method = 'POST'; document.forms['patient_medical_comparison_report'].target = '_blank' document.forms['patient_medical_comparison_report'].submit(); } function patient_medical_comparison_report_excel() { document.forms['patient_medical_comparison_report'].action = "patient_medical_comparison_report_excel.php"; document.forms['patient_medical_comparison_report'].method = 'POST'; document.forms['patient_medical_comparison_report'].target = '_blank' document.forms['patient_medical_comparison_report'].submit(); } function patient_opd_comparison_report_pdf() { // alert($('#patient_id').val()); document.forms['patient_opd_comparison_report'].action = "patient_opd_comparison_report_pdf.php"; document.forms['patient_opd_comparison_report'].method = 'POST'; document.forms['patient_opd_comparison_report'].target = '_blank' document.forms['patient_opd_comparison_report'].submit(); } function patient_opd_comparison_report_excel() { document.forms['patient_opd_comparison_report'].action = "patient_opd_comparison_report_excel.php"; document.forms['patient_opd_comparison_report'].method = 'POST'; document.forms['patient_opd_comparison_report'].target = '_blank' document.forms['patient_opd_comparison_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 new_chronic_patient_report_pdf() { document.forms['new_chronic_patient_report_form'].action = "new_chronic_patient_report_pdf.php"; document.forms['new_chronic_patient_report_form'].method = 'POST'; document.forms['new_chronic_patient_report_form'].target = '_blank' document.forms['new_chronic_patient_report_form'].submit(); } function new_chronic_patient_report_excel() { document.forms['new_chronic_patient_report_form'].action = "new_chronic_patient_report_excel.php"; document.forms['new_chronic_patient_report_form'].method = 'POST'; document.forms['new_chronic_patient_report_form'].target = '_blank' document.forms['new_chronic_patient_report_form'].submit(); } function pending_chronic_medication_medicine_report_pdf() { document.forms['pending_chronic_medication_medicine_report'].action = "pending_chronic_medication_medicine_report_pdf.php"; document.forms['pending_chronic_medication_medicine_report'].method = 'POST'; document.forms['pending_chronic_medication_medicine_report'].target = '_blank' document.forms['pending_chronic_medication_medicine_report'].submit(); } function pending_chronic_medication_medicine_report_excel() { document.forms['pending_chronic_medication_medicine_report'].action = "pending_chronic_medication_medicine_report_excel.php"; document.forms['pending_chronic_medication_medicine_report'].method = 'POST'; document.forms['pending_chronic_medication_medicine_report'].target = '_blank' document.forms['pending_chronic_medication_medicine_report'].submit(); } function patient_medical_parameter_report_pdf() { document.forms['patient_medical_parameter_report_form'].action = "patient_medical_parameter_report_pdf.php"; document.forms['patient_medical_parameter_report_form'].method = 'POST'; document.forms['patient_medical_parameter_report_form'].target = '_blank' document.forms['patient_medical_parameter_report_form'].submit(); } function patient_medical_parameter_report_excel() { document.forms['patient_medical_parameter_report_form'].action = "patient_medical_parameter_report_excel.php"; document.forms['patient_medical_parameter_report_form'].method = 'POST'; document.forms['patient_medical_parameter_report_form'].target = '_blank' document.forms['patient_medical_parameter_report_form'].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 habit_report_pdf() { document.forms['habit_report_form'].action = "habit_report_pdf.php"; document.forms['habit_report_form'].method = 'POST'; document.forms['habit_report_form'].target = '_blank'; document.forms['habit_report_form'].submit(); } function habit_report_excel() { document.forms['habit_report_form'].action = "habit_report_excel.php"; document.forms['habit_report_form'].method = 'POST'; document.forms['habit_report_form'].target = '_blank'; document.forms['habit_report_form'].submit(); } function allergy_report_pdf() { document.forms['allergy_report_form'].action = "allergy_report_pdf.php"; document.forms['allergy_report_form'].method = 'POST'; document.forms['allergy_report_form'].target = '_blank'; document.forms['allergy_report_form'].submit(); } function allergy_report_excel() { document.forms['allergy_report_form'].action = "allergy_report_excel.php"; document.forms['allergy_report_form'].method = 'POST'; document.forms['allergy_report_form'].target = '_blank'; document.forms['allergy_report_form'].submit(); } function attendance_pdf() { document.forms['attendance_form'].action = "attendence_short_report_pdf.php"; document.forms['attendance_form'].method = 'POST'; document.forms['attendance_form'].target = '_blank' document.forms['attendance_form'].submit(); } function attendance_excel() { document.forms['attendance_form'].action = "attendence_short_report_pdf.php?excel=YES"; document.forms['attendance_form'].method = 'POST'; document.forms['attendance_form'].target = '_blank' document.forms['attendance_form'].submit(); } function attendance_pdf_driver() { document.forms['attendance_form_driver'].action = "attendence_short_report_pdf_driver.php"; document.forms['attendance_form_driver'].method = 'POST'; document.forms['attendance_form_driver'].target = '_blank' document.forms['attendance_form_driver'].submit(); } function attendance_excel_driver() { document.forms['attendance_form_driver'].action = "attendence_short_report_pdf_driver.php?excel=YES"; document.forms['attendance_form_driver'].method = 'POST'; document.forms['attendance_form_driver'].target = '_blank' document.forms['attendance_form_driver'].submit(); } function oxy_report_pdf() { document.forms['oxy_report'].action = "oxy_report_pdf.php?excel=NO"; document.forms['oxy_report'].method = 'POST'; document.forms['oxy_report'].target = '_blank' document.forms['oxy_report'].submit(); } function oxy_report_excel() { document.forms['oxy_report'].action = "oxy_report_pdf.php?excel=YES"; document.forms['oxy_report'].method = 'POST'; document.forms['oxy_report'].target = '_blank' document.forms['oxy_report'].submit(); } function form16_report_pdf() { document.forms['form16_report'].action = "form16_report_mis.php"; document.forms['form16_report'].method = 'POST'; document.forms['form16_report'].target = '_blank' document.forms['form16_report'].submit(); } function form16_report_excel() { document.forms['form16_report'].action = "form16_report_mis.php?excel=YES"; document.forms['form16_report'].method = 'POST'; document.forms['form16_report'].target = '_blank' document.forms['form16_report'].submit(); } function show_report(repID) { if(repID === '131'){ $("#oxy").show(); }else{ $("#oxy").hide(); } if (repID === '27') { $("#long_term").show(); } else { $("#long_term").hide(); } if (repID === '129') { $("#attendance_repo").show(); } else { $("#attendance_repo").hide(); } if (repID === '129') { $("#attendance_repo_driver").show(); $(".dm").show(); } else { $("#attendance_repo_driver").hide(); $(".dm").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 === '123') { $("#patient_medical_comparison").show(); } else { $("#patient_medical_comparison").hide(); } if (repID === '127') { $("#patient_opd_comparison").show(); } else { $("#patient_opd_comparison").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 == '126') { $("#pending_chronic_medication_report").show(); } else { $("#pending_chronic_medication_report").hide(); } if (repID == '128') { $("#new_chronic_patient_report").show(); } else { $("#new_chronic_patient_report").hide(); } if (repID == '125') { $("#patient_medical_parameter_report").show(); } else { $("#patient_medical_parameter_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(); } if (repID === '122') { $("#habit_report_table").show(); } else { $("#habit_report_table").hide(); } if (repID === '124') { $("#allergy_report_table").show(); } else { $("#allergy_report_table").hide(); } if (repID == '130') { $("#body_system_summary_table").show(); } else { $("#body_system_summary_table").hide(); } if (repID == '132') { $("#form16report").show(); } else { $("#form16report").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); } jQuery(function($) { $('#medical_exam_type_chosen').css('width', '200px') }); function setValue(id) { var box = document.getElementById(id); if (box.checked == true) { document.getElementById(id).value = 1; } else { document.getElementById(id).value = 0; } } const today_pre = new Date(); const yyyy_pre = today_pre.getFullYear() - 5; const formattedToday_pre = '01-01-' + yyyy_pre; $('.privious_year_selected').val(formattedToday_pre) const today = new Date(); const yyyy = today.getFullYear(); let mm = today.getMonth() + 1; // Months start at 0! let dd = today.getDate(); if (dd < 10) dd = '0' + dd; if (mm < 10) mm = '0' + mm; const formattedToday = dd + '-' + mm + '-' + yyyy; $('.today_year_selected').val(formattedToday) </script>