1 <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
4 // Murray Jensen <Murray.Jensen@cmst.csiro.au>
5 // CSIRO Manufacturing Science and Technology, Preston Lab
7 // doedit page (hymod_bddb / boards)
11 pg_head("$bddb_label - Edit Log Entry Results");
14 die("the board serial number was not specified");
16 if (!isset($logno) || $logno == 0)
17 die("log number not specified!");
19 $query="update log set";
22 list($y, $m, $d) = split("-", $date);
23 if (!checkdate($m, $d, $y) || $y < 1999)
24 die("date is invalid (input '$date', " .
25 "yyyy-mm-dd '$y-$m-$d')");
26 $query.=" date='$date'";
30 $query.=", who='" . $who . "'";
33 $query.=", details='" . rawurlencode($details) . "'";
35 $query.=" where serno=$serno and logno=$logno";
39 $errstr = mysql_error();
40 echo "\t<font size=+4>\n";
42 echo "\t\t\tThe following error was encountered:\n";
44 echo "\t\t<center>\n";
45 printf("\t\t\t<b>%s</b>\n", $errstr);
46 echo "\t\t</center>\n";
50 echo "\t<font size=+2>\n";
52 echo "\t\t\tThe log entry with log number <b>$logno</b> and\n";
53 echo "\t\t\tserial number <b>$serno</b> ";
54 echo "was successfully updated\n";
61 <table align=center width="100%">
63 <td align=center><a href="brlog.php?serno=<?php echo "$serno"; ?>">Back to Log</a></td>
64 <td align=center><a href="index.php">Back to Start</a></td>