auto format-fix

This commit is contained in:
Karsten Siegmund 2024-01-26 11:07:56 +01:00
parent fc5c15a2c8
commit ae656679b0
2 changed files with 19 additions and 17 deletions

View File

@ -195,8 +195,7 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
// Aktueller Dienst und dessen Schichten Anzeigen // Aktueller Dienst und dessen Schichten Anzeigen
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
if( !isset($DienstID)) if (!isset($DienstID)) {
{
echo "<img src='Bilder/Attention_Sign.svg' width='20px'> Bitte erst Dienst Auswählen </body></html>"; echo "<img src='Bilder/Attention_Sign.svg' width='20px'> Bitte erst Dienst Auswählen </body></html>";
exit; exit;
} }
@ -351,11 +350,15 @@ echo "<p><noscript><button name='ShowSchicht' value='1'>Schicht Anzeigen</button
</table> </table>
<input style="width:unset" width=20 id="Schicht-Automatic-Bis" name="Schicht-Automatic-Bis" type="checkbox" onclick="setEndDate()" <?php <input style="width:unset" width=20 id="Schicht-Automatic-Bis" name="Schicht-Automatic-Bis" type="checkbox" onclick="setEndDate()" <?php
if ($AutomaticBis) { echo "checked";} if ($AutomaticBis) {
echo "checked";
}
?> > Endzeit von Dauer<br> ?> > Endzeit von Dauer<br>
<input style="width:unset" width=20 id="Schicht-Anschlussschicht" name="Schicht-Anschlussschicht" type="checkbox" <?php <input style="width:unset" width=20 id="Schicht-Anschlussschicht" name="Schicht-Anschlussschicht" type="checkbox" <?php
if ($Anschlussschicht) { echo "checked"; } if ($Anschlussschicht) {
echo "checked";
}
?> > Anschlussschicht vorbereiten<br> ?> > Anschlussschicht vorbereiten<br>
<p> <p>
<button name="NewSchicht" value="1">Schicht anlegen</button> <button name="NewSchicht" value="1">Schicht anlegen</button>

View File

@ -18,8 +18,7 @@ function setEndDate()
// because maybe browsers also convert to UTC for the internal value // because maybe browsers also convert to UTC for the internal value
// but I guess in the worst case we have ZZ at the end and the js autofill fails // but I guess in the worst case we have ZZ at the end and the js autofill fails
var checkBox = document.getElementById("Schicht-Automatic-Bis"); var checkBox = document.getElementById("Schicht-Automatic-Bis");
if (checkBox.checked == true) if (checkBox.checked == true) {
{
var start = new Date(document.getElementById("Schicht-Von").value + 'Z'); var start = new Date(document.getElementById("Schicht-Von").value + 'Z');
var delta = new Date("0000-01-01T" + document.getElementById("Schicht-Dauer").value); var delta = new Date("0000-01-01T" + document.getElementById("Schicht-Dauer").value);
var end = new Date(start); var end = new Date(start);