From dd5ca95975d368d3fb1bbf9cca422222049242aa Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Thu, 27 Dec 2012 22:49:10 +0100 Subject: [PATCH] fixes for last commit --- includes/pages/user_shifts.php | 6 +++--- public/css/base.css | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 9ed566f8..bc2e392d 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -60,9 +60,9 @@ function user_shifts() { // Benötigte Engeltypen vom Raum $needed_angel_types_source = sql_select("SELECT `AngelTypes`.*, `NeededAngelTypes`.`count` FROM `AngelTypes` LEFT JOIN `NeededAngelTypes` ON (`NeededAngelTypes`.`angel_type_id` = `AngelTypes`.`id` AND `NeededAngelTypes`.`room_id`=" . sql_escape($shift['RID']) . ") ORDER BY `AngelTypes`.`name`"); foreach ($needed_angel_types_source as $type) { - if($type['count'] != "") + if($type['count'] != "") $needed_angel_types[$type['id']] =$type['count']; - } + } // Benötigte Engeltypen von der Schicht $needed_angel_types_source = sql_select("SELECT `AngelTypes`.*, `NeededAngelTypes`.`count` FROM `AngelTypes` LEFT JOIN `NeededAngelTypes` ON (`NeededAngelTypes`.`angel_type_id` = `AngelTypes`.`id` AND `NeededAngelTypes`.`shift_id`=" . sql_escape($shift_id) . ") ORDER BY `AngelTypes`.`name`"); @@ -384,7 +384,7 @@ function view_user_shifts() { } } } - $shifts_table=""; + $shifts_table="
-
"; foreach($myrooms as $room) { $rid=$room["id"]; $colspan=1; diff --git a/public/css/base.css b/public/css/base.css index b6e75ac1..6bcb95d1 100644 --- a/public/css/base.css +++ b/public/css/base.css @@ -108,6 +108,10 @@ table { display: block; } +#shifts { + background-color: #fff; +} + table.scrollable { max-width: 100%; overflow-x: scroll;
-