bei shiftcreate wird jetzt - statt ; verwendet
git-svn-id: svn://svn.cccv.de/engel-system@194 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
cc1b8efaa3
commit
6ac183b6fe
|
@ -44,7 +44,7 @@ if( !isset( $_SESSION['shiftadd.php']['SchichtName']))
|
||||||
$_SESSION['shiftadd.php']['ETime'] = "12";
|
$_SESSION['shiftadd.php']['ETime'] = "12";
|
||||||
$_SESSION['shiftadd.php']['len'] = "2";
|
$_SESSION['shiftadd.php']['len'] = "2";
|
||||||
$_SESSION['shiftadd.php']['NachtON'] = "OFF";
|
$_SESSION['shiftadd.php']['NachtON'] = "OFF";
|
||||||
$_SESSION['shiftadd.php']['len_night'] = "0;4;8;10;12;14;16;18;20;22;24";
|
$_SESSION['shiftadd.php']['len_night'] = "00-04-08-10-12-14-16-18-20-22-24";
|
||||||
}
|
}
|
||||||
// wenn werte übergeben in sesion eintragen
|
// wenn werte übergeben in sesion eintragen
|
||||||
if( !isset($_GET["NachtON"]))
|
if( !isset($_GET["NachtON"]))
|
||||||
|
@ -159,13 +159,11 @@ case 'newsave':
|
||||||
$lenOrg = $_GET["len"];
|
$lenOrg = $_GET["len"];
|
||||||
if( $_GET["NachtON"] == "ON" )
|
if( $_GET["NachtON"] == "ON" )
|
||||||
{
|
{
|
||||||
$lenArrayDummy = explode( ";", $_GET["len_night"]);
|
$lenArrayDummy = explode( "-", $_GET["len_night"]);
|
||||||
foreach ( $lenArrayDummy as $Temp )
|
foreach ( $lenArrayDummy as $Temp )
|
||||||
{
|
{
|
||||||
if( isset($Temp2) )
|
if( isset($Temp2) )
|
||||||
{
|
|
||||||
$lenArray[$Temp2] = $Temp-$Temp2;
|
$lenArray[$Temp2] = $Temp-$Temp2;
|
||||||
}
|
|
||||||
$Temp2 = $Temp;
|
$Temp2 = $Temp;
|
||||||
|
|
||||||
}//foreach
|
}//foreach
|
||||||
|
@ -195,9 +193,7 @@ case 'newsave':
|
||||||
|
|
||||||
// define End time
|
// define End time
|
||||||
if( $_GET["NachtON"] == "ON" )
|
if( $_GET["NachtON"] == "ON" )
|
||||||
{
|
|
||||||
$_GET["len"] = $lenArray[$Time];
|
$_GET["len"] = $lenArray[$Time];
|
||||||
}
|
|
||||||
$TimeEnd = $Time+ $_GET["len"];
|
$TimeEnd = $Time+ $_GET["len"];
|
||||||
|
|
||||||
//Tagesüberschreitung
|
//Tagesüberschreitung
|
||||||
|
|
Loading…
Reference in New Issue