Example #1
0
}
if ($user->level[USER_BIT_CASHIER]) {
    $tpl->append('tables', tables_list_all_pos(1, 1));
}
$tpl->append('tables', tables_list_all_pos(1, 2));
$tpl->append('income', waiter_income_pos());
if ($user->level[USER_BIT_CASHIER]) {
    $cols = get_conf(__FILE__, __LINE__, 'menu_tables_per_row_cashier');
} else {
    $cols = get_conf(__FILE__, __LINE__, 'menu_tables_per_row_waiter');
}
$tpl->append('tables', tables_list_all_pos($cols, 0, false));
if (!$user->level[USER_BIT_CASHIER]) {
    $tpl->append('tables', tables_list_all_pos(1, 1));
}
// prints page generation time
$tmp = generating_time($inizio);
$tpl->assign('generating_time', $tmp);
// html closing stuff and disconnect line
$tmp = disconnect_line_pos();
$tpl->assign('logout', $tmp);
if ($err = $tpl->parse()) {
    return $err;
}
$tpl->clean();
$output = $tpl->getOutput();
// prints everything to screen
echo $output;
if (CONF_DEBUG_PRINT_PAGE_SIZE) {
    echo $tpl->print_size();
}
Example #2
0
            delete_rows($delete);
        } else {
            if (isset($_GET['delete'])) {
                $delete = $_GET['delete'];
            } elseif (isset($_POST['delete'])) {
                $delete = $_POST['delete'];
            }
            if (is_array($delete)) {
                echo "\n\t\t\t\t" . GLOBALMSG_RECORDS_DELETE_CONFIRM . "<br><br>\n";
                $_SESSION["delete"] = $delete;
                for (reset($delete); list($key, $value) = each($delete);) {
                    $description = get_db_data(__FILE__, __LINE__, $_SESSION['common_db'], "account_mgmt_main", "description", $key);
                    echo "<LI>" . $description . "</LI>";
                }
                echo "\n\t\t\t\t<table><tr><td>\n\t\t\t\t<form action=\"db.php\" method=\"GET\">\n\t\t\t\t<input type=\"hidden\" name=\"command\" value=\"delete\">\n";
                echo "\n\t\t\t\t<input type=\"hidden\" name=\"deleteconfirm\" value=\"1\">\n\t\t\t\t<input type=\"submit\" value=\"" . ucfirst(phr('YES')) . "\">\n\t\t\t\t</form></td>\n\t\t\t\t<td><form action=\"index.php\" method=\"GET\">\n\t\t\t\t<input type=\"submit\" value=\"" . ucfirst(phr('NO')) . "\">\n\t\t\t\t</form>\n\t\t\t\t</td></tr></table>\n\t\t\t\t";
            } else {
                echo GLOBALMSG_RECORD_NONE_SELECTED_ERROR . ".<br>";
            }
        }
        break;
}
if ($command != "delete") {
    unset($_SESSION["delete"]);
}
echo "<br><a href=\"#\" onclick=\"javascript:history.go(-1); return false\">" . ucfirst(phr('GO_BACK')) . "</a><br>\n";
echo "<br><a href=\"index.php\">" . ucfirst(phr('GO_MAIN_REPORT')) . "</a><br>";
echo generating_time($inizio);
?>