submit.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="generator" content="GitLab Pages">
  6. <title>KATRIN remote analysis shift</title>
  7. <link rel="shortcut icon" href="https://ikp-neu-katrin.ikp.kit.edu/routine/pics/KATRINlogo.ico" />
  8. <link rel="stylesheet" href="style.css">
  9. <style>
  10. td {
  11. padding: 105px;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <iframe src="navbar.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
  17. <br>
  18. <center>
  19. <h1>Checklist for remote analysis shifts</h1>
  20. </center>
  21. <hr>
  22. <h2 style="text-align:right">Step 3/3</h2>
  23. <center>
  24. <br>
  25. <br>
  26. <p>
  27. If you find problems in any of the parameters, please contact one of the corresponding system experts via email or on RocketChat.
  28. </p>
  29. <br>
  30. <br>
  31. <table width="40%" id="table">
  32. <tr>
  33. <th>System</th>
  34. <th>System experts</th>
  35. </tr>
  36. <tr>
  37. <td>
  38. High voltage <br>
  39. LARA <br>
  40. BIXS <br>
  41. FBM <br>
  42. Data processing <br>
  43. Column density <br>
  44. RW <br>
  45. Fit parameters
  46. </td>
  47. <td>
  48. <a href="mailto:rodenbeck@wwu.de">C. Rodenbeck</a>, <a href="mailto:thomas.thuemmler@kit.edu">T. Thümmler</a> <br>
  49. <a href="mailto:magnus.schloesser@kit.edu">M. Schlösser</a>, <a href="mailto:genrich.zeller@kit.edu">G. Zeller</a> <br>
  50. <a href="mailto:max.aker@kit.edu">M. Aker</a> <br>
  51. <a href="mailto:ellinger@uni-wuppertal.de">E. Ellinger</a>, <a href="mailto:debowski@uni-wuppertal.de">K. Debowski</a> <br>
  52. <a href="mailto:sanshiro@u.washington.edu">S. Enomoto</a> <br>
  53. <a href="mailto:ckoehler@mpp.mpg.de">C. Köhler</a>, <a href="mailto:fabian.block@kit.edu">F. Block</a> <br>
  54. <a href="mailto:rudolf.sack@kit.edu">R. Sack</a> <br>
  55. <a href="mailto:alexey.lokhov@uni-muenster.de">A. Lokhov</a>, <a href="mailto:magnus.schloesser@kit.edu">M. Schlösser</a>
  56. </td>
  57. </tr>
  58. </table>
  59. <hr>
  60. <h3>Summary:</h3>
  61. <br>
  62. <table id="table" style="max-width:600px;">
  63. <tr>
  64. <td style="text-align:left"><body onload="document.getElementById('result').innerHTML = localStorage.getItem('summary')">
  65. <text id="result"></text>
  66. </body></td>
  67. </tr>
  68. </table>
  69. <br>
  70. <hr>
  71. <br>
  72. <!-- <button type="submit" onclick="cancel()" id="Cancel">Cancel</button> -->
  73. <button type="submit" onclick="submit()" id="Submit">Go to start</button>
  74. <br><br><br><br>
  75. <script type="text/javascript">
  76. // function cancel() {
  77. // localStorage.clear()
  78. // window.location.href="index.php";
  79. // }
  80. function submit() {
  81. <?php
  82. $file = "recentSQLName.txt";
  83. $f = fopen($file, 'r');
  84. $tableName = fgets($f);
  85. fclose($f);
  86. $db= new SQLite3("data/mydb.sqlite");
  87. $Run_Range = $_GET["Run_Range"];
  88. $Mode = $_GET["Mode"];
  89. $Submitted = $_GET["Submitted"];
  90. $Author = $_GET["Author"];
  91. $webtrium = $_GET["webtrium"];
  92. $HV_K65 = $_GET["HV_K65"];
  93. $HV_TankPotential = $_GET["HV_tank_potential"];
  94. $BIXS = $_GET["BIXS"];
  95. $LARA = $_GET["LARA"];
  96. $LARA_Crosscheck = $_GET["LARA_crosscheck"];
  97. $FBM = $_GET["FBM"];
  98. $RW = $_GET["RW"];
  99. $Run_Length = $_GET["Run_length"];
  100. $Data_Size = $_GET["Data_size"];
  101. $FPD_Energy = $_GET["FPD_energy"];
  102. $Grid_sync = $_GET["Grid_sync"];
  103. $Rate_300 = $_GET["Rate_300"];
  104. $Rate_90 = $_GET["Rate_90"];
  105. $Tritium_Purity = $_GET["Tritium_purity"];
  106. $U_MTD_discrepancy= $_GET["U_MTD_discrepancy"];
  107. $Missing_K35 = $_GET["Missing_K35"];
  108. $Summary = $_GET["Summary"];
  109. $db->exec("CREATE TABLE IF NOT EXISTS $tableName(id INTEGER PRIMARY KEY NOT NULL, Run_Range Text, Mode Text, Submitted Text, Author Text, webtrium text, HV_K65 Text, HV_tank_potential Text, U_MTD_discrepancy Text, Missing_K35 Text, BIXS Text, LARA Text, LARA_crosscheck Text, FBM Text, RW Text, Run_length Text, Data_size Text, FPD_energy Text, Grid_sync Text, Rate_300 Text, Rate_90 Text, Tritium_purity Text, Summary Text )");
  110. //#$string_to_insert=$db->escapeString($author);
  111. $db->exec("INSERT INTO $tableName (Run_Range, Mode, Submitted, Author, webtrium, HV_K65, HV_tank_potential, U_MTD_discrepancy, Missing_K35, BIXS, LARA, LARA_crosscheck, FBM, RW, Run_length, Data_size, FPD_energy, Grid_sync, Rate_300, Rate_90, Tritium_purity, Summary) VALUES ('$Run_Range', '$Mode', '$Submitted', '$Author', '$webtrium', '$HV_K65', '$HV_TankPotential', '$U_MTD_discrepancy', '$Missing_K35', '$BIXS', '$LARA', '$LARA_Crosscheck', '$FBM', '$RW', '$Run_Length', '$Data_Size', '$FPD_Energy', '$Grid_sync', '$Rate_300', '$Rate_90', '$Tritium_Purity', '$Summary')");
  112. ?>
  113. localStorage.clear()
  114. window.location.href="index.php";
  115. }
  116. </script>
  117. </center>
  118. </body>
  119. </html>