";
}
if($hasWriteAccess )
{
$edit_link="";
}
if($hasExecuteAccess)
{
$delete_link="";
}
$space=" ";
$links = $assign_link.$space.$view_link.$space.$edit_link.$space.$delete_link;
$data['rows'][] = array(
'id' => $row1['city_id'],
'cell' => array($count++,$row1['city'], $row1['AC_cost'],$row1['AC_amb_charge'],$row1['NON_AC_cost'],$row1['NON_AC_amb_charge'], $links));
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array('', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
);
echo json_encode($data);
?>