diff options
author | MaZderMind | 2014-11-03 21:53:30 +0100 |
---|---|---|
committer | MaZderMind | 2014-11-07 00:17:40 +0100 |
commit | db0a85ea97096af4529b0ea3b903d182144c1310 (patch) | |
tree | 7dc8cebc458175627c7dd809ec67d6c2288cc221 /template/assemblies | |
parent | 82a054e876424cf055793ae653fbb40b6d5e58ec (diff) |
experimental program view
Diffstat (limited to '')
-rw-r--r-- | template/assemblies/program.phtml | 38 |
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> |