"; } 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['notice_id'], 'cell' => array( $links, $count++, date_format(date_create($row1['trigger_date']), "d-M-Y"), date_format(date_create($row1['expiry_date']), "d-M-Y"), $row1['issued_by'], $row1['issued_to'], $row1['notice_details'], $row1['status'], $row1['remark'], ) ); } commit(); $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') ); echo json_encode($data); ?>