MAB.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <html>
  2. <style>
  3. ul#menu li {
  4. display:inline;
  5. }
  6. ul {
  7. display: flex;
  8. align-items: stretch; /* Default */
  9. justify-content: space-between;
  10. width: 50%;
  11. margin: 0;
  12. padding: 0;
  13. }
  14. li {
  15. display: block;
  16. background-color: #33CCFF;
  17. flex: 0 1 auto; /* Default */
  18. list-style-type: none;
  19. }
  20. .but {
  21. color: black;
  22. padding: 5px 10px;
  23. text-align: center;
  24. display: inline-block;
  25. font-size: 15px;
  26. margin: 10px 40px;
  27. cursor: pointer;
  28. text-decoration:none;
  29. border-radius:10px;
  30. padding: 10px 30px;
  31. }
  32. li:hover {
  33. background-color: #003399;
  34. }
  35. li:focus {
  36. background-color: #003399;
  37. }
  38. </style>
  39. <p>DTC</p>
  40. <form method="GET" action="../services/toDTC.php">
  41. <input type="hidden" name="workerID" id="workerID" required>
  42. <input type="hidden" name="rolle" id="rolle" value="MAB" required>
  43. <input type="submit" name="act" value="Start Production">
  44. <input type="submit" name="act" value="View Open Tasks">
  45. </form>
  46. <script type="text/javascript">
  47. const queryString = window.location.search;
  48. const urlParams = new URLSearchParams(queryString);
  49. const workerID = urlParams.get('workerID');
  50. document.getElementById("workerID").value = workerID;
  51. </script>
  52. </html>