/[cvs.andrew.net.au]/stock/editwatch.php
ViewVC logotype

Annotation of /stock/editwatch.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Thu Mar 14 13:23:57 2002 UTC (21 years, 8 months ago) by apollock
Branch: MAIN, stock
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
Imported sources

1 apollock 1.1 <HTML>
2     <HEAD>
3     <TITLE>Stock Monitor: Edit 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> | Edit a watchscreen</H1>
10     <?php include("toolbar.html");?>
11     <?php include("inc/GetWatchscreens.inc");?>
12     <?php include("inc/GetWatchscreen.inc");?>
13     <?php include("inc/GetWatchscreenOwner.inc");?>
14     <?php include("inc/GetUserId.inc");?>
15     <?php include("inc/EditWatchscreen.inc");?>
16     <?php include("inc/MakeOptions.inc");?>
17     <FORM method=post>
18     Watchscreen to edit <SELECT name=id><OPTION value="">Choose one<?php echo MakeOptions(GetWatchscreens(GetUserId($PHP_AUTH_USER)))?></SELECT><BR>
19     <INPUT type=submit name=submit value="Edit Watchscreen">
20     </FORM>
21     <?php if (!empty($id) && !isset($watchscreenname) && ($PHP_AUTH_USER == getWatchscreenOwner($id))) {
22     $watchscreenname = GetWatchScreen($id);
23     //if ($watchscreenname != 0) {?>
24     <FORM method=post>
25     Watch screen name <INPUT type=text name=watchscreenname size=16 maxlength=16 value="<?php echo $watchscreenname?>"><BR>
26     <INPUT type=hidden name=id value=<?php echo $id?>>
27     <INPUT type=submit name=edit value="Update Watchscreen">
28     </FORM>
29     <?php //}
30     } else if (($PHP_AUTH_USER == getWatchscreenOwner($id)) && isset($watchscreenname)) {
31     if (EditWatchscreen($id, $watchscreenname)) {
32     echo "Watchscreen updated";
33     } else {
34     echo "Watchscreen not updated";
35     }
36     }?>
37     </BODY>
38     </HTML>

  ViewVC Help
Powered by ViewVC 1.1.22