";
}
if ($hasWriteAccess) {
$edit_link = "";
}
if ($hasExecuteAccess) {
$delete_link = "";
}
$space = " ";
if($row_job_profile['app_type']=='MED'){ $app_type='Periodic Health Checkup';}
else if($row_job_profile['app_type']=='FIT'){ $app_type='Sickness/Fitness';}
else if($row_job_profile['app_type']=='OPD'){$app_type='OPD/ Sickness/ Fitness';}
else{
$app_type='';
}
$links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link;
$data['rows'][] = array(
'id' => $row_job_profile['slot_id'],
'cell' => array(
$count ++,
$row_job_profile['slot'],
$row_job_profile['slot_end'],
$row_job_profile['slot_count'],
$app_type,
$links
)
);
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array('', "", "", '', '', '')
);
echo json_encode($data);
?>