"; $pdf_link = ""; }elseif ($form_type == 'khs') { $edit_link = ""; $pdf_link = ""; } if($row_medical_examination['approval_status']=='Y'){ $cirtificate = ""; } } if ($hasExecuteAccess) { if ($form_type == 'khs') { $delete_link = ""; }elseif($form_type == 'chs'){ $delete_link = ""; } } if ($form_type == 'chs') { $type = "Canteen Hygiene"; }elseif ($form_type == 'khs') { $type = "Kitchen Hygiene"; } $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link . $space . $pdf_link.$space . $cirtificate; $data['rows'][] = array( 'id' => $row_medical_examination['response_id'], 'cell' => array($count++, $row_medical_examination['canteen_location'], $type ,$row_medical_examination['screen_date'], $links) ); } echo json_encode($data); ?>