*** empty log message ***
This commit is contained in:
parent
ca91953f79
commit
111b62de37
11 changed files with 84 additions and 34 deletions
|
@ -1,4 +1,4 @@
|
|||
{assign var="_form" value=$PL->metaDataForm()}
|
||||
{assign var="_form" value=$PL->metaDataForm($PL_id)}
|
||||
{assign var="dynform" value=$_form.main}
|
||||
|
||||
{$_form.langswitch}
|
||||
|
|
|
@ -4,13 +4,11 @@
|
|||
<center>
|
||||
<h4>Simple Playlist Management</h4>
|
||||
|
||||
{if is_array($PL->get())} {* already activated Playlist *}
|
||||
{if $PL_editMetaData}
|
||||
{if $PL_editMetaData}
|
||||
{include file="playlist/metadata.tpl"}
|
||||
{else}
|
||||
{include file="playlist/editor.tpl"}
|
||||
{/if}
|
||||
{else} {* no active Playlist *}
|
||||
{elseif is_array($PL->get())} {* already activated Playlist *}
|
||||
{include file="playlist/editor.tpl"}
|
||||
{else} {* no active Playlist *}
|
||||
{if $PL->reportLookedPL()}
|
||||
<input type="button" value="Unlook crashed Playlist" onClick="hpopup('{$UI_HANDLER}?act=PL.unlook')">
|
||||
{else}
|
||||
|
|
|
@ -1,26 +1,47 @@
|
|||
{$SCHEDULER->buildDay()}
|
||||
{assign var="_usage" value=$SCHEDULER->getDayUsage($SCHEDULER->curr.year, $SCHEDULER->curr.month, $SCHEDULER->curr.day)}
|
||||
{assign var="_divisor" value=70}
|
||||
|
||||
<table border=1>
|
||||
<table border=1 bgcolor="#97bacf">
|
||||
{foreach from=$SCHEDULER->Day item="_Hour"}
|
||||
{assign var="_hour" value=$_Hour.hour}
|
||||
{assign var="_border" value=""}
|
||||
|
||||
<tr>
|
||||
<td {include file="scheduler/contextmenu.tpl"}>
|
||||
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&hour={$_Hour.hour}')">{$_Hour.hour}
|
||||
</td>
|
||||
<td>
|
||||
{foreach from=$_usage item="_entry"}
|
||||
{if $_entry.timestamp >= $_Hour.timestamp && $_entry.timestamp < $_Hour.timestamp+3600}
|
||||
{$_border}
|
||||
<b>{$_entry.title}</b>
|
||||
{$_entry.start|regex_replace:"/[0-9]+T/":""|truncate:5:""}-{$_entry.end|regex_replace:"/[0-9]+T/":""|truncate:5:""}
|
||||
{$_entry.creator}
|
||||
{assign var="_border" value="|"}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<td {include file="scheduler/contextmenu.tpl"} bgcolor="#d4d0c8" height="50" valign="top">
|
||||
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&hour={$_Hour.hour}')">{$_Hour.hour}</a>
|
||||
</td>
|
||||
|
||||
{if !$_one}
|
||||
<td rowspan="24">
|
||||
{assign var="_oneday" value=$SCHEDULER->getDayTiming($SCHEDULER->curr.year, $SCHEDULER->curr.month, $SCHEDULER->curr.day)}
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
{foreach from=$_oneday item="i"}
|
||||
<tr height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}" style="font-family: monospace" valign="top">
|
||||
{if is_array($i.entry)}
|
||||
<td bgcolor="#ffcacb" width="10" onMouseover="" onMouseout=""></td>
|
||||
{else}
|
||||
<td bgcolor="#97bacf" width="10"></td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
</td>
|
||||
{assign var="_one" value=TRUE}
|
||||
{/if}
|
||||
|
||||
{foreach from=$_usage item="_entry"}
|
||||
{if $_entry.pos >= $_Hour.timestamp && $_entry.pos < $_Hour.timestamp+3600}
|
||||
<td rowspan="{$_entry.span}" valign="top" bgcolor="#ffcacb">
|
||||
<b>{$_entry.title}</b>
|
||||
{$_entry.start|regex_replace:"/[0-9]+T/":""|truncate:5:""}-{$_entry.end|regex_replace:"/[0-9]+T/":""|truncate:5:""}
|
||||
<br>
|
||||
{$_entry.creator}
|
||||
<br>
|
||||
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.removeFromScheduleMethod&gunid={$_entry.id}');"><b>X</b></a>
|
||||
</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
|
||||
{/foreach}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
{foreach from=$_oneday item="i"}
|
||||
<tr height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}" style="font-family: monospace" valign="top">
|
||||
{if is_array($i.entry)}
|
||||
<td bgcolor="#ffcacb" width="100" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}" onMouseover="" onMouseout="">
|
||||
<td bgcolor="#ffcacb" width="100" onMouseover="" onMouseout="">
|
||||
{if $i.length/$_divisor > $_minwidth}
|
||||
<small>
|
||||
<b>{$i.entry.title}</b>
|
||||
|
@ -34,7 +34,7 @@
|
|||
{/if}
|
||||
</td>
|
||||
{else}
|
||||
<td bgcolor="#97bacf" width="100" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}">
|
||||
<td bgcolor="#97bacf" width="100">
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
|
|
|
@ -60,6 +60,10 @@ function menu(param) {
|
|||
menuHtml = menuHtml + "<tr><td><a class='menu' href='#' onClick=\"popup('{/literal}{$UI_BROWSER}{literal}?popup[]=PL.changeTransition&type=fadeOut&id="+param+"', 'PL', '350', '100')\" "+oF+"> Change Fadeout </a></td></tr>";
|
||||
break;
|
||||
|
||||
case "PL.editMetaData":
|
||||
menuHtml = menuHtml + "<tr><td><a class='menu' href='{/literal}{$UI_BROWSER}{literal}?act=PL.editMetaData&id="+param+"'"+oF+"> Edit MData </a></td></tr>";
|
||||
break;
|
||||
|
||||
case "SP.addItem":
|
||||
menuHtml = menuHtml + "<tr><td><a class='menu' href='#' onClick=\"hpopup('{/literal}{$UI_HANDLER}{literal}?act=SP.addItem&id="+param+"')\" "+oF+"> Add to ScratchPad </a></td></tr>";
|
||||
break;
|
||||
|
|
|
@ -21,7 +21,7 @@ onContextmenu="return menu('{$i.id}'
|
|||
, 'PL.addItem', 'delete'
|
||||
{/if}
|
||||
{else}
|
||||
, 'PL.activate', 'PL.create', 'edit', 'delete'
|
||||
, 'PL.activate', 'PL.create', 'PL.editMetaData', 'delete'
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue