startProduction.html 963 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  6. </head>
  7. <div class="form_div">
  8. <h3>Start Production</h3>
  9. <form method="GET" action="../services/start_instance.php">
  10. <input type="text" name="workerID" id="workerID">
  11. <p> OrderID: <input type="text" name="orderID" required></p>
  12. <p> ArticleID: <input type="text" name="articleID" required></p>
  13. <p> MachineID: <input type="text" name="machineID" required></p>
  14. <input type="submit" value="Start" onclick="test();">
  15. </form>
  16. </div>
  17. <script type="text/javascript">
  18. const queryString = window.location.search;
  19. const urlParams = new URLSearchParams(queryString);
  20. const workerID = urlParams.get('workerID');
  21. document.getElementById("workerID").value = workerID;
  22. </script>
  23. </html>