";
}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:m A" ),
$row1['plant_yellow_qty'],
$row1['yellow_bags'],
$row1 ['plant_red_qty'],
$row1['red_bags'],
$row1 ['plant_blue_qty'],
$row1['blue_bags'],
$row1 ['plant_white_qty'],
$row1['white_bags'],
$row1 ['collected_by'],
$row1 ['vehicle_no'],
$row1 ['challan_no'],
)
);
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','')
);
echo json_encode($data);
?>