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 |
Wolfgang Denk | 2c9dfca | 2005-08-12 23:20:59 +0200 | [diff] [blame^] | 4 | // Murray Jensen <Murray.Jensen@csiro.au> |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 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 | |
wdenk | b00ec16 | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 44 | // who char(20) |
| 45 | print_field("who", $row); |
| 46 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 47 | // details text |
| 48 | print_field_multiline("details", $row, 60, 10, 'text_filter'); |
| 49 | |
| 50 | end_table(); |
| 51 | |
| 52 | echo "<p>\n"; |
| 53 | echo "<center><b>"; |
| 54 | echo "<font color=#ff0000>WARNING: NO UNDO ON DELETE!</font>"; |
| 55 | echo "<br></br>\n"; |
| 56 | echo "<tt>[ <a href=\"dodellog.php?serno=$serno&logno=$logno\">delete</a> ]</tt>"; |
| 57 | echo "</b></center>\n"; |
| 58 | echo "</p>\n"; |
| 59 | ?> |
| 60 | <p> |
| 61 | <table align=center width="100%"> |
| 62 | <tr> |
| 63 | <td align=center> |
| 64 | <input type=submit value=Edit> |
| 65 | </td> |
| 66 | <td> |
| 67 | |
| 68 | </td> |
| 69 | <td align=center> |
| 70 | <input type=reset value=Reset> |
| 71 | </td> |
| 72 | <td> |
| 73 | |
| 74 | </td> |
| 75 | <td align=center> |
| 76 | <a href="index.php">Back to Start</a> |
| 77 | </td> |
| 78 | </tr> |
| 79 | </table> |
| 80 | </p> |
| 81 | </form> |
| 82 | <?php |
| 83 | pg_foot(); |
| 84 | ?> |