"; $delete_link=""; }*/ //$view_link=""; //} //if($access_level=='W' || $access_level=='E' ) //{ //} //if($access_level=='E' ) //{ //} // // $edit_link=""; if ($hasWriteAccess) { $edit_link = $space . ""; } // $edit_link=""; // $edit_link=""; // if($row_medical_examination['task']=='pme'){ // $form_name="PME Form"; // }else if($row_medical_examination['task']=='annual'){ // $form_name="Annual Medical Examination"; // }else if($row_medical_examination['task']=='pre_employment'){ // $form_name="PRE Employment Examination"; // }else if($row_medical_examination['task']=='semi_annual'){ // $form_name="Semi-Annual Examination"; // } $medical_entry_date = date_format(date_create($row_medical_examination['checkup_date']), "d-M-Y "); // $space="   "; if ($hasWriteAccess) { $checkbox = ""; } error_log("checkbox " . $checkbox); $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; $past_present_illnes = getCommaSeperatedValuesForInClause('select param_name from history_parameter ', 'param_id', $row_medical_examination['past_present_illness']); $checkupSections = getCommaSeperatedValuesForInClause("select section_name from checkup_form_section", "section_id", $row_medical_examination['checkup_section_ids']); $data['rows'][] = array( 'id' => $row_medical_examination['checkup_id'], 'cell' => array( $checkbox, $count++, $links, $medical_entry_date, $row_medical_examination['ticket_no'], // $form_name, // $row_medical_examination['emp_id'], $row_medical_examination['patient_name'], $row_medical_examination['emp_code'], getFieldFromTable('checkup_type_name', 'checkup_type', 'checkup_type_id', $row_medical_examination['checkup_type_id']), getFieldFromTable('ohc_type_name', 'ohc_type', 'ohc_type_id', $row_medical_examination['ohc_type_id']), $row_medical_examination['patient_cat_id'] == 0 ? 'Non-Employee' : 'Employee', $row_medical_examination['aadhar_no'], $row_medical_examination['primary_phone'], // $row_medical_examination['remarks'], // $checkupSections, $row_medical_examination['is_test_completed'] == 'Y' ? 'YES' : 'NO' // $row_medical_examination['current_status']=='Aproved'?'approved':'not aprroved' ) ); } $data['rows'][] = array( 'id' => $row_medical_examination['filterkey'], 'cell' => array('', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') ); // error_log("data: ".print_r($data, true)); echo json_encode($data); ?>