";
}
if ($hasWriteAccess) {
$edit_link = "";
}
if ($hasWriteAccess || $hasExecuteAccess) {
if (!hasChildData('patient_master', 'employer_contractor_id', $id)) {
$delete_link = "";
}
}
$space = " ";
$links = $view_link . $space . $edit_link . $space . $delete_link;
$data['rows'][] = array(
'id' => $row_employer_contractor['id'],
'cell' => array($count++, $links, $row_employer_contractor['client_name'], $row_employer_contractor['client_contact'], $row_employer_contractor['client_email'], $row_employer_contractor['remarks'],$date)
);
}
echo json_encode($data);
?>