summaryrefslogtreecommitdiff
path: root/includes/pages/user_myshifts.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-10-11 19:47:49 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-10-11 19:47:49 +0200
commit304af8e8f015ac896ad0683c6407a3269e981d97 (patch)
tree32454b2c7eaa432c6cfabf3809e60d2f2d2d0d0b /includes/pages/user_myshifts.php
parent1854e1455abcb23d3dc2c1ad206525227d08587d (diff)
#27 ical export, beginn
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r--includes/pages/user_myshifts.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php
index 4dc4cc81..60c5bba0 100644
--- a/includes/pages/user_myshifts.php
+++ b/includes/pages/user_myshifts.php
@@ -1,7 +1,7 @@
<?php
-//
+// Zeigt die Schichten an, die ein Benutzer belegt
function user_myshifts() {
global $LETZTES_AUSTRAGEN;
global $user, $privileges;
@@ -44,6 +44,7 @@ function user_myshifts() {
header("Location: " . page_link_to('user_myshifts'));
}
$shifts = sql_select("SELECT * FROM `ShiftEntry` JOIN `Shifts` ON (`ShiftEntry`.`SID` = `Shifts`.`SID`) JOIN `Room` ON (`Shifts`.`RID` = `Room`.`RID`) WHERE `UID`=" . sql_escape($user['UID']) . " ORDER BY `start`");
+
$html = "";
foreach ($shifts as $shift) {
if (time() > $shift['end'])