wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 1 | <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?> |
| 2 | <?php |
| 3 | // (C) Copyright 2001 |
| 4 | // Murray Jensen <Murray.Jensen@cmst.csiro.au> |
| 5 | // CSIRO Manufacturing Science and Technology, Preston Lab |
| 6 | |
| 7 | // edit page (hymod_bddb / boards) |
| 8 | |
| 9 | require("defs.php"); |
| 10 | |
| 11 | pg_head("$bddb_label - Edit Board Log Entry"); |
| 12 | |
| 13 | if ($serno == 0) |
| 14 | die("serial number not specified!"); |
| 15 | |
| 16 | if (!isset($logno) || $logno == 0) |
| 17 | die("log number not specified!"); |
| 18 | |
| 19 | $pserno = sprintf("%010d", $serno); |
| 20 | $plogno = sprintf("%010d", $logno); |
| 21 | |
| 22 | echo "<center><b><font size=+2>"; |
| 23 | echo "Board Serial Number: $pserno, Log Number: $plogno"; |
| 24 | echo "</font></b></center>\n"; |
| 25 | |
| 26 | ?> |
| 27 | <p> |
| 28 | <form action=doedlog.php method=POST> |
| 29 | <?php |
| 30 | echo "<input type=hidden name=serno value=$serno>\n"; |
| 31 | echo "<input type=hidden name=logno value=$logno>\n"; |
| 32 | |
| 33 | $r=mysql_query("select * from log where serno=$serno and logno=$logno"); |
| 34 | $row=mysql_fetch_array($r); |
| 35 | if(!$row) |
| 36 | die("no record of log entry with serial number '$serno' " . |
| 37 | "and log number '$logno' in database"); |
| 38 | |
| 39 | begin_table(3); |
| 40 | |
| 41 | // date date |
| 42 | print_field("date", $row); |
| 43 | |
| 44 | // details text |
| 45 | print_field_multiline("details", $row, 60, 10, 'text_filter'); |
| 46 | |
| 47 | end_table(); |
| 48 | |
| 49 | echo "<p>\n"; |
| 50 | echo "<center><b>"; |
| 51 | echo "<font color=#ff0000>WARNING: NO UNDO ON DELETE!</font>"; |
| 52 | echo "<br></br>\n"; |
| 53 | echo "<tt>[ <a href=\"dodellog.php?serno=$serno&logno=$logno\">delete</a> ]</tt>"; |
| 54 | echo "</b></center>\n"; |
| 55 | echo "</p>\n"; |
| 56 | ?> |
| 57 | <p> |
| 58 | <table align=center width="100%"> |
| 59 | <tr> |
| 60 | <td align=center> |
| 61 | <input type=submit value=Edit> |
| 62 | </td> |
| 63 | <td> |
| 64 | |
| 65 | </td> |
| 66 | <td align=center> |
| 67 | <input type=reset value=Reset> |
| 68 | </td> |
| 69 | <td> |
| 70 | |
| 71 | </td> |
| 72 | <td align=center> |
| 73 | <a href="index.php">Back to Start</a> |
| 74 | </td> |
| 75 | </tr> |
| 76 | </table> |
| 77 | </p> |
| 78 | </form> |
| 79 | <?php |
| 80 | pg_foot(); |
| 81 | ?> |