"; $print_link=$space.""; } if($hasWriteAccess) { $edit_link=$space.""; } if($hasExecuteAccess) { $delete_link=$space.""; } $checkupSections =getCommaSeperatedValuesForInClause("select section_name from checkup_form_section","section_id", $row_checkup['checkup_section_ids']); if($row_checkup['current_status']=='RCP') { $links = $assign_link.$view_link.$edit_link.$delete_link.$print_link; } else { $links = $assign_link.$view_link.$delete_link.$print_link; } $data['rows'][] = array( 'id' => $row_checkup['checkup_id'], 'cell' => array($count++,$links,date_format(date_create($row_checkup['checkup_date']),"d-M-Y H:i A"),$row_checkup['ticket_no'],$row_checkup['patient_name'], $row_checkup['client_name'],$row_checkup['current_status'], $row_checkup['remarks'], $checkupSections) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','') ); // error_log("data: ".print_r($data, true)); echo json_encode($data); ?>