mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-27 17:09:37 +00:00
zeitenfelder mit 0 vorne padden
This commit is contained in:
@@ -225,6 +225,28 @@ echo '
|
||||
return val;
|
||||
}
|
||||
|
||||
function checkZeiten()
|
||||
{
|
||||
var von_el = document.getElementById("von_uhrzeit");
|
||||
var bis_el = document.getElementById("bis_uhrzeit");
|
||||
var von_zeit = von_el.value;
|
||||
var bis_zeit = bis_el.value;
|
||||
von_arr = von_zeit.split(":");
|
||||
bis_arr = bis_zeit.split(":");
|
||||
if (von_arr[0].length == 1)
|
||||
von_arr[0] = foo(von_arr[0]);
|
||||
if (von_arr[1].length == 1)
|
||||
von_arr[1] = foo(von_arr[1]);
|
||||
if (bis_arr[0].length == 1)
|
||||
bis_arr[0] = foo(bis_arr[0]);
|
||||
if (bis_arr[1].length == 1)
|
||||
bis_arr[1] = foo(bis_arr[1]);
|
||||
von_zeit = von_arr[0]+":"+von_arr[1];
|
||||
bis_zeit = bis_arr[0]+":"+bis_arr[1];
|
||||
von_el.value = von_zeit;
|
||||
bis_el.value = bis_zeit;
|
||||
|
||||
}
|
||||
function confdel()
|
||||
{
|
||||
return confirm("'.$p->t("global/warnungWirklichLoeschen").'");
|
||||
@@ -760,7 +782,7 @@ if($projekt->getProjekteMitarbeiter($user, true))
|
||||
<td>'.$p->t("global/von").' - '.$p->t("global/bis").'</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker_datum" id="von_datum" name="von_datum" value="'.$db->convert_html_chars($datum->formatDatum($von, $format='d.m.Y')).'" size="9">
|
||||
<input type="text" class="timepicker" id="von_uhrzeit" name="von_uhrzeit" value="'.$db->convert_html_chars($datum->formatDatum($von, $format='H:i')).'" size="4">
|
||||
<input onchange="checkZeiten()" type="text" class="timepicker" id="von_uhrzeit" name="von_uhrzeit" value="'.$db->convert_html_chars($datum->formatDatum($von, $format='H:i')).'" size="4">
|
||||
</td>';
|
||||
if ($za_simple == 0)
|
||||
{
|
||||
@@ -784,7 +806,7 @@ if($projekt->getProjekteMitarbeiter($user, true))
|
||||
echo '
|
||||
<td align="right">
|
||||
<input type="text" class="datepicker_datum" id="bis_datum" name="bis_datum" value="'.$db->convert_html_chars($datum->formatDatum($bis, $format='d.m.Y')).'" size="9">
|
||||
<input type="text" class="timepicker" id="bis_uhrzeit" name="bis_uhrzeit" value="'.$db->convert_html_chars($datum->formatDatum($bis, $format='H:i')).'" size="4">
|
||||
<input onchange="checkZeiten()" type="text" class="timepicker" id="bis_uhrzeit" name="bis_uhrzeit" value="'.$db->convert_html_chars($datum->formatDatum($bis, $format='H:i')).'" size="4">
|
||||
</td>
|
||||
<tr>';
|
||||
//Beschreibung
|
||||
|
||||
Reference in New Issue
Block a user