1 |
<HTML> |
2 |
<HEAD> |
3 |
<TITLE>Stock Monitor: Delete a watchscreen</TITLE> |
4 |
<STYLE type="text/css"> |
5 |
<?php include("stylesheet.css");?> |
6 |
</STYLE> |
7 |
</HEAD> |
8 |
<BODY bgcolor="white"> |
9 |
<H1><A href="/main.php">stock.andrew.net.au</A> | Delete a watchscreen</H1> |
10 |
<?php include("toolbar.html");?> |
11 |
<?php include("inc/GetWatchscreens.inc");?> |
12 |
<?php include("inc/GetWatchscreenOwner.inc");?> |
13 |
<?php include("inc/GetUserId.inc");?> |
14 |
<?php include("inc/MakeOptions.inc");?> |
15 |
<?php include("inc/DelWatchscreen.inc");?> |
16 |
<FORM method=post> |
17 |
Watchscreen to delete <SELECT name=watchscreen><OPTION value="">Choose one<?php echo MakeOptions(GetWatchscreens(GetUserId($PHP_AUTH_USER)))?></SELECT><BR> |
18 |
<INPUT type=submit name=submit value="Delete watchscreen"> |
19 |
</FORM> |
20 |
<?php if (!empty($watchscreen)) { |
21 |
if (($PHP_AUTH_USER == getWatchscreenOwner($watchscreen)) && DelWatchscreen($watchscreen)) { |
22 |
echo "Watchscreen deleted"; |
23 |
} else { |
24 |
echo "Watchscreen not deleted"; |
25 |
} |
26 |
}?> |
27 |
</BODY> |
28 |
</HTML> |