newlog.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
  2. <?php
  3. // (C) Copyright 2001
  4. // Murray Jensen <Murray.Jensen@csiro.au>
  5. // CSIRO Manufacturing Science and Technology, Preston Lab
  6. // edit page (hymod_bddb / boards)
  7. require("defs.php");
  8. pg_head("$bddb_label - New Log Entry");
  9. if (!isset($_REQUEST['serno']) || $_REQUEST['serno'] == '')
  10. die("serial number not specified or invalid!");
  11. $serno=intval($_REQUEST['serno']);
  12. if (isset($_REQUEST['logno'])) {
  13. $logno=$_REQUEST['logno'];
  14. die("log number must not be specified when adding! ($logno)");
  15. }
  16. ?>
  17. <form action=donewlog.php method=POST>
  18. <p></p>
  19. <?php
  20. echo "<input type=hidden name=serno value=$serno>\n";
  21. begin_table(3);
  22. // date date
  23. print_field("date", array('date' => date("Y-m-d")));
  24. // who char(20)
  25. print_field("who", array());
  26. // details text
  27. print_field_multiline("details", array(), 60, 10, 'text_filter');
  28. end_table();
  29. ?>
  30. <p></p>
  31. <table width="100%">
  32. <tr>
  33. <td align=center>
  34. <input type=submit value="Add Log Entry">
  35. </td>
  36. <td align=center>
  37. <input type=reset value="Reset Form Contents">
  38. </td>
  39. </tr>
  40. </table>
  41. </form>
  42. <?php
  43. pg_foot();
  44. ?>