blob: 375dca32405486c8facf5d0b20605d74d091e141 [file] [log] [blame]
wdenkfe8c2802002-11-03 00:38:21 +00001<?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
2<?php
3 // (C) Copyright 2001
Wolfgang Denk2c9dfca2005-08-12 23:20:59 +02004 // Murray Jensen <Murray.Jensen@csiro.au>
wdenkfe8c2802002-11-03 00:38:21 +00005 // 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
wdenkb00ec162003-06-19 23:40:20 +000044 // who char(20)
45 print_field("who", $row);
46
wdenkfe8c2802002-11-03 00:38:21 +000047 // 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 &nbsp;
68 </td>
69 <td align=center>
70 <input type=reset value=Reset>
71 </td>
72 <td>
73 &nbsp;
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?>