*** empty log message ***

This commit is contained in:
sebastian 2005-03-14 17:38:33 +00:00
parent c7ba993c18
commit 5f5a6c65b5
25 changed files with 280 additions and 91 deletions

View file

@ -10,7 +10,7 @@
{$editItem.type|capitalize}
</h4>
{if $editItem.type == 'audioclip'}
{if $editItem.type == 'audioclip' || $editItem.type == 'file'}
<input type="button" onClick="showData()" value="Data">
<input type="button" onClick="showMData()" value="MData">
<div id="div_Data">

View file

@ -1,4 +1,4 @@
{PL->getActiveId assign=_PL_activeId}
{assign var="_PL_activeId" value=$PL->getActiveId()}
<div id="objects">
{include file="sub/x.tpl"}
@ -8,7 +8,7 @@
<tr bgcolor="{cycle values='#eeeeee, #dadada"'}">
<th>Title</th>
<th>Type</th>
<td align="right" width='70%'> &nbsp;
<td align="right" width='70%'> &nbsp;
{if $START.pid}<a href="{$UI_BROWSER}?act=fileList&id={$START.pid}">[go up]</a>{/if}
</td>
</tr>

View file

@ -1,8 +1,9 @@
<form name="PL">
<table border="0">
<tr><th colspan="4">active Playlist: {$PL.children.0.children.0.content}</th></tr>
<tr align="center" style="background-color: {cycle values='#eeeeee, #dadada'}"><td></td><td>Title</td><td>Duration</td><td>Type</td></tr>
{PL->getFlat assign='FLAT'}
{foreach from=$FLAT key='pos' item='i'}
{foreach from=$PL->getFlat() key='pos' item='i'}
<!-- {$n++} -->
<tr onMouseOver="highlight()"
onMouseOut="darklight()"
@ -42,5 +43,7 @@
<td><input type="button" value="Save" onClick="hpopup('{$UI_HANDLER}?act=PL.save')"></td>
<td><input type="button" value="Revert" onClick="hpopup('{$UI_HANDLER}?act=PL.revert')"></td>
<td><input type="button" value="Release" onClick="hpopup('{$UI_HANDLER}?act=PL.release')"></td>
<td><input type="button" value="Delete" onClick="hpopup('{$UI_HANDLER}?act=PL.delete')"></td>
<td><input type="button" value="MData" onClick="location.href='{$UI_BROWSER}?act=PL.editMetaData'"></td>
</tr>
</table>
</form>

View file

@ -0,0 +1,18 @@
{assign var="_form" value=$PL->metaDataForm()}
{assign var="dynform" value=$_form.main}
{$_form.langswitch}
{include file="sub/dynForm_plain.tpl"}
<script type="text/javascript">
{literal}
function switchMDataLang()
{
if (validate_editMetaData(document.forms['editMetaData'])) {
document.forms['editMetaData'].elements['langid'].value = document.forms['langswitch'].elements['langid'].value;
document.forms['editMetaData'].submit();
}
return false;
}
{/literal}
</script>

View file

@ -1,32 +1,22 @@
{*Smarty template*}
<div class="standardFrame">
{include file="sub/x.tpl"}
<center>
<form name="PL">
<table border="0">
<tr><th colspan="4">Simple Playlist Management</th></tr>
<h4>Simple Playlist Management</h4>
{PL->get assign='PL'}
{PL->reportLookedPL assign="_looked"}
{if is_array($PL)} {* already activated Playlist *}
{include file="playlist/editor.tpl"}
{else} {* no active Playlist *}
<tr>
<td colspan="4">
{if $_looked}
<input type="button" value="Unlook crashed Playlist" onClick="hpopup('{$UI_HANDLER}?act=PL.unlook')">
{else}
<input type="button" value="New empty Playlist" onClick="hpopup('{$UI_HANDLER}?act=PL.create')">
{/if}
</td>
</tr>
{if is_array($PL->get())} {* already activated Playlist *}
{if $PL_editMetaData}
{include file="playlist/metadata.tpl"}
{else}
{include file="playlist/editor.tpl"}
{/if}
{else} {* no active Playlist *}
{if $PL->reportLookedPL()}
<input type="button" value="Unlook crashed Playlist" onClick="hpopup('{$UI_HANDLER}?act=PL.unlook')">
{else}
<input type="button" value="New empty Playlist" onClick="hpopup('{$UI_HANDLER}?act=PL.create')">
{/if}
{/if}
</table>
</form>
</div>
</center>
</div>

View file

@ -0,0 +1,7 @@
onMouseOver="highlight()"
onMouseOut="darklight()"
onContextmenu="return menu('{$_hour}', {$moreContextBefore} 'SCHEDULER.schedule' {$moreContextAfter})"
{assign var="moreContextBefore" value=""}
{assign var="moreContextAfter" value=""}

View file

@ -1,16 +1,74 @@
{$SCHEDULER->buildDay()}
{assign var="_usage" value=$SCHEDULER->getDayUsage($SCHEDULER->curr.year, $SCHEDULER->curr.month, $SCHEDULER->curr.day)}
<table border=1>
{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>
</tr>
{/foreach}
</table>
{* timing-ansich
{assign var="_divisor" value=180}
{assign var="_minwidth" value=10}
<table border=1>
<tr>
<td valign="top">
<b>{$SCHEDULER->curr.year}-{$SCHEDULER->curr.month}-{$SCHEDULER->curr.day}</b></a>
{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="600" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}" {include file="scheduler/contextmenu.tpl"}>
{if $i.length/$_divisor > $_minwidth}
<small>
<b>{$i.entry.title}</b>
{$i.entry.start|regex_replace:"/[0-9]+T/":""}-{$i.entry.end|regex_replace:"/[0-9]+T/":""}
{$i.entry.creator}
</small>
{/if}
</td>
{else}
<td bgcolor="#97bacf" width="600" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}">
</td>
{/if}
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
*}

View file

@ -24,7 +24,7 @@
<td>&nbsp;</td>
{else}
<td width="80">
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&day={$_Day.day}')">{$_Day.day}
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&view=day&&day={$_Day.day}')"><b>{$_Day.day}</b>
<div><img src="img/percentage_red.png" width="{if $percentage>50}{$percentage}{elseif $percentage>0}{$percentage+2}{else}0{/if}%" height="10" border="0"><img src="img/percentage_blue.png" width="{if $percentage>50}{$null-$percentage+100}{elseif $percentage>0}{$NULL-$percentage-2+100}{else}100{/if}%" height="10" border="0"></div>
</td>
{/if}

View file

@ -7,7 +7,7 @@
<tr>
<td rowspan="2"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&week=--')"><<</a> </td>
{foreach from=$SCHEDULER->Week item="_Weekday"}
<td>{$_Weekday.label.full}</td>
<th>{$_Weekday.label.full}</th>
{/foreach}
<td rowspan="2"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&week=%2B%2B')">>></a></td>
</tr>
@ -17,29 +17,29 @@
<td valign="top">
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&view=day&day={$_Day.day}&month={$_Day.month}&year={$_Day.year}')"><b>{$_Day.day}</b></a>
{assign var="_oneday" value=$SCHEDULER->getDayTiming($_Day.year, $_Day.month, $_Day.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="pink" width="80" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}">
{if $i.length/$_divisor > $_minwidth}
<small>
Start:{$i.entry.start|regex_replace:"/[0-9]+T/":""}
<br>
End:&nbsp;&nbsp;{$i.entry.end|regex_replace:"/[0-9]+T/":""}
</small>
{/if}
</td>
{else}
<td bgcolor="lightblue" width="80" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}">
</td>
{assign var="_oneday" value=$SCHEDULER->getDayTiming($_Day.year, $_Day.month, $_Day.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="100" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}" onMouseover="" onMouseout="">
{if $i.length/$_divisor > $_minwidth}
<small>
<b>{$i.entry.title}</b>
<br>
{$i.entry.start|regex_replace:"/[0-9]+T/":""|truncate:5:""}-{$i.entry.end|regex_replace:"/[0-9]+T/":""|truncate:5:""}
<br>
{$i.entry.creator}
</small>
{/if}
</tr>
{/foreach}
</table>
</td>
{else}
<td bgcolor="#97bacf" width="100" height="{$SCHEDULER->_oneOrMore($i.length/$_divisor)}">
</td>
{/if}
</tr>
{/foreach}
</table>
</td>
{/foreach}

View file

@ -1,4 +1,4 @@
{PL->getActiveId assign=_PL_activeId}
{assign var="_PL_activeId" value=$PL->getActiveId()}
<div id="scratchpad">
<center><b>%%ScratchPad%%</b>

View file

@ -1,4 +1,4 @@
{PL->getActiveId assign=_PL_activeId}
{assign var="_PL_activeId" value=$PL->getActiveId()}
onMouseOver="highlight()"
onMouseOut="darklight()"