|
@@ -30,7 +30,20 @@
|
|
|
<body onload="document.getElementById('result').innerHTML = 'Welcome ' + localStorage.getItem('author') + '<br><br>The last check has been performed based on:<br>' + localStorage.getItem('lastChecked')">
|
|
|
<h3 id="result"></h3>
|
|
|
</body>
|
|
|
- <h3>Please check the following parameters and values. <br>If any runs are effected, note down the run numbers in the comments and contact the corresponding system expert. </h3>
|
|
|
+
|
|
|
+ <?php
|
|
|
+ $datetime = new DateTime($dateTimeString);
|
|
|
+ $Year = $datetime->format('Y');
|
|
|
+ $Day = $datetime->format('d')-1;
|
|
|
+ $Month = $datetime->format('m');
|
|
|
+
|
|
|
+ $url = "http://katrin:tritium.Meitner$2021@kdb.kaas.kit.edu/kdb-api.fcgi/json?run&system=fpd&from=".$Year."-".$Month."-".$Day;
|
|
|
+ //call api
|
|
|
+ $jsonData = file_get_contents($url);
|
|
|
+ $json = array_values(json_decode($jsonData, true));
|
|
|
+ print("<h3>Last run that has be processed on <a href='https://kdb.kaas.kit.edu' target='_blank'>kdb</a>: run# ".end($json[1]['Run'])['Number']."</h3>");
|
|
|
+ ?>
|
|
|
+ <p>Please check the following parameters and values. <br>If any runs are effected, note down the run numbers in the comments and contact the corresponding system expert. </p>
|
|
|
<br>
|
|
|
|
|
|
<hr>
|
|
@@ -41,12 +54,12 @@
|
|
|
|
|
|
<tr>
|
|
|
<td style="text-align:center"><b>First run</b></td>
|
|
|
- <td style="text-align:center"><input type="text" placeholder ="Run number" id="First_run"></td>
|
|
|
+ <td style="text-align:center"><input type="text" min="1" oninput="this.value=this.value.replace(/[^0-9]/g,'');" placeholder ="Run number" id="First_run"></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td style="text-align:center"><b>Last run</b></td>
|
|
|
- <td style="text-align:center"><input type="text" placeholder ="Run number" id="Last_run"></td>
|
|
|
+ <td style="text-align:center"><input type="text" min="1" oninput="this.value=this.value.replace(/[^0-9]/g,'');" placeholder ="Run number" id="Last_run"></td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
@@ -235,7 +248,7 @@
|
|
|
<hr>
|
|
|
<br>
|
|
|
<button type="submit" onclick="goBack()" id="Back">Go back</button>
|
|
|
- <button type="submit" onclick="submit()" id="Submit">Confirm</button>
|
|
|
+ <button type="submit" onclick="submit()" id="Submit">Confirm & submit</button>
|
|
|
<br><br><br><br>
|
|
|
|
|
|
<script type="text/javascript">
|