"; $space="   "; $isEmergency =""; $isInjury=""; if ($appointment_type == 'VO') { $isInjury = "Yes"; $edit_link=""; $view_link=""; }else{ $isInjury = "No"; $edit_link=""; $view_link=""; } if ($row_employee_appointment['IsEmergency'] == 1) { $isEmergency = "Yes"; }else{ $isEmergency = "No"; } if(!isAccessible($_SESSION['RoleId'],$menu_key,'R')){ $view_link=""; } if(!isAccessible($_SESSION['RoleId'],$menu_key,'W')){ $edit_link=""; } $check_results = "SBP:".$row_employee_appointment['bp_sbp'].", DBP:".$row_employee_appointment['bp_dbp'].", FBS:".$row_employee_appointment['blood_sugar_fbs'].", RBS:".$row_employee_appointment['blood_sugar_rbs'].", PPBS:".$row_employee_appointment['blood_sugar_ppbs'].", TEMP:".$row_employee_appointment['temperature'].", SpO2:".$row_employee_appointment['spo2_percent']; $links = $view_link.$space.$edit_link; //echo $row_employee_appointment['bp_sbp']; $data['rows'][] = array( 'id' => $row_employee_appointment['appointment_id'], 'cell' => array($count++,$links, date_format(date_create($row_employee_appointment['appointment_date']),"d-M-Y H:i A"), $row_employee_appointment['ticket_no'],$row_employee_appointment['token_no'], $row_employee_appointment['emp_code'],$row_employee_appointment['patient_name'], $row_employee_appointment['complaints'],$isEmergency, $isInjury,$check_results, $row_employee_appointment['remarks_rece']) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','') ); echo json_encode($data); ?>