*** empty log message ***
This commit is contained in:
parent
b366007b44
commit
cc2a640933
|
@ -0,0 +1,3 @@
|
||||||
|
<script type="text/javascript">
|
||||||
|
opener.location.href="{$UI_BROWSER}";
|
||||||
|
</script>
|
|
@ -1,7 +1,7 @@
|
||||||
{*Smarty template*}
|
{*Smarty template*}
|
||||||
|
|
||||||
<div id="scratchpad">
|
<div id="scratchpad">
|
||||||
<center><b>ScratchPad</b></center>
|
<center><b>ScratchPad</b>
|
||||||
|
|
||||||
{if is_array($SCRATCHPAD)}
|
{if is_array($SCRATCHPAD)}
|
||||||
<form name="SP">
|
<form name="SP">
|
||||||
|
@ -16,11 +16,16 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{foreach from=$SCRATCHPAD item=i}
|
{foreach from=$SCRATCHPAD item=i}
|
||||||
<tr style="background-color: {cycle values='#eeeeee, #dadada'}">
|
<tr style="background-color: {cycle values='#eeeeee, #dadada'}"
|
||||||
|
onMouseOver="highlight()" onMouseOut="darklight()"
|
||||||
|
onContextmenu="return menu('{$i.id}'
|
||||||
|
{if $i.type == ('audioclip' || 'webstream')}
|
||||||
|
,'PL.addItem', 'PL.newUsingItem', 'SP.removeItem', 'delete'
|
||||||
|
{/if}
|
||||||
|
)"
|
||||||
|
>
|
||||||
<td><input type="checkbox" name="{$i.id}"></td>
|
<td><input type="checkbox" name="{$i.id}"></td>
|
||||||
<td>
|
<td>{$i.title}</a></td>
|
||||||
<a href="#" onContextmenu="return contextmenu('{$i.id}', '{$i.type}')">{$i.title}</a>
|
|
||||||
</td>
|
|
||||||
<td>{$i.duration}</td>
|
<td>{$i.duration}</td>
|
||||||
<td>{$i.type} </td>
|
<td>{$i.type} </td>
|
||||||
<th><a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.removeItem&id={$i.id}', 'SP')">X</th>
|
<th><a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.removeItem&id={$i.id}', 'SP')">X</th>
|
||||||
|
@ -35,40 +40,4 @@
|
||||||
</form>
|
</form>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
</center>
|
||||||
{literal}
|
|
||||||
<script type="text/javascript">
|
|
||||||
function SP_submit()
|
|
||||||
{
|
|
||||||
var href = '{/literal}{$UI_HANDLER}?act=SP.removeItem{literal}';
|
|
||||||
var n;
|
|
||||||
|
|
||||||
for (n=0; n < (document.forms['SP'].elements.length-1); n++) {
|
|
||||||
if (document.forms['SP'].elements[n].checked) {
|
|
||||||
href = href + '&id[]=' + document.forms['SP'].elements[n].name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
hpopup(href, 'SP');
|
|
||||||
}
|
|
||||||
|
|
||||||
function SP_switchAll()
|
|
||||||
{
|
|
||||||
var n;
|
|
||||||
|
|
||||||
for (n=0; n < document.forms['SP'].elements.length; n++) {
|
|
||||||
if (document.forms['SP'].elements[n].type == 'checkbox') {
|
|
||||||
document.forms['SP'].elements[n].checked = document.forms['SP'].elements['all'].checked;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function SP_clearAll()
|
|
||||||
{
|
|
||||||
if (confirm("{/literal}{tra 0='Are you sure to clear ScratchPad?'}{literal}")) {
|
|
||||||
document.forms['SP'].elements['all'].checked = true;
|
|
||||||
SP_switchAll();
|
|
||||||
SP_submit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
{/literal}
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
{*Smarty template*}
|
||||||
|
|
||||||
|
{literal}
|
||||||
|
<script type="text/javascript">
|
||||||
|
function SP_submit()
|
||||||
|
{
|
||||||
|
var href = '{/literal}{$UI_HANDLER}?act=SP.removeItem{literal}';
|
||||||
|
var n;
|
||||||
|
|
||||||
|
for (n=0; n < (document.forms['SP'].elements.length-1); n++) {
|
||||||
|
if (document.forms['SP'].elements[n].checked) {
|
||||||
|
href = href + '&id[]=' + document.forms['SP'].elements[n].name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
hpopup(href, 'SP');
|
||||||
|
}
|
||||||
|
|
||||||
|
function SP_switchAll()
|
||||||
|
{
|
||||||
|
var n;
|
||||||
|
|
||||||
|
for (n=0; n < document.forms['SP'].elements.length; n++) {
|
||||||
|
if (document.forms['SP'].elements[n].type == 'checkbox') {
|
||||||
|
document.forms['SP'].elements[n].checked = document.forms['SP'].elements['all'].checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function SP_clearAll()
|
||||||
|
{
|
||||||
|
if (confirm("{/literal}{tra 0='Are you sure to clear ScratchPad?'}{literal}")) {
|
||||||
|
document.forms['SP'].elements['all'].checked = true;
|
||||||
|
SP_switchAll();
|
||||||
|
SP_submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{/literal}
|
Loading…
Reference in New Issue