aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies
diff options
context:
space:
mode:
authorMaZderMind2014-11-03 21:53:30 +0100
committerMaZderMind2014-11-07 00:17:40 +0100
commitdb0a85ea97096af4529b0ea3b903d182144c1310 (patch)
tree7dc8cebc458175627c7dd809ec67d6c2288cc221 /template/assemblies
parent82a054e876424cf055793ae653fbb40b6d5e58ec (diff)
experimental program view
Diffstat (limited to 'template/assemblies')
-rw-r--r--template/assemblies/program.phtml38
1 files changed, 38 insertions, 0 deletions
diff --git a/template/assemblies/program.phtml b/template/assemblies/program.phtml
new file mode 100644
index 0000000..9575d8c
--- /dev/null
+++ b/template/assemblies/program.phtml
@@ -0,0 +1,38 @@
+<?
+$room = 'Grossbaustelle BER';
+
+foreach($program[$room] as $event)
+{
+ $width += intval(isset($event['duration']) ? $event['duration'] : 5);
+}
+?>
+
+<div class="program">
+ <div class="now">now</div>
+ <div class="inner" style="width: <?=$width * $GLOBALS['CONFIG']['SCHEDULE_SCALE'] ?>px">
+ <? foreach($program[$room] as $event): ?>
+ <? if(@$event['special'] == 'daychange'): ?>
+
+ <div class="block daychange" style="width: <?=h($GLOBALS['CONFIG']['SCHEDULE_SCALE'])?>px"></div>
+
+ <? elseif(@$event['special'] == 'gap'): ?>
+
+ <div class="block daychange" style="width: <?=h($event['duration'] * $GLOBALS['CONFIG']['SCHEDULE_SCALE'])?>px"></div>
+
+ <? elseif(@$event['special']): ?>
+
+ <div class="block <?=h($event['special'])?>" style="width: <?=h($event['duration'] * $GLOBALS['CONFIG']['SCHEDULE_SCALE'])?>px">
+ <h3><?=h($event['title'])?></h3>
+ </div>
+
+ <? else: ?>
+
+ <div class="block event" style="width: <?=h($event['duration'] * $GLOBALS['CONFIG']['SCHEDULE_SCALE'])?>px">
+ <h3><?=h($event['title'])?></h3>
+ </div>
+
+ <? endif ?>
+
+ <? endforeach ?>
+ </div>
+</div>