"; } else { $checkBox = ""; } // echo $Department_id; $view_link = ""; $edit_link = ""; $delete_link = ""; $links = ""; if ($hasReadAccess) { // echo "shubham"; // $view_link = ""; } 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['waste_id'], 'cell' => array( // $checkBox, $links, $count++, date_format(date_create($row1['waste_gen_date']), "d-M-Y h:i A"), $row1['disposal_date'], $row1['surveillance_by'], $row1['plant_yellow_qty'] . $space . "", // $row1['yellow_bags'], $row1['plant_red_qty'] . $space . "", // $row1['red_bags'], $row1['plant_blue_qty'] . $space . "", // $row1['blue_bags'], $row1['plant_white_qty'] . $space . "", // $row1['white_bags'], getTableFieldValue('bio_wast_collector', 'collector_name', 'collector_id', $row1['collected_by']), $row1['vehicle_no'], $row1['challan_no'], ) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') ); echo json_encode($data); ?>