newlog.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
  2. <?php
  3. // (C) Copyright 2001
  4. // Murray Jensen <Murray.Jensen@cmst.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 ($serno == 0)
  10. die("serial number not specified!");
  11. if (isset($logno))
  12. die("log number must not be specified when adding!");
  13. ?>
  14. <form action=donewlog.php method=POST>
  15. <p></p>
  16. <?php
  17. echo "<input type=hidden name=serno value=$serno>\n";
  18. begin_table(3);
  19. // date date
  20. print_field("date", array('date' => date("Y-m-d")));
  21. // who char(20)
  22. print_field("who", "");
  23. // details text
  24. print_field_multiline("details", array(), 60, 10, 'text_filter');
  25. end_table();
  26. ?>
  27. <p></p>
  28. <table width="100%">
  29. <tr>
  30. <td align=center>
  31. <input type=submit value="Add Log Entry">
  32. </td>
  33. <td align=center>
  34. <input type=reset value="Reset Form Contents">
  35. </td>
  36. </tr>
  37. </table>
  38. </form>
  39. <?php
  40. pg_foot();
  41. ?>