1 |
apollock |
1.1 |
<HTML> |
2 |
|
|
<HEAD> |
3 |
|
|
<TITLE>Stock Monitor: Add a watchscreen</TITLE> |
4 |
|
|
<STYLE type="text/css"> |
5 |
|
|
<?php include("stylesheet.css");?> |
6 |
|
|
</STYLE> |
7 |
|
|
</HEAD> |
8 |
|
|
<H1><A href="/">stock.andrew.net.au</A> | Add a watchscreen</H1> |
9 |
|
|
<?php include("toolbar.html");?> |
10 |
|
|
<BODY bgcolor="white"> |
11 |
|
|
<?php include("inc/AddWatchscreen.inc")?> |
12 |
|
|
<?php include("inc/GetUserId.inc")?> |
13 |
|
|
<FORM method=post> |
14 |
|
|
Name of watchscreen <INPUT type=text name=watchscreenname size=16 maxlength=64><INPUT type=submit value="Add watchscreen"> |
15 |
|
|
</FORM> |
16 |
|
|
<?php if (!empty($watchscreenname)) { |
17 |
|
|
if (AddWatchscreen(GetUserId($PHP_AUTH_USER), $watchscreenname)) { |
18 |
|
|
echo "$watchscreenname added to your watchscreens"; |
19 |
|
|
} else { |
20 |
|
|
echo "Watchscreen not added"; |
21 |
|
|
} |
22 |
|
|
}?> |
23 |
|
|
</BODY> |
24 |
|
|
</HTML> |