811 lines
48 KiB
PHP
811 lines
48 KiB
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include_once("includes/functions.php");
|
|
|
|
$emp_id = $_REQUEST['emp_id'];
|
|
$numrows=0;
|
|
//$content ="<div class=\"row\">";
|
|
$content.="<div class=\"col-xs-12\">";
|
|
$content.="<table id=\"simple-table\" class=\"table table-bordered table-hover\">";
|
|
$content.="<tbody>";
|
|
//start table header
|
|
$content.="<thead>";
|
|
$content.="<tr>";
|
|
$content.="<th class=\"detail-col\">Details</th>";
|
|
$content.="<th><i class=\"ace-icon fa fa-clock-o bigger-110 hidden-480\"></i>Date</th>";
|
|
$content.="<th>Complaints/Injury Details</th>";
|
|
$content.="<th class=\"hidden-480\">Examination Findings</th>";
|
|
$content.="<th class=\"hidden-480\">Diagnosis/Injury Type</th>";
|
|
$content.="<th class=\"hidden-480\">Treatments</th>";
|
|
$content.="<th>Referral</th>";
|
|
$content.="<th class=\"hidden-480\">Follow-up</th>";
|
|
$content.="<th class=\"hidden-480\">Remarks</th>";
|
|
$content.="<th></th>";
|
|
$content.="</tr>";
|
|
$content.="</thead>";
|
|
//end table header
|
|
$content.="<tbody>";
|
|
|
|
|
|
$query = "select * from visitors_employee_appointment where emp_id = '".$emp_id."' order by appointment_date desc ";
|
|
if (!$result = @mysqli_query($conn,$query)) {
|
|
exit(mysqli_error($conn));
|
|
}
|
|
//$data = array();
|
|
$numrows=mysqli_num_rows($result) ;
|
|
|
|
if($numrows > 0) {
|
|
while ($row = mysqli_fetch_assoc($result)) {
|
|
|
|
$content.="<tr>";
|
|
$content.="<td class=\"center\">";
|
|
$content.="<div class=\"action-buttons\">";
|
|
$content.=" <a href=\"#\" class=\"green bigger-140 show-details-btn\" id='details".$row['appointment_id']."' onclick=\"expandDetails('details".$row['appointment_id']."')\" title=\"Show Details\">";
|
|
$content.=" <i class=\"ace-icon fa fa-angle-double-down\"></i>";
|
|
$content.=" <span class=\"sr-only\">Details</span>";
|
|
$content.=" </a>";
|
|
$content.="</div>";
|
|
$content.="</td>";
|
|
|
|
|
|
|
|
$content.="<td>";
|
|
$content.=date_format(date_create($row['appointment_date']),"d-M-Y H:i A");
|
|
$content.="</td>";
|
|
$content.="<td>".$row['complaints']."</td>";
|
|
$content.="<td>".$row['examination_remarks']."</td>";
|
|
$content.="<td>";
|
|
if($row['appointment_type']=='O'){
|
|
$content.="<span class=\"label label-sm label-warning\">";
|
|
$content.=getCommaSeperatedValuesForInClause("select ailment_name from ailment ","ailment_id",$row['ailment_ids']);
|
|
$content.="</span>";
|
|
}else if($row['appointment_type']=='I'){
|
|
$content.="<span class=\"label label-sm label-danger\">";
|
|
$content.=getCommaSeperatedValuesForInClause("select injury_type_name from injury_type","injury_type_id",$row['injury_types']);
|
|
$content.="</span>";
|
|
}
|
|
$content.="</td>";
|
|
$content.="<td>".$row['referral']."</td>";
|
|
|
|
|
|
$content.="<td></td>";
|
|
|
|
$content.="<td>".$row['followup']."</td>";
|
|
$content.="<td>".$row['remarks']."</td>";
|
|
$content.="<td>";
|
|
//buttons start
|
|
$content.="<div class=\"hidden-sm hidden-xs btn-group\">";
|
|
$content.="<button class=\"btn btn-xs btn-success\"";
|
|
$content.="onclick=\"validate_update('opd_form".$row['appointment_id']."','".$row['appointment_id']."');\">";
|
|
$content.=" <i class=\"ace-icon fa fa-check bigger-120\"></i>";
|
|
$content.="</button>";
|
|
|
|
$content.="<button class=\"btn btn-xs btn-info\">";
|
|
$content.=" <i class=\"ace-icon fa fa-print bigger-120\"></i>";
|
|
$content.="</button>";
|
|
|
|
$content.="<button class=\"btn btn-xs btn-danger\" onclick=\"delete_appointment('".$row['appointment_id']."')\">";
|
|
$content.=" <i class=\"ace-icon fa fa-trash-o bigger-120\"></i>";
|
|
$content.="</button>";
|
|
|
|
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"hidden-md hidden-lg\">";
|
|
$content.="<div class=\"inline pos-rel\">";
|
|
$content.="<button class=\"btn btn-minier btn-primary dropdown-toggle\" data-toggle=\"dropdown\" data-position=\"auto\">";
|
|
$content.="<i class=\"ace-icon fa fa-cog icon-only bigger-110\"></i>";
|
|
$content.="</button>";
|
|
|
|
$content.="<ul class=\"dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close\">";
|
|
$content.="<li>";
|
|
$content.="<a href=\"#\" class=\"tooltip-info\" data-rel=\"tooltip\" title=\"\" data-original-title=\"Print\">";
|
|
$content.=" <span class=\"blue\">";
|
|
$content.="<i class=\"ace-icon fa fa-print bigger-120\"></i>";
|
|
$content.="</span>";
|
|
$content.="</a>";
|
|
$content.="</li>";
|
|
|
|
$content.="<li>";
|
|
$content.="<a href=\"#\" onclick=\"validate_update('opd_form".$row['appointment_id']."','".$row['appointment_id']."');\" class=\"tooltip-success\" data-rel=\"tooltip\" title=\"\" data-original-title=\"Save\">";
|
|
$content.="<span class=\"green\">";
|
|
$content.=" <i class=\"ace-icon fa fa-check bigger-120\"></i>";
|
|
$content.=" </span>";
|
|
$content.="</a>";
|
|
$content.="</li>";
|
|
|
|
$content.="<li>";
|
|
$content.="<a href=\"#\" onclick=\"delete_appointment('".$row['appointment_id']."')\" class=\"tooltip-error\" data-rel=\"tooltip\" title=\"\" data-original-title=\"Delete\">";
|
|
$content.="<span class=\"red\">";
|
|
$content.="<i class=\"ace-icon fa fa-trash-o bigger-120\"></i>";
|
|
$content.="</span>";
|
|
$content.="</a>";
|
|
$content.="</li>";
|
|
$content.="</ul>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
$content.="</td>";
|
|
//buttons end
|
|
$content.="</tr>";
|
|
|
|
$content.="<tr class=\"detail-row\">";
|
|
$content.="<td colspan=\"10\">";
|
|
$content.="<div class=\"table-detail\">";
|
|
$content.="<div class=\"row\">";
|
|
$content.="<form id=\"opd_form".$row['appointment_id']."\" method=\"post\">";
|
|
|
|
if($row['appointment_type']=='O'){
|
|
//include('opd_entry_embed.php');
|
|
//opd form
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-xs-12 col-sm-9\">";
|
|
|
|
$content.=" <div class=\"col-xs-12\">";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-3\">";
|
|
$content.="<label for=\"appointment_date\">Visit Date & Time</label>";
|
|
$content.="<div class=\"input-group\">";
|
|
$content.="<input id=\"emp_id".$row['appointment_id']."\" name=\"emp_id\" type=\"hidden\"value=\"".$emp_id."\"/>";
|
|
$content.="<input id=\"appointment_id".$row['appointment_id']."\" name=\"appointment_id\" type=\"hidden\" value=\"".$row['appointment_id']."\"/>";
|
|
$content.="<input id=\"appointment_type".$row['appointment_id']."\" name=\"appointment_type\" type=\"hidden\" value=\"".$row['appointment_type']."\"/>";
|
|
$content.="<input id=\"appointment_date".$row['appointment_id']."\" type=\"text\" class=\"form-control\" name=\"appointment_date\"/>";
|
|
$content.="<span class=\"input-group-addon\">";
|
|
$content.=" <i class=\"fa fa-clock-o bigger-110\"></i>";
|
|
$content.="</span>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.=" <label for=\"form-field-8\">Complaints</label>";
|
|
$content.=" <textarea rows=\"5\" cols=\"10\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 52px;\"name=\"complaints\" id=\"complaints".$row['appointment_id']."\" placeholder=\"Injury Description\" maxlength=\"500\">".$row['complaints']."</textarea>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.=" <label for=\"form-field-8\">Examination Findings</label>";
|
|
$content.=" <textarea rows=\"5\" cols=\"10\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 52px;\"id=\"examination_remarks".$row['appointment_id']."\" name=\"examination_remarks\" placeholder=\"Examination Findings..\" maxlength=\"500\">".$row['examination_remarks']."</textarea>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.=" <label for=\"ailment\">Diagnosis</label>";
|
|
$content.="<select multiple=\"\" class=\"chosen-select form-control\" id=\"ailment".$row['appointment_id']."\" name=\"ailment[]\" data-placeholder=\"Select Diagnosis\">";
|
|
$content.=generateOption('ailment','ailment_name','ailment_id','','');
|
|
$content.="</select>";
|
|
$content.="</div>";
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.=" <label for=\"ailment_system\">Ailment Systems</label>";
|
|
$content.="<select multiple=\"\" class=\"chosen-select form-control\" id=\"ailment_system".$row['appointment_id']."\" name=\"ailment_system[]\" data-placeholder=\"Choose a System...\" style=\"display: none;\">";
|
|
$content.=generateOption('ailment_system','ailment_sys_name','ailment_sys_id','','');
|
|
$content.="</select>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
//treatment start
|
|
$content.=" <table id=\"treatmentTable".$row['appointment_id']."\" class=\"table table-bordered table-hover\" style=\"width:100%;\">";
|
|
$content.=" <thead>";
|
|
$content.=" <tr class=\"active\">";
|
|
$content.=" <th>Item</th>";
|
|
$content.=" <th>Dosages</th>";
|
|
$content.=" <th>For Days</th> ";
|
|
$content.=" <th>Qty</th> ";
|
|
$content.=" <th>Issued</th> ";
|
|
$content.=" <th>Procedure</th>";
|
|
$content.=" <th></th>";
|
|
$content.=" </tr>";
|
|
$content.=" </thead>";
|
|
$content.=" <tbody>";
|
|
|
|
$sql_treatment="select * from treatment where appointment_id='".$row['appointment_id']."' order by treatment_id";
|
|
$result_treatment = mysqli_query($conn,$sql_treatment);
|
|
$num_rows_treatment=@mysqli_num_rows($result_treatment);
|
|
$tCount =0;
|
|
while($row_treatment=@mysqli_fetch_array($result_treatment))
|
|
{
|
|
extract($row_treatment);
|
|
|
|
$content.="<tr>";
|
|
$content.=" <td class=\"col-sm-3\">";
|
|
$content.=" <select class=\"chosen-select form-control\" id=\"treatment_item".$row['appointment_id']."_".$tCount."\"name=\"treatment_item".$tCount."\" data-placeholder=\"Treatment...\" onchange=\"getItemDetails(this.value,'current_stock".$row['appointment_id']."_".$tCount."','current_rate".$row['appointment_id']."_".$tCount."','".$row['appointment_id']."_".$tCount."', '".$tCount."');\"";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.=generateOption('tbl_items','item_name','item_id',$row_treatment['item_id'],'');
|
|
$content.=" </select>";
|
|
$content.="<script>getItemDetails('".$row_treatment['item_id']."','current_stock".$row['appointment_id']."_".$tCount."','current_rate".$row['appointment_id']."_".$tCount."','".$row['appointment_id']."_".$tCount."', '".$tCount."');</script>";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-3\"> ";
|
|
$content.=" <select class=\"chosen-select form-control\" onchange=\"getFrequenceyQty(this.value,'frequency_qty".$row['appointment_id']."_".$tCount."','dosage".$row['appointment_id']."_".$tCount."','".$row['appointment_id']."','".$tCount."');\" class=\"chosen-select form-control\" id=\"treatment_item_dosage".$tCount."\"name=\"treatment_item_dosage".$tCount."\" data-placeholder=\"Dosages...\" style=\"display: none;\">";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.=generateOption('medicine_frequency','medicine_frequency','frequency_id',$row_treatment['frequency_id'],'');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-1\"> ";
|
|
$content.=" <input type=\"number\"class=\"form-control\" onblur=\"updateTotalMedicineQty('frequency_qty".$row['appointment_id']."_".$tCount."','treatment_item_days".$row['appointment_id']."_".$tCount."','treatment_item_total".$row['appointment_id']."_".$tCount."')\" name=\"treatment_item_days".$tCount."\" id=\"treatment_item_days".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['for_days']."\"/>";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-1\"> ";
|
|
$content.=" <input type=\"hidden\" name=\"frequency_qty".$tCount."\" id=\"frequency_qty".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['price']."\" />
|
|
<input type=\"hidden\" name=\"dosage".$tCount."\" id=\"dosage".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['dosage']."\" />
|
|
<input type=\"hidden\" name=\"current_stock".$tCount."\" id=\"current_stock".$row['appointment_id']."_".$tCount."\" />
|
|
<input type=\"hidden\" name=\"current_rate".$tCount."\" id=\"current_rate".$row['appointment_id']."_".$tCount."\" />
|
|
<input type=\"hidden\" name=\"price".$tCount."\" id=\"price".$row['appointment_id']."_".$tCount."\" />
|
|
<input type=\"number\" class=\"form-control\" name=\"treatment_item_total".$tCount."\" id=\"treatment_item_total".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['item_qty']."\" />";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-1\"> ";
|
|
$content.=" <input onblur=\"updatePrice('treatment_item_qtygvn".$row['appointment_id']."_".$tCount."','treatment_item".$row['appointment_id']."_".$tCount."','current_rate".$row['appointment_id']."_".$tCount."','current_stock".$row['appointment_id']."_".$tCount."','price".$row['appointment_id']."_".$tCount."')\" type=\"number\"class=\"form-control\" name=\"treatment_item_qtygvn".$tCount."\" id=\"treatment_item_qtygvn".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['issued_qty']."\"/>";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-2\">";
|
|
$content.=" <input type=\"text\" class=\"form-control\" name=\"treatment_item_remarks".$tCount."\" id=\"treatment_item_remarks".$tCount."\" value=\"".$row_treatment['remarks']."\" />";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-1\"><a class=\"deleteRow\"></a>";
|
|
$content.="<a href=\"#\"><i class=\"ace-icon fa fa-trash-o bigger-130\"></i></a> ";
|
|
$content.=" </td>";
|
|
$content.=" </tr>";
|
|
$tCount++;
|
|
}//end treatment loop
|
|
$content.=" </tbody>";
|
|
$content.=" <tfoot>";
|
|
$content.=" <tr>";
|
|
$content.=" <td colspan=\"8\" style=\"text-align: left;\">";
|
|
$content.=" <input type=\"button\" class=\"btn btn-lg btn-block btn-success \" onclick='addRow(".$row['appointment_id'].")' id=\"addrow".$row['appointment_id']."\" value=\"Add Row\" />";
|
|
$content.=" <input type=\"hidden\" name=\"count_treatment_item\" id=\"count_treatment_item".$row['appointment_id']."\" value=\"".$tCount."\" />";
|
|
|
|
$content.=" </td>";
|
|
$content.=" </tr>";
|
|
$content.=" <tr>";
|
|
$content.="</tr>";
|
|
$content.=" </tfoot>";
|
|
$content.="</table>";
|
|
//treatment end
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.=" <label for=\"referral\">Referral</label> ";
|
|
$content.=" <textarea name=\"referral\" id=\"referral".$row['appointment_id']."\" placeholder=\"Referral\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 52px;\">".$row['referral']."</textarea>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.="<label for=\"followup\">Follow Up</label>";
|
|
$content.="<textarea id=\"followup".$row['appointment_id']."\" name=\"followup\" placeholder=\"Follow Up\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 52px;\">".$row['followup']."</textarea>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
$content.="</div>";//end col-sm-12\\
|
|
|
|
$content.="</div>";//end cols-sm-9
|
|
|
|
|
|
$content.="<div class=\"col-xs-3\">";
|
|
$content.="<div class=\"widget-box\">";
|
|
$content.="<div class=\"widget-body\">";
|
|
$content.=" <div class=\"widget-main\">";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.="<label for=\"isEmergency\">Is Emergency</label>";
|
|
$content.="<select class=\"form-control\" id=\"isEmergency".$row['appointment_id']."\" name=\"isEmergency\">";
|
|
$content.="<option value=\"0\" ";
|
|
$content.=($row['isEmergency']==0)?"selected":"";
|
|
$content.=">No</option>";
|
|
$content.="<option value=\"1\" ";
|
|
$content.=($row['isEmergency']==1)?"selected":"";
|
|
$content.=">Yes</option>";
|
|
$content.=" </select>";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.=" <input type=\"number\" class=\"col-xs-4\" value=\"".$row['bp_sbp']."\" placeholder=\"SBP\" id=\"sbp".$row['appointment_id']."\" name=\"sbp\"> ";
|
|
$content.=" <input type=\"number\"class=\"col-xs-4\" value=\"".$row['bp_dbp']."\"id=\"dbp".$row['appointment_id']."\" name=\"dbp\" placeholder=\"dbp\">";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.="<input type=\"number\" class=\"col-xs-4\" placeholder=\"FBS\" id=\"fbs".$row['appointment_id']."\" name=\"fbs\" value=\"".$row['blood_sugar_fbs']."\">";
|
|
$content.="<input type=\"number\"class=\"col-xs-4\" id=\"rbs".$row['appointment_id']."\" name=\"rbs\" placeholder=\"RBS\" value=\"".$row['blood_sugar_rbs']."\"> ";
|
|
$content.="<input type=\"number\"class=\"col-xs-4\" id=\"ppbs".$row['appointment_id']."\" name=\"ppbs\" placeholder=\"PPBS\"value=\"".$row['blood_sugar_ppbs']."\">";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.=" <label class=\"control-label\" for=\"injury_part\">Affected Body Parts</label>";
|
|
$content.="<select multiple=\"\" class=\"chosen-select form-control\" id=\"injury_part".$row['appointment_id']."\" name=\"injury_part[]\" data-placeholder=\"Affected Body Parts..\" style=\"display: none;\">";
|
|
$content.=generateOption('injury_part','inj_name','inj_id','','');
|
|
$content.="</select>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.=" <label class=\"control-label\" for=\"health_advice_name\">Health Advices</label>";
|
|
$content.="<select multiple=\"\" class=\"chosen-select form-control\" id=\"health_advice_name".$row['appointment_id']."\" name=\"health_advice_name[]\" data-placeholder=\"Health Advices..\">";
|
|
$content.= generateOption('health_advice','health_advice_name','health_advice_id','','');
|
|
$content.="</select>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.="<label for=\"remarks\">Additional Precautions</label>";
|
|
$content.="<textarea placeholder=\"Additional Precautions..\" rows=\"5\" cols=\"10\" name=\"remarks\" id=\"remarks".$row['appointment_id']."\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word;\">".$row['remarks']."</textarea>";
|
|
$content.="</div>";
|
|
$content.=" </div>";
|
|
|
|
|
|
$content.=" </div>";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
$content.=" </div>";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
$content.="</div";
|
|
$content.="</div>";
|
|
//$content.="</form> ";
|
|
//end opd form
|
|
//opd script
|
|
|
|
$content.="<script type=\"text/javascript\">";
|
|
|
|
$content.="var ailments = \"".$row['ailment_ids']."\";";
|
|
$content.="dataarray=ailments.split(\",\");";
|
|
$content.="$(\"#ailment".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
$content.="var injury_parts =\" ".$row['injury_parts']."\";";
|
|
$content.=" dataarray=injury_parts.split(\",\");";
|
|
$content.="$(\"#injury_part".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
$content.="var ailmentSystems = \"".$row['ailment_system_ids']."\";";
|
|
$content.="dataarray=ailmentSystems.split(\",\");";
|
|
$content.="$(\"#ailment_system".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
$content.="var bodyParts = \"".$row['injury_parts']."\";";
|
|
$content.="dataarray=bodyParts.split(\",\");";
|
|
$content.="$(\"#injury_part".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
$content.="var health_advices = \"".$row['health_advices']."\";";
|
|
$content.="dataarray=health_advices.split(\",\");";
|
|
$content.="$(\"#health_advice_name".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
$content.="$('#appointment_date".$row['appointment_id']."').datetimepicker({";
|
|
$content.=" format: 'DD/MM/YYYY h:mm A',";
|
|
$content.=" defaultDate: new Date(\"".$row['appointment_date']."\"),";
|
|
$content.=" maxDate: new Date(),";
|
|
$content.=" icons: {";
|
|
$content.=" time: 'fa fa-clock-o',";
|
|
$content.=" date: 'fa fa-calendar',";
|
|
$content.=" up: 'fa fa-chevron-up',";
|
|
$content.=" down: 'fa fa-chevron-down',";
|
|
$content.=" previous: 'fa fa-chevron-left',";
|
|
$content.=" next: 'fa fa-chevron-right',";
|
|
$content.=" today: 'fa fa-arrows ',";
|
|
$content.=" clear: 'fa fa-trash',";
|
|
$content.=" close: 'fa fa-times'";
|
|
$content.=" }";
|
|
$content.=" }).next().on(ace.click_event, function(){";
|
|
$content.=" $(this).prev().focus();";
|
|
$content.=" });";
|
|
$content.=" $('.show-details-btn').on('click', function(e) {";
|
|
$content.="e.preventDefault();";
|
|
$content.="$(this).closest('tr').next().toggleClass('open');";
|
|
$content.="$(this).find(ace.vars['.icon']).toggleClass('fa-angle-double-down').toggleClass('fa-angle-double-up');";
|
|
$content.="});";
|
|
|
|
$content.="</script>";
|
|
//end of opd script
|
|
}else if($row['appointment_type']=='I'){
|
|
//injury form
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-xs-12 col-sm-9\">";
|
|
|
|
$content.=" <div class=\"col-xs-12\">";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-3\">";
|
|
$content.="<label for=\"appointment_date\">Reporting Time at OHC</label>";
|
|
$content.="<div class=\"input-group\">";
|
|
$content.="<input id=\"emp_id".$row['appointment_id']."\" name=\"emp_id\" type=\"hidden\"value=\"".$emp_id."\"/>";
|
|
$content.="<input id=\"appointment_id".$row['appointment_id']."\" name=\"appointment_id\" type=\"hidden\" value=\"".$row['appointment_id']."\"/>";
|
|
$content.="<input id=\"appointment_type".$row['appointment_id']."\" name=\"appointment_type\" type=\"hidden\" value=\"".$row['appointment_type']."\"/>";
|
|
$content.="<input id=\"appointment_date".$row['appointment_id']."\" type=\"text\" class=\"form-control\" name=\"appointment_date\"/>";
|
|
$content.="<span class=\"input-group-addon\">";
|
|
$content.=" <i class=\"fa fa-clock-o bigger-110\"></i>";
|
|
$content.="</span>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"col-sm-3\">";
|
|
$content.="<label for=\"injury_time\">Injury Time</label>";
|
|
$content.="<div class=\"input-group\">";
|
|
$content.="<input id=\"appointment_type".$row['appointment_id']."\" name=\"appointment_type\" type=\"hidden\" value=\"".$row['appointment_type']."\"/>";
|
|
$content.="<input id=\"injury_time".$row['appointment_id']."\" type=\"text\" class=\"form-control\" name=\"injury_time\"/>";
|
|
$content.="<span class=\"input-group-addon\">";
|
|
$content.=" <i class=\"fa fa-clock-o bigger-110\"></i>";
|
|
$content.="</span>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.=" <label for=\"form-field-8\">Injury Description</label>";
|
|
$content.=" <textarea rows=\"5\" cols=\"10\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 52px;\"name=\"complaints\" id=\"complaints".$row['appointment_id']."\" placeholder=\"Injury Description\" maxlength=\"500\">".$row['complaints']."</textarea>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"col-sm-6\">";
|
|
$content.=" <label for=\"form-field-8\">On Examination Findings</label>";
|
|
$content.=" <textarea rows=\"5\" cols=\"10\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 52px;\"id=\"examination_remarks".$row['appointment_id']."\" name=\"examination_remarks\" placeholder=\"On Examination Findings..\" maxlength=\"500\">".$row['examination_remarks']."</textarea>";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.=" <div class=\"col-sm-12\">";
|
|
$content.=" <label class=\"control-label\" for=\"form-field-8\">Incident Location</label>";
|
|
$content.=" <table class=\"table table-bordered table-hover simple-table\">";
|
|
$content.=" <thead>";
|
|
$content.=" <tr class=\"active\">";
|
|
|
|
$content.=" <th>Business Unit</th> ";
|
|
$content.=" <th>Sub Unit</th> ";
|
|
$content.=" <th>Section</th> ";
|
|
$content.=" <th>Sub-Section</th>";
|
|
$content.=" </tr>";
|
|
$content.=" </thead>";
|
|
$content.=" <tbody>";
|
|
|
|
$content.=" <tr>";
|
|
$content.=" <td class=\"col-sm-3\">";
|
|
$content.=" <select class=\"chosen-select form-control\" id=\"injury_firm\" name=\"injury_firm\" data-placeholder=\"Business Unit\" style=\"display: none;\">";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.= generateOption('tbl_firms','firm_name','firm_id',$row['injury_firm'],'');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-3\">";
|
|
$content.=" <select class=\"chosen-select form-control\" id=\"injury_sbu\" name=\"injury_sbu\" data-placeholder=\"Department\" style=\"display: none;\">";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.= generateOption('sub_business_unit','sbu_name','sbu_id',$row['injury_sbu'],'');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-3\">";
|
|
$content.=" <select class=\"chosen-select form-control\" id=\"injury_section\" name=\"injury_section\" data-placeholder=\"Section\" style=\"display: none;\">";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.= generateOption('section','section_name','section_id',$row['injury_section'],'');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-3\">";
|
|
$content.=" <select class=\"chosen-select form-control\" id=\"injury_sub_section\" name=\"injury_sub_section\" data-placeholder=\"Sub-Section\" style=\"display: none;\">";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.= generateOption('sub_section','sub_section_name','sub_section_id',$row['injury_sub_section'],'');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
$content.=" </tr>";
|
|
|
|
$content.=" </tbody>";
|
|
|
|
$content.=" </table>";
|
|
$content.=" </div>";
|
|
$content.=" </div>";
|
|
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.=" <div class=\"col-sm-12\">";
|
|
$content.=" <label class=\"control-label\" for=\"form-field-8\">Injury</label>";
|
|
$content.=" <table class=\"table table-bordered table-hover simple-table\">";
|
|
$content.=" <thead>";
|
|
$content.=" <tr class=\"active\">";
|
|
|
|
$content.=" <th>Type</th> ";
|
|
$content.=" <th>Part</th> ";
|
|
$content.=" <th>Classification</th> ";
|
|
|
|
$content.=" </tr>";
|
|
$content.=" </thead>";
|
|
$content.=" <tbody>";
|
|
|
|
$content.=" <tr>";
|
|
$content.=" <td class=\"col-sm-4\">";
|
|
$content.=" <select multiple=\"\" class=\"chosen-select form-control\" id=\"injury_type".$row['appointment_id']."\" name=\"injury_type[]\" data-placeholder=\"Injury Type...\">";
|
|
$content.= generateOption('injury_type','injury_type_name','injury_type_id','','');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-4\">";
|
|
$content.=" <select multiple=\"\" class=\"chosen-select form-control\" id=\"injury_part".$row['appointment_id']."\" name=\"injury_part[]\" data-placeholder=\"Injury Part..\" >";
|
|
$content.=generateOption('injury_part','inj_name','inj_id','','');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-4\">";
|
|
$content.=" <select multiple=\"\" class=\"chosen-select form-control\" id=\"injury_class".$row['appointment_id']."\" name=\"injury_class[]\" data-placeholder=\"Injury Classification..\">";
|
|
$content.=generateOption('injury_class','inj_class_name','inj_class_id','','');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
|
|
$content.=" </tr>";
|
|
|
|
$content.=" </tbody>";
|
|
|
|
$content.=" </table>";
|
|
$content.=" </div>";
|
|
$content.=" </div>";
|
|
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.=" <div class=\"col-sm-12\">";
|
|
$content.=" <label class=\"control-label\" for=\"remarks\">Procedure</label>";
|
|
$content.=" <textarea id=\"remarks\" name=\"remarks\" placeholder=\"Procedure..\" rows=\"5\" cols=\"10\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; \">".$row['remarks']."</textarea> ";
|
|
|
|
$content.=" </div>";
|
|
$content.="</div> ";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
//treatment start
|
|
$content.=" <table id=\"treatmentTable".$row['appointment_id']."\" class=\"table table-bordered table-hover\" style=\"width:100%;\">";
|
|
$content.=" <thead>";
|
|
$content.=" <tr class=\"active\">";
|
|
$content.=" <th>Item</th>";
|
|
$content.=" <th>Dosages</th>";
|
|
$content.=" <th>For Days</th> ";
|
|
$content.=" <th>Qty</th> ";
|
|
$content.=" <th>Issued</th> ";
|
|
$content.=" <th>Procedure</th>";
|
|
$content.=" <th></th>";
|
|
$content.=" </tr>";
|
|
$content.=" </thead>";
|
|
$content.=" <tbody>";
|
|
|
|
$sql_treatment="select * from treatment where appointment_id='".$row['appointment_id']."' order by treatment_id";
|
|
$result_treatment = mysqli_query($conn,$sql_treatment);
|
|
$num_rows_treatment=@mysqli_num_rows($result_treatment);
|
|
$tCount =0;
|
|
while($row_treatment=@mysqli_fetch_array($result_treatment))
|
|
{
|
|
extract($row_treatment);
|
|
|
|
$content.="<tr>";
|
|
$content.=" <td class=\"col-sm-3\">";
|
|
$content.=" <select class=\"chosen-select form-control\" id=\"treatment_item".$row['appointment_id']."_".$tCount."\"name=\"treatment_item".$tCount."\" data-placeholder=\"Treatment...\" onchange=\"getItemDetails(this.value,'current_stock".$row['appointment_id']."_".$tCount."','current_rate".$row['appointment_id']."_".$tCount."','".$row['appointment_id']."_".$tCount."', '".$tCount."');\"";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.=generateOption('tbl_items','item_name','item_id',$row_treatment['item_id'],'');
|
|
$content.=" </select>";
|
|
$content.="<script>getItemDetails('".$row_treatment['item_id']."','current_stock".$row['appointment_id']."_".$tCount."','current_rate".$row['appointment_id']."_".$tCount."','".$row['appointment_id']."_".$tCount."', '".$tCount."');</script>";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-3\"> ";
|
|
$content.=" <select class=\"chosen-select form-control\" onchange=\"getFrequenceyQty(this.value,'frequency_qty".$row['appointment_id']."_".$tCount."','dosage".$row['appointment_id']."_".$tCount."','".$row['appointment_id']."','".$tCount."');\" class=\"chosen-select form-control\" id=\"treatment_item_dosage".$tCount."\"name=\"treatment_item_dosage".$tCount."\" data-placeholder=\"Dosages...\" style=\"display: none;\">";
|
|
$content.=" <option value=\"\"> </option>";
|
|
$content.=generateOption('medicine_frequency','medicine_frequency','frequency_id',$row_treatment['frequency_id'],'');
|
|
$content.=" </select>";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-1\"> ";
|
|
$content.=" <input type=\"number\"class=\"form-control\" onblur=\"updateTotalMedicineQty('frequency_qty".$row['appointment_id']."_".$tCount."','treatment_item_days".$row['appointment_id']."_".$tCount."','treatment_item_total".$row['appointment_id']."_".$tCount."')\" name=\"treatment_item_days".$tCount."\" id=\"treatment_item_days".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['for_days']."\"/>";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-1\"> ";
|
|
$content.=" <input type=\"hidden\" name=\"frequency_qty".$tCount."\" id=\"frequency_qty".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['price']."\" />
|
|
<input type=\"hidden\" name=\"dosage".$tCount."\" id=\"dosage".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['dosage']."\" />
|
|
<input type=\"hidden\" name=\"current_stock".$tCount."\" id=\"current_stock".$row['appointment_id']."_".$tCount."\" />
|
|
<input type=\"hidden\" name=\"current_rate".$tCount."\" id=\"current_rate".$row['appointment_id']."_".$tCount."\" />
|
|
<input type=\"hidden\" name=\"price".$tCount."\" id=\"price".$row['appointment_id']."_".$tCount."\" />
|
|
<input type=\"number\" class=\"form-control\" name=\"treatment_item_total".$tCount."\" id=\"treatment_item_total".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['item_qty']."\" />";
|
|
$content.=" </td>";
|
|
|
|
$content.=" <td class=\"col-sm-1\"> ";
|
|
$content.=" <input onblur=\"updatePrice('treatment_item_qtygvn".$row['appointment_id']."_".$tCount."','treatment_item".$row['appointment_id']."_".$tCount."','current_rate".$row['appointment_id']."_".$tCount."','current_stock".$row['appointment_id']."_".$tCount."','price".$row['appointment_id']."_".$tCount."')\" type=\"number\"class=\"form-control\" name=\"treatment_item_qtygvn".$tCount."\" id=\"treatment_item_qtygvn".$row['appointment_id']."_".$tCount."\" value=\"".$row_treatment['issued_qty']."\"/>";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-2\">";
|
|
$content.=" <input type=\"text\" class=\"form-control\" name=\"treatment_item_remarks".$tCount."\" id=\"treatment_item_remarks".$tCount."\" value=\"".$row_treatment['remarks']."\" />";
|
|
$content.=" </td>";
|
|
$content.=" <td class=\"col-sm-1\"><a class=\"deleteRow\"></a>";
|
|
$content.="<a href=\"#\"><i class=\"ace-icon fa fa-trash-o bigger-130\"></i></a> ";
|
|
$content.=" </td>";
|
|
$content.=" </tr>";
|
|
$tCount++;
|
|
}//end treatment loop
|
|
$content.=" </tbody>";
|
|
$content.=" <tfoot>";
|
|
$content.=" <tr>";
|
|
$content.=" <td colspan=\"8\" style=\"text-align: left;\">";
|
|
$content.=" <input type=\"button\" class=\"btn btn-lg btn-block btn-success \" onclick='addRow(".$row['appointment_id'].")' id=\"addrow".$row['appointment_id']."\" value=\"Add Row\" />";
|
|
$content.=" <input type=\"hidden\" name=\"count_treatment_item\" id=\"count_treatment_item".$row['appointment_id']."\" value=\"".$tCount."\" />";
|
|
|
|
$content.=" </td>";
|
|
$content.=" </tr>";
|
|
$content.=" <tr>";
|
|
$content.="</tr>";
|
|
$content.=" </tfoot>";
|
|
$content.="</table>";
|
|
//treatment end
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="</div>";//end col-sm-12\\
|
|
|
|
$content.="</div>";//end cols-sm-9
|
|
|
|
|
|
$content.="<div class=\"col-xs-3\">";
|
|
$content.="<div class=\"widget-box\">";
|
|
$content.="<div class=\"widget-body\">";
|
|
$content.=" <div class=\"widget-main\">";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.="<label for=\"isEmergency\">Is Emergency</label>";
|
|
$content.="<select class=\"form-control\" id=\"isEmergency".$row['appointment_id']."\" name=\"isEmergency\">";
|
|
$content.="<option value=\"0\" ";
|
|
$content.=($row['isEmergency']==0)?"selected":"";
|
|
$content.=">No</option>";
|
|
$content.="<option value=\"1\" ";
|
|
$content.=($row['isEmergency']==1)?"selected":"";
|
|
$content.=">Yes</option>";
|
|
$content.=" </select>";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.=" <input type=\"number\" class=\"col-xs-4\" value=\"".$row['bp_sbp']."\" placeholder=\"SBP\" id=\"sbp".$row['appointment_id']."\" name=\"sbp\"> ";
|
|
$content.=" <input type=\"number\"class=\"col-xs-4\" value=\"".$row['bp_dbp']."\"id=\"dbp".$row['appointment_id']."\" name=\"dbp\" placeholder=\"dbp\">";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.="<input type=\"number\" class=\"col-xs-4\" placeholder=\"FBS\" id=\"fbs".$row['appointment_id']."\" name=\"fbs\" value=\"".$row['blood_sugar_fbs']."\">";
|
|
$content.="<input type=\"number\"class=\"col-xs-4\" id=\"rbs".$row['appointment_id']."\" name=\"rbs\" placeholder=\"RBS\" value=\"".$row['blood_sugar_rbs']."\"> ";
|
|
$content.="<input type=\"number\"class=\"col-xs-4\" id=\"ppbs".$row['appointment_id']."\" name=\"ppbs\" placeholder=\"PPBS\"value=\"".$row['blood_sugar_ppbs']."\">";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.="<label class=\"control-label\" for=\"referral\">Referral</label>";
|
|
$content.="<textarea name=\"referral\" id=\"referral\" placeholder=\"Referral\" rows=\"5\" cols=\"10\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; \">".$row['referral']."</textarea> ";
|
|
|
|
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
$content.="<div class=\"row\">";
|
|
$content.="<div class=\"col-sm-12\">";
|
|
$content.="<label for=\"followup\">Follow Up</label>";
|
|
$content.="<textarea id=\"followup".$row['appointment_id']."\" name=\"followup\" placeholder=\"Follow Up\" class=\"autosize-transition form-control\" style=\"overflow: hidden; overflow-wrap: break-word; resize: horizontal; height: 52px;\">".$row['followup']."</textarea>";
|
|
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="<div class=\"space space-6\"></div>";
|
|
|
|
|
|
$content.=" </div>";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
$content.=" </div>";
|
|
$content.=" </div>";
|
|
$content.="</div>";
|
|
$content.="</div";
|
|
$content.="</div>";
|
|
//$content.="</form> ";
|
|
//end injury form
|
|
$content.="<script type=\"text/javascript\">";
|
|
|
|
$content.=" injuries = \"".$row['injury_types']."\";";
|
|
$content.="dataarray=injuries.split(\",\");";
|
|
$content.="$(\"#injury_type".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
|
|
$content.=" injury_parts =\"".$row['injury_parts']."\";";
|
|
$content.="dataarray=injury_parts.split(\",\");";
|
|
$content.="$(\"#injury_part".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
$content.=" injury_classes = \"".$row['injury_classes']."\";";
|
|
$content.="dataarray=injury_classes.split(\",\");";
|
|
$content.="$(\"#injury_class".$row['appointment_id']."\").val(dataarray);";
|
|
|
|
$content.="$('#appointment_date".$row['appointment_id']."').datetimepicker({";
|
|
// $content.=" format: 'DD/MM/YYYY h:mm A',";
|
|
$content.=" defaultDate: new Date(\"".$row['appointment_date']."\"),";
|
|
$content.=" maxDate: new Date(),";
|
|
$content.=" icons: {";
|
|
$content.=" time: 'fa fa-clock-o',";
|
|
$content.=" date: 'fa fa-calendar',";
|
|
$content.=" up: 'fa fa-chevron-up',";
|
|
$content.=" down: 'fa fa-chevron-down',";
|
|
$content.=" previous: 'fa fa-chevron-left',";
|
|
$content.=" next: 'fa fa-chevron-right',";
|
|
$content.=" today: 'fa fa-arrows ',";
|
|
$content.=" clear: 'fa fa-trash',";
|
|
$content.=" close: 'fa fa-times'";
|
|
$content.=" }";
|
|
$content.=" }).next().on(ace.click_event, function(){";
|
|
$content.=" $(this).prev().focus();";
|
|
$content.=" });";
|
|
|
|
$content.="$('#injury_time".$row['appointment_id']."').datetimepicker({";
|
|
$content.=" format: 'DD/MM/YYYY h:mm A',";
|
|
//$content.=" defaultDate: new Date(\"".$row['injury_time']."\"),";
|
|
$content.=" maxDate: new Date(),";
|
|
$content.=" icons: {";
|
|
$content.=" time: 'fa fa-clock-o',";
|
|
$content.=" date: 'fa fa-calendar',";
|
|
$content.=" up: 'fa fa-chevron-up',";
|
|
$content.=" down: 'fa fa-chevron-down',";
|
|
$content.=" previous: 'fa fa-chevron-left',";
|
|
$content.=" next: 'fa fa-chevron-right',";
|
|
$content.=" today: 'fa fa-arrows ',";
|
|
$content.=" clear: 'fa fa-trash',";
|
|
$content.=" close: 'fa fa-times'";
|
|
$content.=" }";
|
|
$content.=" }).next().on(ace.click_event, function(){";
|
|
$content.=" $(this).prev().focus();";
|
|
$content.=" });";
|
|
|
|
$content.="</script>";
|
|
}
|
|
$content.="</form> ";
|
|
$content.="</div>";
|
|
$content.="</div>";
|
|
|
|
$content.="</td>";
|
|
$content.="</tr>";
|
|
|
|
}//end of while
|
|
}//if no records found
|
|
else
|
|
{
|
|
$content.="<tr>";
|
|
$content.="<td colspan=\"10\">No Past History found for the employee</td>";
|
|
$content.="</tr>";
|
|
}
|
|
$content.="</tbody>";
|
|
$content.="</table>";
|
|
$content.="</div>";
|
|
// $content.="</div>";
|
|
$content.="<script>$(\".badge-danger\").html(".$numrows.")</script>";
|
|
|
|
echo $content;
|
|
?>
|