";
}
if ($hasWriteAccess) {
if ($item_id_from_item_rate == '' || $item_id_from_item_rate == null) {
$edit_link = "";
} else {
$add_new_button = "";
}
$rate_change_history_button = "";
}
if ($hasExecuteAccess) {
$delete_link = "";
}
$space = " ";
$links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link;
$data['rows'][] = array(
'id' => $row_vaccine['item_rate_id'],
'cell' => array($count++,$links, $item_name, $row_vaccine['item_rate'], $row_vaccine['unit'] . " " . getTableFieldValue('unit_master', 'unit_name', 'unit_id', $row_vaccine['unit_id']), $row_vaccine['employer_contractor_code'], $row_vaccine['employer_contractor_name'], $row_vaccine['employer_contractor_email'], $add_new_button, $rate_change_history_button)
);
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array('', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
);
echo json_encode($data);
?>