Ejemplo n.º 1
0
if (isset($_GET)) {
    foreach ($_GET as $key => $val) {
        $_SESSION['list']['tickets'][$_GET['tp']]['order'][$key] = $val;
    }
}
// page
if (isset($_GET['page'])) {
    $_SESSION['lists']['tickets'][$_GET['tp']]['page'] = $_GET['page'];
} else {
    $_SESSION['lists']['tickets'][$_GET['tp']]['page'] = 1;
}
// +----------------------------------------------------------------------+
// | Nuevos Filtros del Listado                                           |
// +----------------------------------------------------------------------+
$filtros = new Filtros();
$filtros->filtrosPost($_SESSION['list']['tickets'][$_GET['tp']]['fltr']);
$filtros->query($_GET['sector'], $_POST["estado"]);
$filtros->orden($_SESSION['list']['tickets'][$_GET['tp']]['order'], $_GET['sector'], $_POST["estado"]);
$sql = $filtros->getQuery();
//$filtros->queryCount();
//$sql_count = $filtros->getQueryCount();
// +----------------------------------------------------------------------+
// | Nuevos Filtros del Listado                                           |
// +----------------------------------------------------------------------+
// saber el sector del staff
$staff = getStaff($var_staffid);
$_SESSION["sess_backreplyurl"] = "";
$var_back = "./tickets.php?mt=y&stylename=STYLETICKETS&styleminus=minus1&styleplus=plus1&tp={$var_type}&begin=" . $var_begin . "&num=" . $var_num . "&numBegin=" . $var_numBegin . "&start={$var_start}&cmbSearch=" . $var_cmbSearch . "&txtSearch=" . urlencode($var_search) . "&cmbDepartment=" . urlencode($var_deptid) . "&";
$_SESSION["sess_ticketbackurl"] = $var_back;
//".is_blank(utf8_encode($row['contratoTotvs']))."
?>