"; //} //if($hasWriteAccess) //{ $edit_link=""; //} //if($hasExecuteAccess) //{/ $delete_link=""; //} //$checkup_mgmt=getTableFieldValue('training_mode','training_mode_name','training_mode_id',$row1['mode_of_training']).'

'; $space="   "; $links = $assign_link.$space.$view_link.$space.$edit_link.$space.$delete_link; $checkup_type=getTableFieldValue('checkup_type','checkup_type_name','checkup_type_id',$row1['checkup_mgmt_name'],''); $data['rows'][] = array( 'id' => $row1['checkup_mgmt_id'], 'cell' => array($count++, $checkup_type,date_format(date_create($row1['from_date']),"d-M-Y "),date_format(date_create($row1['to_date']),"d-M-Y "),$row1['checkup_location'],$row1['remarks'],$links) ); } echo json_encode($data); ?>