1 <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
4 // Murray Jensen <Murray.Jensen@csiro.au>
5 // CSIRO Manufacturing Science and Technology, Preston Lab
7 // edit page (hymod_bddb / boards)
11 pg_head("$bddb_label - Edit Board Log Entry");
13 if (!isset($_REQUEST['serno']) || $_REQUEST['serno'] == '')
14 die("serial number not specified!");
15 $serno=intval($_REQUEST['serno']);
17 if (!isset($_REQUEST['logno']) || $_REQUEST['logno'] == '')
18 die("log number not specified!");
19 $logno=intval($_REQUEST['logno']);
21 $pserno = sprintf("%010d", $serno);
22 $plogno = sprintf("%010d", $logno);
24 echo "<center><b><font size=+2>";
25 echo "Board Serial Number: $pserno, Log Number: $plogno";
26 echo "</font></b></center>\n";
30 <form action=doedlog.php method=POST>
32 echo "<input type=hidden name=serno value=$serno>\n";
33 echo "<input type=hidden name=logno value=$logno>\n";
35 $r=mysql_query("select * from log where serno=$serno and logno=$logno");
36 $row=mysql_fetch_array($r);
38 die("no record of log entry with serial number '$serno' " .
39 "and log number '$logno' in database");
44 print_field("date", $row);
47 print_field("who", $row);
50 print_field_multiline("details", $row, 60, 10, 'text_filter');
56 echo "<font color=#ff0000>WARNING: NO UNDO ON DELETE!</font>";
58 echo "<tt>[ <a href=\"dodellog.php?serno=$serno&logno=$logno\">delete</a> ]</tt>";
59 echo "</b></center>\n";
63 <table align=center width="100%">
66 <input type=submit value=Edit>
72 <input type=reset value=Reset>
78 <a href="index.php">Back to Start</a>