diff options
author | Moritz helios Rudert <helios@planetcyborg.de> | 2011-06-01 12:13:39 +0200 |
---|---|---|
committer | Moritz helios Rudert <helios@planetcyborg.de> | 2011-06-01 12:13:39 +0200 |
commit | 75448045cfe70054c8f4bae1bcfaf9bb0f70d330 (patch) | |
tree | 6a4d3d35019cdf933c1816e8522dc5d2557f5238 /includes/funktionen.php | |
parent | 12e0b0d809c29d435a247798d7318cc9835980ea (diff) |
fixes
Diffstat (limited to 'includes/funktionen.php')
-rw-r--r--[-rwxr-xr-x] | includes/funktionen.php | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/includes/funktionen.php b/includes/funktionen.php index d841e6ec..fb63b708 100755..100644 --- a/includes/funktionen.php +++ b/includes/funktionen.php @@ -1,26 +1,23 @@ <?php + /* Schichtverplanung im Adminbereich */ + function Dsubstr($DateString, $re) { + if ($re == 1) + return substr($DateString, 0, 2); + elseif ($re == 2) + return substr($DateString, 3, 2); + else + return substr($DateString, 6, 4); + } -/* Schichtverplanung im Adminbereich */ -function Dsubstr($DateString,$re) { - if ($re==1) - return substr($DateString, 0, 2); - elseif ($re==2) - return substr($DateString, 3, 2); - else - return substr($DateString, 6, 4); -} - -/* Schichtverplanung im Engelbereich */ - -function engeldate($edate,$m) { - if ($m==t) - return substr($edate, 8, 2); - elseif ($m==m) - return substr($edate, 5, 2); - elseif ($m==u) - return substr($edate, 11, 5); - else - return substr($edate, 0, 4); -} - + /* Schichtverplanung im Engelbereich */ + function engeldate($edate, $m) { + if ($m == t) + return substr($edate, 8, 2); + elseif ($m == m) + return substr($edate, 5, 2); + elseif ($m == u) + return substr($edate, 11, 5); + else + return substr($edate, 0, 4); + } ?> |