Пример #1
0
}
if ($_SESSION['time_cnt'] == 0) {
$taux = array("","<=",$_SESSION['time'][0][2],$_SESSION['time'][0][3],$_SESSION['time'][0][4],"","","","");
$_SESSION['time'][0] = $taux;
$_SESSION['time_cnt'] = 1;
}
echo "COUNT A ".$_SESSION['time_cnt'];
// Force show criteria form
//$submit = "";
$new = 1;
print_r ($_SESSION['time']);
}
*/
/* Totally new Search */
if ($new == 1 && $submit == "") {
    $cs->InitState();
}
/* is this a new query, invoked from the SEARCH screen ? */
/* if the query string if very long (> 700) then this must be from the Search screen  */
$back = ImportHTTPVar("back", VAR_DIGIT);
if ($GLOBALS['maintain_history'] == 1 && $back != 1 && $submit == gettext("Query DB") && (isset($_GET['search']) && $_GET['search'] == 1)) {
    !empty($_SESSION['back_list_cnt']) ? $_SESSION['back_list_cnt']-- : ($_SESSION['back_list_cnt'] = 0);
    /* save on top of initial blank query screen   */
    $submit = "";
    /*  save entered search criteria as if one hit Enter */
    $_POST['submit'] = $submit;
    $cs->ReadState();
    /* save the search criteria       */
    // Solve error when payload is searched cnt = 1
    //    if ($_GET{"data"} {
    //        0