Exemplo n.º 1
0
} else {
    $admin_task = "";
}
if ($admin_task == "SUSPEND") {
    getsubtotals();
    if ($_SESSION["LastID"] == 0) {
        msgscreen("no transaction in progress");
    } else {
        suspendorder();
    }
} elseif ($admin_task == "RESUME") {
    getsubtotals();
    if ($_SESSION["LastID"] != 0) {
        msgscreen("transaction in progress");
    } elseif (checksuspended() == 0) {
        msgscreen("no suspended transaction");
    } else {
        echo "<SCRIPT type=\"text/javascript\">\n" . "window.location='/suspendedlist.php'" . "</SCRIPT>";
    }
} elseif ($admin_task == "TR") {
    getsubtotals();
    if ($_SESSION["LastID"] != 0) {
        msgscreen("transaction in progress");
    } else {
        tenderReport();
        //		gohome();
    }
} elseif ($admin_task == "" || !$admin_task || strlen($admin_task) < 1) {
    $_SESSION["msgrepeat"] = 0;
    gohome();
}
Exemplo n.º 2
0
    } else {
        $result = mysql_query($query, $db_a);
    }
} else {
    if ($_SESSION["remoteDBMS"] == "mssql") {
        $result = mssql_query($query_remote, $db_a);
    } else {
        $result = mysql_query($query_remote, $m_conn);
    }
}
$num_rows = sql_num_rows($result);
if ($num_rows > 0) {
    printheaderb();
    echo "<table>" . "<tr><td height='295' width='400' align='center' valign='center'>\n" . "<form name='selectform' method='post' action='resume.php'>\n" . "<select name='selectlist' size='10' onBlur='document.forms[0].elements[0].focus();'>\n";
    $selected = "selected";
    for ($i = 0; $i < $num_rows; $i++) {
        $row = sql_fetch_array($result);
        echo "<option value='" . $row["register_no"] . "::" . $row["emp_no"] . "::" . $row["trans_no"] . "' " . $selected . "> lane " . substr(100 + $row["register_no"], -2) . " Cashier " . substr(100 + $row["emp_no"], -2) . " #" . $row["trans_no"] . " -- \$" . $row["total"] . "\n" . "</option>";
        $selected = "";
    }
    echo "</select>\n</form>\n</td>\n" . "<td width='240'>\n" . "<font face='arial' size='+1' color='#004080'>use arrow keys to navigate<br />[c] to cancel</font>\n" . "</td></tr>\n</table>\n";
} else {
    msgscreen("no suspended transaction");
}
sql_close($db_a);
$_SESSION["scan"] = "noScan";
printfooter();
?>
    </body>
</html>
Exemplo n.º 3
0
if ($admin_task == "SUSPEND") {
    getsubtotals();
    if ($_SESSION["LastID"] == 0) {
        msgscreen("no transaction in progress");
    } else {
        suspendorder();
    }
} elseif ($admin_task == "RESUME") {
    getsubtotals();
    if ($_SESSION["LastID"] != 0) {
        msgscreen("transaction in progress");
    } elseif (checksuspended() == 0) {
        msgscreen("no suspended transaction");
    } else {
        echo "<SCRIPT type=\"text/javascript\">\n" . "window.location='/suspendedlist.php'" . "</SCRIPT>";
    }
} elseif ($admin_task == "TR") {
    getsubtotals();
    if ($_SESSION["LastID"] != 0) {
        msgscreen("transaction in progress");
    } elseif (suspendedCheck() != 0) {
        $message = suspendedCheck();
        msgscreen("you have suspended " . $message . " transactions. please resolve these before ending your shift");
    } else {
        tenderReport();
        //		gohome();
    }
} elseif ($admin_task == "" || !$admin_task || strlen($admin_task) < 1) {
    $_SESSION["msgrepeat"] = 0;
    gohome();
}