"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; //$waste_category_name = getTableFieldValue ( 'waste_category', 'waste_category_name', 'waste_category_id', $row1['waste_category'] ); //$ohc_type_name = getTableFieldValue ( 'ohc_type ', 'ohc_type_name', 'ohc_type_id ', $row1['ohc_type_id '] ); $data ['rows'] [] = array ( 'id' => $row1 ['issue_id'], 'cell' => array ( $links, $count ++, $cylinder_no, $dept_deployed, $emp_deployed, date_format ( date_create ( $row1 ['issued_date'] ), "d-M-Y" ), date_format ( date_create ( $row1 ['exp_return_date'] ), "d-M-Y" ), date_format ( date_create ( $row1 ['act_return_date'] ), "d-M-Y" ), $row1['comments'], $issued_by, ) ); } commit(); $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','') ); echo json_encode($data); ?>