submit.php 6.0 KB

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