*** empty log message ***

This commit is contained in:
sebastian 2005-04-20 13:48:31 +00:00
parent 9126d82bd2
commit 212f97ea93
37 changed files with 391 additions and 199 deletions

View file

@ -20,13 +20,19 @@
{literal}
var MData_confirmChangeVisited = false;
function MData_confirmChange(element)
{
//if (MData_confirmChangeVisited) return true;
MData_confirmChangeVisited = true;
if (confirm("Are you sure you want to change this information?") == false) element.blur();
}
if (MData_confirmChangeVisited) return true;
if (confirm("##Are you sure you want to change existing metadata?##")) {
MData_confirmChangeVisited = true;
return true;
} else {
document.forms['langswitch'].elements['target_langid'].focus();
return false;
}
}
function MData_loadLang()
{

View file

@ -18,8 +18,8 @@
{if count($structure.listdata)}
{foreach from=$structure.listdata item=i}
{assign var="_listen_gunid" value=$i.gunid}
<tr class="{cycle values='blue1, blue2'}" {assign var="moreContextBefore" value=", 'SP.addItem'"}{include file="sub/contextmenu.tpl"}>
<td>
<tr class="{cycle values='blue1, blue2'}" {assign var="moreContextBefore" value=", 'SP.addItem'"}>
<td {include file="sub/contextmenu.tpl"}>
<span id="ID{$i.id}">
{if $i.type|lower eq 'folder'}
<a href="{$UI_BROWSER}?act=fileList&id={$i.id}" >[{$i.title|truncate:30}]</b>
@ -32,7 +32,7 @@
{/if}
</span>
</td>
<td>{$i.type|lower|capitalize}</td>
<td {include file="sub/contextmenu.tpl"}>{$i.type|lower|capitalize}</td>
<td style="border: 0">
<!-- &nbsp;<a href="javascript:frename('{$i.name}', '{$i.id}')">[rename]</a> -->
&nbsp;<a href="javascript:fmove('{$i.id}', '.')">##move##</a>

View file

@ -1,5 +1,5 @@
{include file="sub/mouseover.tpl"}
onClick="return contextmenu('{$i.id}'
onClick="hidealttextnow(); return contextmenu('{$i.id}'
, 'SP.addItem'
{if $i.type|lower == 'audioclip'}

View file

@ -1,5 +1,3 @@
{*Smarty template*}
{include file="header.tpl"}
{include file="masterpanel.tpl"}
<!--div class="copyright">LiveSupport 0.9 "Fritz" &copy;2005 <a href="http://www.mdlf.org" target="_blank">MDLF</a> - maintained and distributed under GNU/GPL by <a href="http://www.campware.org" target="_blank">CAMPWARE</a></div-->

View file

@ -1,6 +1,3 @@
{*Smarty template*}
{include file="statusbar.tpl"}
{if $showMenuTop}

View file

@ -1,2 +1,2 @@
{include file="sub/mouseover.tpl"}
onClick="return contextmenu('{$i.attrs.id}', {if $i.type|lower == "audioclip"}'listen', '{$i.gunid}', {/if} 'PL.removeItem')"
onClick="hidealttextnow(); return contextmenu('{$i.attrs.id}', {if $i.type|lower == "audioclip"}'listen', '{$i.gunid}', {/if} 'PL.removeItem')"

View file

@ -63,13 +63,13 @@
<input type="button" class="button_large" onClick="collector_clearAll('PL', 'PL.removeItem')" value="##Clear Playlist##" />
</div>
<div class="container_button">
<input type="button" class="button_large" value="##Save Playlist##" onClick="hpopup('{$UI_HANDLER}?act=PL.save')">
<input type="button" class="button_large" value="##Revert to Saved##" onClick="hpopup('{$UI_HANDLER}?act=PL.revert')">
<input type="button" class="button_large" value="##Delete Playlist##" onClick="popup('{$UI_BROWSER}?popup[]=PL.deleteActive', 'PL.deleteActive', 400, 200)">
<input type="button" class="button_large" value="##Save Playlist##" onClick="hpopup('{$UI_HANDLER}?act=PL.save')">
<input type="button" class="button_large" value="##Revert to Saved##" onClick="popup('{$UI_BROWSER}?popup[]=PL.confirmRevert', 'PL.revertChanges', 400, 50)">
<input type="button" class="button_large" value="##Delete Playlist##" onClick="popup('{$UI_BROWSER}?popup[]=PL.confirmDelete', 'PL.deleteActive', 400, 50)">
</div>
<div class="container_button">
<input type="button" class="button_large" value="##Save and Close##" onClick="hpopup('{$UI_HANDLER}?act=PL.release')">
<input type="button" class="button_large" value="##Metadata##" onClick="location.href='{$UI_BROWSER}?act=PL.editMetaData'">
<input type="button" class="button_large" value="##Close Playlist##" onClick="popup('{$UI_BROWSER}?popup[]=PL.confirmRelease', 'PL.confirmRelease', 400, 50)">
<input type="button" class="button_large" value="##Metadata##" onClick="location.href='{$UI_BROWSER}?act=PL.editMetaData'">
</div>
</div>

View file

@ -14,11 +14,18 @@
{literal}
var MData_confirmChangeVisited = false;
function MData_confirmChange(element)
{
if (MData_confirmChangeVisited) return true;
MData_confirmChangeVisited = true;
if (confirm("##Are you sure you want to change existing metadata?##") == false) element.blur();
if (confirm("##Are you sure you want to change existing metadata?##")) {
MData_confirmChangeVisited = true;
return true;
} else {
document.forms['langswitch'].elements['target_langid'].focus();
return false;
}
}
function MData_submit()

View file

@ -1,6 +1,18 @@
{include file="popup/header.tpl"}
{include file="sub/dynForm_plain.tpl"}
<table height="100%" width="100%">
<tr>
<td style="border: 0">
<center>
<table width="100%" height="100%">
<tr><td style="border: 0">
{include file="sub/dynForm_plain.tpl}
</td></tr>
</table>
</center>
</td>
</tr>
</table>
<script type="text/javascript">
{literal}

View file

@ -1,13 +1,26 @@
{include file="popup/header.tpl"}
<center>
{if $SCHEDULER->_copyPlFromSP()}
{assign var="dynform" value=$SCHEDULER->getScheduleForm()}
{include file="sub/dynForm_plain.tpl}
<table height="100%" width="100%">
<tr>
<td style="border: 0">
<center>
<table width="100%" height="100%">
<tr><td style="border: 0">
{include file="sub/dynForm_plain.tpl}
</td></tr>
</table>
</center>
</td>
</tr>
</table>
{else}
<center>
##You need to have at least one inactive playlist on ScratchPad to schedule it.##
</center>
{/if}
</center>
</body>

View file

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

View file

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

View file

@ -6,6 +6,13 @@
<title>LIVESUPPORT</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles_popup.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
{UIBROWSER->getAlertMsg assign='alertMsg'}
{if $alertMsg}
alert('{$alertMsg}');
{/if}
</script>
</head>
<body>

View file

@ -1,6 +1,19 @@
{include file="popup/header.tpl"}
{include file="sub/dynForm_plain.tpl}
<table height="100%" width="100%">
<tr>
<td style="border: 0">
<center>
<table width="100%" height="100%">
<tr><td style="border: 0">
{include file="sub/dynForm_plain.tpl}
</td></tr>
</table>
</center>
</td>
</tr>
</table>
</body>
</html>

View file

@ -1,22 +1,12 @@
{include file="popup/header.tpl"}
<table height="100%" width="100%">
<tr>
<td style="border: 0">
<center>
<form>
<table width="100%" height="100%">
<tr><td style="border: 0">{tra 0='Are you sure to logout $1' 1=$USER.login}</td></tr>
<tr><td align="right" style="border: 0">
<input type="button" value="{tra 0=OK}" onclick="javascript: location.href='{$UI_HANDLER}?act={$logouttype}'">&nbsp;
<input type="button" value="{tra 0=Cancel}" onclick="javascript: window.close()">
</td></tr>
</table>
</form>
</center>
</td>
</tr>
</table>
<center>
<b>{tra 0='Are you sure to logout $1?' 1=$USER.login}</b>
<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;
</center>
</body>
</html>

View file

@ -1,2 +1,2 @@
{include file="sub/mouseover.tpl"}
onClick="return contextmenu('scheduleId={$i.scheduleid}', 'SCHEDULER.removeItem')"
onClick="hidealttextnow(); return contextmenu('scheduleId={$i.scheduleid}', 'SCHEDULER.removeItem')"

View file

@ -6,7 +6,7 @@
alttextHeight = 0;
function showalttext(param) {
var alttextHeader = "<div class='alttext' id='alttext' style='position: absolute; top: -250; left: 0; z-index: 99'>";
var alttextHeader = "<div class='alttext' id='alttext' style='position: absolute; top: -1000; left: 0; z-index: 99'>";
var alttextFooter = "</div>";
var alttextHtml = '';
@ -57,7 +57,7 @@
}
function hidealttextnow() {
document.getElementById('alttext').style.top = -250;
document.getElementById('alttext').style.top = -1000;
}
</script>

View file

@ -26,9 +26,9 @@
var nn=prompt('New folder name:');
if(nn==null) return;
location.href='{$UI_HANDLER}?id={$START.id}&act=newFolder&newname='+nn;
{literal}}{/literal}
{literal}}
{literal}
function popup(url, name, width, height) // popup in center of perent window
{
var screenX;
@ -49,6 +49,7 @@
Pwidth = window.innerWidth;
Pheight = window.innerHeight;
}
url = url + '&is_popup=1';
screenX = (Xpos + Pwidth/2 - width/2);
screenY = (Ypos + Pheight/2 - height/2);

View file

@ -14,7 +14,7 @@
function contextmenu(param) {
var contextmenuHeader = "<div class='contextmenu' id='contextmenu' style='position: absolute; top: -250; left: 0; z-index: 100'>" +
var contextmenuHeader = "<div class='contextmenu' id='contextmenu' style='position: absolute; top: -1000; left: 0; z-index: 100'>" +
"<ul>";
var contextmenuFooter = "</ul></div>";
var contextmenuHtml = '';
@ -33,7 +33,7 @@
break;
case "PL.release":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=PL.release')\" "+oF+">&nbsp;##Save and Close this Playlist##&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=PL.confirmRelease', 'PL.confirmRelease', 400, 50)\" "+oF+">&nbsp;##Close playlist##&nbsp;</a></li>";
break;
case "PL.addItem":
@ -45,7 +45,7 @@
break;
case "PL.activate":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href=\"javascript: hpopup('{$UI_HANDLER}?act=PL.activate&id="+param+"')\" "+oF+">&nbsp;##Activate this Playlist##&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href=\"javascript: hpopup('{$UI_HANDLER}?act=PL.activate&id="+param+"')\" "+oF+">&nbsp;##Edit Playlist##&nbsp;</a></li>";
break;
case "PL.create":
@ -86,7 +86,7 @@
break;
case "delete":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=deleteItem&id="+param+"', 'deleteItem', 400, 200)\"')"+oF+">&nbsp;##Delete File##&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=deleteItem&id="+param+"', 'deleteItem', 400, 50)\"')"+oF+">&nbsp;##Delete File##&nbsp;</a></li>";
break;
case "fileList":
@ -94,11 +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', 400, 200)\"')"+oF+">&nbsp;##Insert Playlist here##&nbsp;</a></li>";
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>";
break;
case "SCHEDULER.removeItem":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=SCHEDULER.removeItem&"+param+"', 'Schedule', 400, 200)\"')"+oF+">&nbsp;##Remove Playlist##&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=SCHEDULER.removeItem&"+param+"', 'Schedule', 400, 50)\"')"+oF+">&nbsp;##Remove Playlist##&nbsp;</a></li>";
break;
{literal}
}
@ -136,7 +136,7 @@
contextmenuStatus = 0;
}
}
</script>

View file

@ -1,4 +1,4 @@
{UIBROWSER->getMDataArr id=$i.id assign="_metaarr"}
onMouseover="showalttext('<h3>##{$i.type|lower|capitalize}## {if $_PL_activeId == $i.id}##(activated)##{/if}</h3>{foreach from=$_metaarr.metadata key=_key item=_item}{$_key}: {$_item}<br>{/foreach}')"
onMouseover="showalttext('<h3>##{$i.type|lower|capitalize}## {if ($_PL_activeId && $_PL_activeId == $i.id)}##(activated)##{/if}</h3>{foreach from=$_metaarr.metadata key=_key item=_item}{$_key}: {$_item}<br>{/foreach}')"
onMouseout="hidealttext()"
{assign var="_metaarr" value=NULL}

View file

@ -2,10 +2,10 @@
{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", "350", "150");'/>
<input type="button" class="button" value="{tra 0=logout}" onClick='javascript: popup("{$UI_BROWSER}?popup[]=logout", "name", "400", "50");'/>
{*
<input type="button" class="button" value="{tra 0='sign over'}" onClick='javascript: popup("{$UI_BROWSER}?popup[]=signover_1", "name", "350", "150");'/>
<input type="button" class="button" value="{tra 0='sign over'}" onClick='javascript: popup("{$UI_BROWSER}?popup[]=signover_1", "name", "400", "150");'/>
*}
{else}
<input type="button" class="button" value="{tra 0=login}" onClick='javascript: popup("{$UI_BROWSER}?popup[]=login", "name", "350", "150");'/>
<input type="button" class="button" value="{tra 0=login}" onClick='javascript: popup("{$UI_BROWSER}?popup[]=login", "name", "400", "150");'/>
{/if}