"; $pdf_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link . $space . $pdf_link; $data['rows'][] = array( 'id' => $row_medical_examination['patient_id'], 'cell' => array($count++, $row_medical_examination['patient_name'], $row_medical_examination['screen_date'], $row_medical_examination['emp_code'], $department, $emp_cont, $links) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array( '', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ) ); echo json_encode($data); ?>