";
}
if($hasWriteAccess )
{
$edit_link="";
}
if($hasExecuteAccess )
{
$delete_link="";
}
$space=" ";
$links =$space.$view_link.$space.$edit_link.$space.$delete_link;
$data['rows'][] = array(
'id' => $row_staff['staff_id'],
'cell' => array($links, $count++, $row_staff['emp_code'], $row_staff['staff_name'], $row_staff['gender'], getFieldFromTable('category_name','staff_category_master','id', $row_staff[
'staff_category']), $row_staff['phone_number'] ,$row_staff['email_id'], $row_staff['address'])
);
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','')
);
echo json_encode($data);
?>