";
}
if($hasWriteAccess ){
$edit_link="";
}
if($hasExecuteAccess){
if(!hasChildData('tbl_items','unit_id',$unit_id_val)){
$delete_link="";
}
}
$space=" ";
$links = $assign_link.$space.$view_link.$space.$edit_link.$space.$delete_link;
$data['rows'][] = array(
'id' => $row_unit['unit_id'],
'cell' => array(
$count ++,
$links,
$row_unit['unit_id'],
$row_unit['unit_name'],
$row_unit['unit_remarks']
)
);
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array(
'',
"",
"",
'',
'',
)
);
echo json_encode($data);
?>