summaryrefslogtreecommitdiff
path: root/inc/funktionen.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-09-10 17:25:43 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-09-10 17:25:43 +0000
commit310c2ce98fc8c0e94559c9ed8587101d92f6e853 (patch)
tree7093065a133e434fb7e551803e8700661d04c5bb /inc/funktionen.php
add total system
git-svn-id: svn://svn.cccv.de/engel-system@1 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'inc/funktionen.php')
-rwxr-xr-xinc/funktionen.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/inc/funktionen.php b/inc/funktionen.php
new file mode 100755
index 00000000..d841e6ec
--- /dev/null
+++ b/inc/funktionen.php
@@ -0,0 +1,26 @@
+<?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 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);
+}
+
+?>