"; } if($hasWriteAccess) { $edit_link = ""; } if($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $space.$view_link.$space.$edit_link.$space.$delete_link; $data['rows'][] = array( 'id' => $row_hazard_observation['id'], 'cell' => array( $links, $count++, $row_hazard_observation['ref_id'], , $row_hazard_observation['severity'], $row_hazard_observation['occurrence'], $row_hazard_observation['calculate_SO'], $row_hazard_observation['legal'], $row_hazard_observation['acceptable'], $row_hazard_observation['significant'], $row_hazard_observation['risk_control_measures'], $row_hazard_observation['target_date'], $row_hazard_observation['status'], $row_hazard_observation['reviewed_remarks'], ) ); } echo json_encode($data); ?>