73 lines
3.2 KiB
Smarty
Executable file
73 lines
3.2 KiB
Smarty
Executable file
{$SCHEDULER->buildDay()}
|
|
{assign var="_scale" value=$SCHEDULER->getDayTimingScale()}
|
|
{assign var="_entrys" value=$SCHEDULER->getDayEntrys()}
|
|
|
|
<div class="content">
|
|
<div class="container_elements">
|
|
<h1>##Daily View##</h1>
|
|
<div class="clearer"> </div>
|
|
<p>##{$SCHEDULER->curr.monthname}## {$SCHEDULER->curr.day}, {$SCHEDULER->curr.year}</p>
|
|
|
|
<form name="SCHEDULER">
|
|
<table class="scheduler_day" style="width: 606px;">
|
|
|
|
{* Tag vor/zurück + code um heutigen Tag abzufragen
|
|
<tr>
|
|
<th><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&day=--')"><<</a></th>
|
|
<th colspan="3" {if $SCHEDULER->curr.isToday} bgcolor="grey"{/if}>##{$SCHEDULER->curr.dayname}##, ##{$SCHEDULER->curr.year}##-##{$SCHEDULER->curr.month}##-##{$SCHEDULER->curr.day}##</th>
|
|
<th><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&day=%2B%2B')">>></a></th>
|
|
</tr>
|
|
*}
|
|
|
|
<tr class="blue_head">
|
|
|
|
{* Multi-action checkboxen, die brauchen wir aber höchstens bei den Einträgen um mehere auf einmal zu löschen ?
|
|
<td style="width: 30px"><input type="checkbox" name="all" onClick="collector_switchAll('SCHEDULER')"></td>
|
|
*}
|
|
|
|
<td style="border-left: 1px solid #ccc; width: 95px">##Time##</td>
|
|
<td style="width: 481px; border-right: 0;">##Show Info##</td>
|
|
</tr>
|
|
|
|
{foreach from=$_scale item="_hour"}
|
|
|
|
{if is_array($_entrys[$_hour])}
|
|
<tr class="blue1">
|
|
<td style="border-left: 1px solid #ccc; cursor: pointer" {include file="scheduler/day_additem.tpl"}>{$_hour|string_format:"%02d"}:00</td>
|
|
<td style="border-right: 1px solid #ccc;">
|
|
|
|
{foreach from=$_entrys[$_hour] item="i"} {* hier werden die Einträge welche in der jeweil. h beginnen durchlaufen *}
|
|
<div {include file="scheduler/removeitem.tpl"}>
|
|
<img src="img/playlist.png" border="0" {include file="sub/alttext.tpl"}>
|
|
|
|
<b>{$i.title}</b>
|
|
{$i.start}-{$i.end}
|
|
{$i.creator}
|
|
</div>
|
|
{include file="scheduler/between_additem.tpl"}
|
|
{/foreach}
|
|
|
|
</td>
|
|
</tr>
|
|
{else}
|
|
<tr class="blue2" {include file="scheduler/day_additem.tpl"}>
|
|
<td style="border-left: 1px solid #ccc;">{$_hour|string_format:"%02d"}:00</td>
|
|
<td style="border-right: 1px solid #ccc;"></td>
|
|
</tr>
|
|
{/if}
|
|
{/foreach}
|
|
</table>
|
|
</form>
|
|
|
|
{* Multiaction buttons
|
|
<div class="container_button" style="float: right; margin-top: 10px;">
|
|
<input type="button" class="button_large" value="Edit Playlist" />
|
|
<input type="button" class="button_large" value="Delete Playlist" />
|
|
<input type="button" class="button_large" value="Add Playlist" />
|
|
</div>
|
|
<div class="clearer"> </div>
|
|
*}
|
|
|
|
</div>
|
|
</div>
|
|
|