*** empty log message ***

This commit is contained in:
sebastian 2005-04-22 10:04:19 +00:00
parent 1b211176e8
commit f9ec998d96
34 changed files with 396 additions and 239 deletions

View file

@ -33,20 +33,25 @@
</table>
</div>
<div class="footer" style="width: 535px;">
<div class="footer" style="width: 530px;">
<div class="counter">
{if $_results.prev}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=prev', 'pager')" id="blue_head">##previous##</a>{/if}
{* {if $_results.prev}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=prev', 'pager')" id="blue_head">##previous##</a>{/if} *}
{foreach from=$_results.pagination item=p key=k}
<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page={$k}', 'pager')" id="blue_head">{$p}</a>
{if $k != $_results.page+1}
<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page={$k}', 'pager')" id="blue_head">{$p}</a>
{else}
{$p}
{/if}
{/foreach}
{if $_results.next}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=next', 'pager')" id="blue_head">##next##</a>{/if}
{* {if $_results.next}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=next', 'pager')" id="blue_head">##next##</a>{/if} *}
&nbsp;&nbsp;
##Count##:&nbsp;{$_results.cnt}&nbsp;&nbsp;
##Page##:&nbsp;&nbsp;{$_results.page+1}&nbsp;&nbsp;
##Range##:&nbsp;{$_criteria.offset+1}-{if ($_criteria.offset+$_criteria.limit)>$_results.cnt}{$_results.cnt}{else}{$_criteria.offset+$_criteria.limit}{/if}
##Range##:&nbsp;{$_criteria.offset+1}-{if ($_criteria.offset+$_criteria.limit)>$_results.cnt}{$_results.cnt}{else}{$_criteria.offset+$_criteria.limit}{/if}&nbsp;
##Count##:&nbsp;{$_results.cnt}&nbsp;
{* ##Page##:&nbsp;&nbsp;{$_results.page+1}&nbsp;&nbsp; *}
</div>
<select name="SEARCHRESULTS_multiaction" onChange="collector_submit('SEARCHRESULTS', this.value)">
@ -58,11 +63,11 @@
<option value="PL.create">##New Playlist using this file(s)##</option>
{/if}
</select>
<script type="text/javascript">
<script type="text/javascript">
document.forms['SEARCHRESULTS'].elements['SEARCHRESULTS_multiaction'].options[0].selected=true;
//document.forms['SEARCHRESULTS'].elements['all'].checked = false;
//collector_switchAll('SEARCHRESULTS')
</script>
</script>
</div>
</form>

View file

@ -1,12 +1,12 @@
{assign var="dynform" value=$simpleSearchForm}
<!-- start library search -->
<div class="container_elements">
<h1>##Library Search##</h1>
<!-- start library search -->
<div class="container_elements">
<h1>##Library Search##</h1>
<form action="ui_handler.php" method="post" name="simplesearch" id="simplesearch"><input name="act" type="hidden" value="SEARCH.simpleSearch" />
<div>
<input size="20" maxlength="50" name="criterium" type="text" style="width: 184px;" />
<input type="button" class="button_small" value="##Go##" />
</div>
</form>
</div>
<!-- end library search -->
<div>
<input size="20" maxlength="50" name="criterium" type="text" style="width: 184px;" />
<input type="button" class="button_small" value="##Go##" onClick="submit()"/>
</div>
</form>
</div>
<!-- end library search -->

View file

@ -4,60 +4,65 @@
{include file="menu.tpl"}
{/if}
{*
{if $structure}
{include file="file/path.tpl"}
{/if}
*}
{if $showScheduler}
<table style="margin:0px;padding:0px;" border="0"><tr><td valign="top" style="margin:0px;padding:0px;border:0">
<div class="content">
{include file="scheduler/calendar.tpl"}
{if $SCRATCHPAD}
{include file="scratchpad/main.tpl"}
{/if}
</div>
</td><td valign="top" style="margin:0px;padding:0px;border:0">
{include file="scheduler/main.tpl"}
</td></tr></table>
{else}
{if $fileList}
{include file="file/list.tpl"}
{/if}
{if $showLibrary}
{include file="library/main.tpl"}
{/if}
{if $showSubjects}
{include file="subjects.tpl"}
{/if}
{if $showFile}
{include file="file/data.tpl"}
{/if}
{if $editItem}
{include file="file/edit.tpl"}
{/if}
{if $changeStationPrefs}
{include file="stationprefs.tpl"}
{/if}
{if $PL_simpleManagement}
{include file="playlist/main.tpl"}
{/if}
<div class="content">
{if $simpleSearchForm}
{include file="library/simpleSearchForm.tpl"}
{/if}
{if $SCRATCHPAD}
{include file="scratchpad/main.tpl"}
{/if}
</div>
{if $USER.userid} {* somebody logged in? *}
{*
{if $structure}
{include file="file/path.tpl"}
{/if}
*}
{if $showScheduler}
<table style="margin:0px;padding:0px;" border="0"><tr><td valign="top" style="margin:0px;padding:0px;border:0">
<div class="content">
{include file="scheduler/calendar.tpl"}
{if $SCRATCHPAD}
{include file="scratchpad/main.tpl"}
{/if}
</div>
</td><td valign="top" style="margin:0px;padding:0px;border:0">
{include file="scheduler/main.tpl"}
</td></tr></table>
{else}
{if $fileList}
{include file="file/list.tpl"}
{/if}
{if $showLibrary}
{include file="library/main.tpl"}
{/if}
{if $showSubjects}
{include file="subjects.tpl"}
{/if}
{if $showFile}
{include file="file/data.tpl"}
{/if}
{if $editItem}
{include file="file/edit.tpl"}
{/if}
{if $changeStationPrefs}
{include file="stationprefs.tpl"}
{/if}
{if $PL_simpleManagement}
{include file="playlist/main.tpl"}
{/if}
<div class="content">
{if $simpleSearchForm}
{include file="library/simpleSearchForm.tpl"}
{/if}
{if $SCRATCHPAD}
{include file="scratchpad/main.tpl"}
{/if}
</div>
{/if}
{/if}

View file

@ -1,7 +1,7 @@
{include file="popup/header.tpl"}
<center>
<b>##Are you sure to delete active Playlist?##</b>
##Are you sure to delete active Playlist?##
<br><br>
<input type="button" class="button" onClick="window.close()" value="Cancel">
<input type="button" class="button" onClick="location.href='{$UI_HANDLER}?act=PL.deleteActive'" value="OK">

View file

@ -1,7 +1,7 @@
{include file="popup/header.tpl"}
<center>
<b>##Do you want to save changes?##</b>
##Do you want to save changes?##
<br><br>
<input type="button" class="button" onClick="window.close()" value="Cancel">
<input type="button" class="button" onClick="location.href='{$UI_HANDLER}?act=PL.revertANDclose'" value="No">

View file

@ -1,7 +1,7 @@
{include file="popup/header.tpl"}
<center>
<b>##Are you sure to discard all changes?##</b>
##Are you sure to discard all changes?##
<br><br>
<input type="button" class="button" onClick="window.close()" value="Cancel">
<input type="button" class="button" onClick="location.href='{$UI_HANDLER}?act=PL.revert'" value="OK">

View file

@ -1,6 +1,6 @@
{include file="popup/header.tpl"}
{if $SCHEDULER->_copyPlFromSP()}
{if $SCHEDULER->copyPlFromSP()}
{assign var="dynform" value=$SCHEDULER->getScheduleForm()}
<table height="100%" width="100%">
<tr>
@ -17,7 +17,7 @@
</table>
{else}
<center>
##You need to have at least one inactive playlist on ScratchPad to schedule it.##
##You need to have at least one non-open playlist on ScratchPad to schedule it.##
</center>
{/if}

View file

@ -1,7 +1,7 @@
{include file="popup/header.tpl"}
<center>
<b>{tra 0='Are you sure to remove playlist "$1"?' 1=$plname}</b>
{tra 0='Are you sure to remove playlist "$1"?' 1=$plname}
<br><br>
<input type="button" class="button" onClick="window.close()" value="Cancel">
<input type="button" class="button" onClick="location.href='{$UI_HANDLER}?act=SCHEDULER.removeItem&scheduleId={$scheduleId}'" value="OK">

View file

@ -1,7 +1,7 @@
{include file="popup/header.tpl"}
<center>
<b>{tra 0='Are you sure to delete file "$1"?' 1=$filename}</b>
{tra 0='Are you sure to delete file "$1"?' 1=$filename}
<br><br>
<input type="button" class="button" onClick="window.close()" value="Cancel">
<input type="button" class="button" onClick="location.href='{$UI_HANDLER}?act=delete&id={$id}'" value="OK">

View file

@ -1,7 +1,7 @@
{include file="popup/header.tpl"}
<center>
<b>{tra 0='Are you sure to logout $1?' 1=$USER.login}</b>
{tra 0='Are you sure to logout $1?' 1=$USER.login}
<br><br>
<input type="button" class="button" value="{tra 0=Cancel}" onclick="javascript: window.close()">
<input type="button" class="button" value="{tra 0=OK}" onclick="javascript: location.href='{$UI_HANDLER}?act={$logouttype}'">&nbsp;

View file

@ -46,7 +46,7 @@
<td class="firstrow" style="border-left: 1px solid #ccc">{$_hour}</td>
{foreach from=$SCHEDULER->Week item="_day"}
{if is_array($_entrys[$_day.day][$_hour])}
<td class="date_full" onClick="return contextmenu('year={$_day.year}&month={$_day.month}&day={$_day.day}&hour={$_hour}', 'SCHEDULER.addItem')"></td>
<td class="date_full" {include file="scheduler/context_week.tpl"}></td>
<td class="day_full">
{foreach from=$_entrys[$_day.day][$_hour] item="i"}
<div {include file="scheduler/actionhandler.tpl"}>
@ -54,11 +54,12 @@
<p>{$i.start|truncate:5:""} - {$i.end|truncate:5:""}</p>
<p>{$i.creator}</p>
</div>
<div style="background-color: #FF6F1F; height: 3px" onClick="return contextmenu('year={$_day.year}&month={$_day.month}&day={$_day.day}&hour={getHour time=$i.end}&minute={getMinute time=$i.end}&second={getSecond time=$i.end}', 'SCHEDULER.addNextItem')" ></div>
{/foreach}
</td>
{else}
<td class="date" onClick="return contextmenu('year={$_day.year}&month={$_day.month}&day={$_day.day}&hour={$_hour}', 'SCHEDULER.addItem')"></td>
<td class="day" onClick="return contextmenu('year={$_day.year}&month={$_day.month}&day={$_day.day}&hour={$_hour}', 'SCHEDULER.addItem')"></td>
<td class="date" {include file="scheduler/context_week.tpl"}></td>
<td class="day" {include file="scheduler/context_week.tpl"}></td>
{/if}
{/foreach}
</tr>

View file

@ -2,7 +2,7 @@
onClick="hidealttextnow(); return contextmenu('{$i.id}'
, 'SP.removeItem'
{if $i.type|lower == 'audioclip'}
{if $i.type === 'audioclip'}
, 'listen', '{$i.gunid}'
{if $_PL_activeId}
, 'PL.addItem'
@ -12,7 +12,7 @@ onClick="hidealttextnow(); return contextmenu('{$i.id}'
, 'edit', 'delete'
{/if}
{if $i.type|lower == 'webstream'}
{if $i.type === 'webstream'}
{if $_PL_activeId}
, 'PL.addItem'
{else}
@ -21,14 +21,14 @@ onClick="hidealttextnow(); return contextmenu('{$i.id}'
, 'edit', 'delete'
{/if}
{if $i.type|lower == 'playlist'}
{if $i.type === 'playlist'}
{if $_PL_activeId}
{if $_PL_activeId == $i.id}
{if $_PL_activeId === $i.id}
, 'PL.release'
{else}
{elseif $PL->isAvailable($i.id) === TRUE}
, 'PL.addItem', 'delete'
{/if}
{else}
{elseif $PL->isAvailable($i.id) === TRUE}
, 'PL.activate', 'PL.create', 'delete'
{/if}
{/if}

View file

@ -1,13 +1,14 @@
{assign var="_PL_activeId" value=$PL->getActiveId()}
{assign var="SCRATCHPAD" value=$SCRATCHPAD->get()}
<!-- start scratch pad -->
{if is_array($SCRATCHPAD)}
<form name="SP">
<div class="container_elements">
<h1>##ScratchPad##</h1>
<div class="head" style="width:255px; height: 21px;">&nbsp;</div>
<div class="container_table" style="width:275px;">
<table style="width:255px;">
<!-- start table header -->
<tr class="blue_head">
<td style="width: 30px"><input type="checkbox" name="all" onClick="collector_switchAll('SP')"></td>
@ -17,26 +18,43 @@
</tr>
<!-- end table header -->
{foreach from=$SCRATCHPAD item=i}
{if count($SCRATCHPAD) >= 1}
{foreach from=$SCRATCHPAD item=i}
<!-- start item -->
<tr class="{cycle values='blue1, blue2'}">
<td><input type="checkbox" class="checkbox" name="{$i.id}"/></td>
<td {include file="scratchpad/actionhandler.tpl"}>
{if $_PL_activeId == $i.id}
<b>{$i.title|truncate:12}</b>
{if $i.type === "playlist"}
{if $PL->isAvailable($i.id) === FALSE}
<div style="text-decoration : line-through">
{else}
<div>
{/if}
{if $_PL_activeId === $i.id}
<div style="font-weight : bold">
{else}
<div>
{/if}
{$i.title|truncate:12}
</div></div>
{else}
{$i.title|truncate:12}
{/if}
</td>
<td {include file="scratchpad/actionhandler.tpl"}>{$i.duration}</td>
<td {include file="scratchpad/actionhandler.tpl"} style="border: 0"><img src="img/{$i.type|lower}.gif" border="0" alt="{$i.type|lower|capitalize}" /></td>
<td {include file="scratchpad/actionhandler.tpl"} style="border: 0"><img src="img/{$i.type}.gif" border="0" alt="{$i.type|capitalize}" /></td>
</tr>
{/foreach}
<!-- end item -->
{/foreach}
{else}
<tr class="blue1">
<td style="border: 0" colspan="4" align="center">##empty##</td>
</tr>
{/if}
</table>
</div>
<div class="footer" style="width:255px;">
<div class="footer" style="width:250px;">
<select name="SP_multiaction" onChange="collector_submit('SP', this.value)">
<option>##Multiple Action:##</option>
<option value="SP.removeItem">##Remove file(s)##</option>
@ -53,9 +71,9 @@
</script>
<a href="#" onClick="collector_clearAll('SP', 'SP.removeItem')" id="blue_head">##Clear##</a>
</div>
</div>
</form>
{/if}
<!-- end scratch pad -->
{assign var="_PL_activeId" value=NULL}

View file

@ -94,7 +94,11 @@
break;
case "SCHEDULER.addItem":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=SCHEDULER.set&"+param+"'); popup('{$UI_BROWSER}?popup[]=SCHEDULER.addItem', 'Schedule', 420, 200)\"')"+oF+">&nbsp;##Insert Playlist here##&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=SCHEDULER.setScheduleTime&"+param+"'); popup('{$UI_BROWSER}?popup[]=SCHEDULER.addItem', 'Schedule', 420, 200)\"')"+oF+">&nbsp;##Insert Playlist here##&nbsp;</a></li>";
break;
case "SCHEDULER.addNextItem":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=SCHEDULER.setScheduleTime&"+param+"'); popup('{$UI_BROWSER}?popup[]=SCHEDULER.addItem', 'Schedule', 420, 200)\"')"+oF+">&nbsp;##Insert Playlist after previous##&nbsp;</a></li>";
break;
case "SCHEDULER.removeItem":

View file

@ -1,5 +1,3 @@
{*Smarty template*}
{if $USER.userid}
<div class="loginname">##Signed in## : {$USER.login}</div>
<input type="button" class="button" value="{tra 0=logout}" onClick='javascript: popup("{$UI_BROWSER}?popup[]=logout", "name", "400", "50");'/>