?> // CSIRO Manufacturing Science and Technology, Preston Lab // edit page (hymod_bddb / boards) require("defs.php"); pg_head("$bddb_label - Edit Board Log Entry"); if (!isset($_REQUEST['serno']) || $_REQUEST['serno'] == '') die("serial number not specified!"); $serno=intval($_REQUEST['serno']); if (!isset($_REQUEST['logno']) || $_REQUEST['logno'] == '') die("log number not specified!"); $logno=intval($_REQUEST['logno']); $pserno = sprintf("%010d", $serno); $plogno = sprintf("%010d", $logno); echo "
"; echo "Board Serial Number: $pserno, Log Number: $plogno"; echo "
\n"; ?>

\n"; echo "\n"; $r=mysql_query("select * from log where serno=$serno and logno=$logno"); $row=mysql_fetch_array($r); if(!$row) die("no record of log entry with serial number '$serno' " . "and log number '$logno' in database"); begin_table(3); // date date print_field("date", $row); // who char(20) print_field("who", $row); // details text print_field_multiline("details", $row, 60, 10, 'text_filter'); end_table(); echo "

\n"; echo "

"; echo "WARNING: NO UNDO ON DELETE!"; echo "

\n"; echo "[ delete ]"; echo "
\n"; echo "

\n"; ?>

    Back to Start