summaryrefslogtreecommitdiff
path: root/includes/funktionen.php
diff options
context:
space:
mode:
authorMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
committerMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
commit75448045cfe70054c8f4bae1bcfaf9bb0f70d330 (patch)
tree6a4d3d35019cdf933c1816e8522dc5d2557f5238 /includes/funktionen.php
parent12e0b0d809c29d435a247798d7318cc9835980ea (diff)
fixes
Diffstat (limited to 'includes/funktionen.php')
-rw-r--r--[-rwxr-xr-x]includes/funktionen.php43
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);
+ }
?>