From 6ac183b6fec64135d149f9bb5899ae76fb187bb0 Mon Sep 17 00:00:00 2001 From: cookie Date: Sun, 3 Dec 2006 21:15:29 +0000 Subject: [PATCH] bei shiftcreate wird jetzt - statt ; verwendet git-svn-id: svn://svn.cccv.de/engel-system@194 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/shiftadd.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/www-ssl/admin/shiftadd.php b/www-ssl/admin/shiftadd.php index 83022668..16a64675 100755 --- a/www-ssl/admin/shiftadd.php +++ b/www-ssl/admin/shiftadd.php @@ -44,7 +44,7 @@ if( !isset( $_SESSION['shiftadd.php']['SchichtName'])) $_SESSION['shiftadd.php']['ETime'] = "12"; $_SESSION['shiftadd.php']['len'] = "2"; $_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 if( !isset($_GET["NachtON"])) @@ -159,13 +159,11 @@ case 'newsave': $lenOrg = $_GET["len"]; if( $_GET["NachtON"] == "ON" ) { - $lenArrayDummy = explode( ";", $_GET["len_night"]); + $lenArrayDummy = explode( "-", $_GET["len_night"]); foreach ( $lenArrayDummy as $Temp ) { if( isset($Temp2) ) - { $lenArray[$Temp2] = $Temp-$Temp2; - } $Temp2 = $Temp; }//foreach @@ -195,9 +193,7 @@ case 'newsave': // define End time if( $_GET["NachtON"] == "ON" ) - { $_GET["len"] = $lenArray[$Time]; - } $TimeEnd = $Time+ $_GET["len"]; //Tagesüberschreitung