-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtop.php
More file actions
65 lines (60 loc) · 1.98 KB
/
top.php
File metadata and controls
65 lines (60 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Content-Type: text/html; charset=ISO-8859-1");
require_once 'config.php';
//header("Location: index.html")
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title>GlobeLAN Kiosk</title>
<link type="text/css" rel=stylesheet href=styles.css />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body onKeyPress="microsoftKeyPress()">
<table><tr><td><?php include 'menu.php'; ?></td>
<td>
<?php /*<form method=POST action=login.php?action=togglecrewsalg><input type=submit value='<?php
$salg = crewsalg();
echo $crewsalg[$salg]; '>
</form> */
?>
<?php echo "Crewsalg: ";
$q1 = query("SELECT * FROM session WHERE sID = '$_COOKIE[$cookiename]'");
$r1 = fetch($q1);
if($r1->crewSalg != 0) {
$q = query("SELECT * FROM users WHERE ID = '$r1->crewSalg'");
$r = fetch($q);
echo $r->name;
echo "<form method=POST action=login.php?action=togglecrewsalg><input type=submit value='Skru av crewsalg'></form>";
}
else echo "Av";
?>
</td>
<td width=40%>
<?php /*
<form method=POST action=login.php?action=changeuser>
<?php select_su(); ?>
<input type=submit value='Bytt bruker'>
</form>
*/ ?>
<?php
$q = query("SELECT users.name,session.userID FROM users,session WHERE users.ID = session.userID AND session.sID = '$_COOKIE[$cookiename]'");
$r = fetch($q);
echo "Selger: ".$r->name;
/* Gjør det mulig å bytte kasse */
echo "<form method=POST action=kasser.php?action=byttkasse>";
$currentkasse = my_kasse();
echo "<select name=nykasse>";
$qk = query("SELECT * FROM kasser");
while($rk = fetch($qk)) {
echo "<option value=$rk->ID";
if($rk->ID == $currentkasse) echo " SELECTED";
echo ">$rk->kassenavn ($rk->innhold)</option>\n\n\n";
}
echo "</select>";
echo "<input type=submit value='Bytt kasse'>";
echo "</form>";
?>
</td></tr>
<tr><td>