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 - New Log Entry"); |
| 12 | |
Wolfgang Denk | 804ecb1 | 2005-08-12 23:27:18 +0200 | [diff] [blame] | 13 | if (!isset($_REQUEST['serno']) || $_REQUEST['serno'] == '') |
| 14 | die("serial number not specified or invalid!"); |
| 15 | $serno=intval($_REQUEST['serno']); |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 16 | |
Wolfgang Denk | 804ecb1 | 2005-08-12 23:27:18 +0200 | [diff] [blame] | 17 | if (isset($_REQUEST['logno'])) { |
| 18 | $logno=$_REQUEST['logno']; |
| 19 | die("log number must not be specified when adding! ($logno)"); |
| 20 | } |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 21 | ?> |
| 22 | <form action=donewlog.php method=POST> |
| 23 | <p></p> |
| 24 | <?php |
| 25 | echo "<input type=hidden name=serno value=$serno>\n"; |
| 26 | |
| 27 | begin_table(3); |
| 28 | |
| 29 | // date date |
| 30 | print_field("date", array('date' => date("Y-m-d"))); |
| 31 | |
wdenk | b00ec16 | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 32 | // who char(20) |
Wolfgang Denk | 804ecb1 | 2005-08-12 23:27:18 +0200 | [diff] [blame] | 33 | print_field("who", array()); |
wdenk | b00ec16 | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 34 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 35 | // details text |
| 36 | print_field_multiline("details", array(), 60, 10, 'text_filter'); |
| 37 | |
| 38 | end_table(); |
| 39 | ?> |
| 40 | <p></p> |
| 41 | <table width="100%"> |
| 42 | <tr> |
| 43 | <td align=center> |
| 44 | <input type=submit value="Add Log Entry"> |
| 45 | </td> |
| 46 | <td align=center> |
| 47 | <input type=reset value="Reset Form Contents"> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </table> |
| 51 | </form> |
| 52 | <?php |
| 53 | pg_foot(); |
| 54 | ?> |