*** empty log message ***

This commit is contained in:
sebastian 2005-03-03 21:50:36 +00:00
parent 1f515360a2
commit 10aa25755c
8 changed files with 47 additions and 13 deletions

View File

@ -81,19 +81,21 @@ if ($uiBrowser->userid) {
$Smarty->assign('uploadform', $uiBrowser->uploadFileM($ui_fmask['uploadFileM'], $uiBrowser->id));
break;
case "editItem":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$Smarty->assign('editItem', array('type' => $uiBrowser->type=='webstream' ? 'webstream' : 'file', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid));
break;
case "editFile":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$Smarty->assign('editItem', array('type' => 'file', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid));
break;
case "editWebstream":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$Smarty->assign('editItem', array('type' => 'webstream', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid));
break;
case "SEARCH":
$Smarty->assign('searchForm', $uiBrowser->SEARCH->searchForm($uiBrowser->id, $ui_fmask));
$Smarty->assign('showLibrary', TRUE);

View File

@ -1,5 +1,19 @@
<div class="standardFrame">
{include file="sub/x.tpl"}
<h4>
{if $editItem.id}
Edit
{else}
New
{/if}
{if $editItem.type == 'file'}
File
{else}
Webstream
{/if}
</h4>
<input type="button" onClick="showData()" value="Data">
<input type="button" onClick="showMData()" value="MData">
@ -42,9 +56,15 @@ function showMData()
document.getElementById('div_Data').style.visibility='hidden';
document.getElementById('div_Data').style.height='0';
}
{/literal}
document.getElementById('div_MData').style.visibility='hidden';
document.getElementById('div_MData').style.height='0';
{if $editItem.id}
document.getElementById('div_Data').style.visibility='hidden';
document.getElementById('div_Data').style.height='0';
{else}
document.getElementById('div_MData').style.visibility='hidden';
document.getElementById('div_MData').style.height='0';
{/if}
</script>
{/literal}

View File

@ -9,7 +9,7 @@
<th>Title</th>
<th>Type</th>
<td align="right" width='70%'> &nbsp;
{if $START.pid}<a href="{$UI_BROWSER}?act=fileBrowse&id={$GLOBALS.pid}">[go up]</a>{/if}
{if $START.pid}<a href="{$UI_BROWSER}?act=fileList&id={$START.pid}">[go up]</a>{/if}
</td>
</tr>
{if count($structure.listdata)}
@ -18,7 +18,7 @@
<td align="center">
<span id="ID{$i.id}">
{if $i.type eq 'Folder'}
<a href="{$UI_BROWSER}?act=fileBrowse&id={$i.id}" >[{$i.title|truncate:30}]</b>
<a href="{$UI_BROWSER}?act=fileList&id={$i.id}" >[{$i.title|truncate:30}]</b>
{else}
{if $_PL_activeId == $i.id}
<b>{$i.title|truncate:30}</b>

View File

@ -1,12 +1,13 @@
{*Smarty template*}
<div id="path">
<a href="{$UI_BROWSER}?act=fileBrowse&id={$structure.id}&tree=Y" class="button">[Tree view]</a>&nbsp;&nbsp;|&nbsp;
<a href="{$UI_BROWSER}?act=fileList&id={$structure.id}&tree=Y" class="button">[Tree view]</a>&nbsp;&nbsp;|&nbsp;
{foreach from=$structure.pathdata item=o}
{if $o.type == 'Folder'}
<a href="{$UI_BROWSER}?act=fileBrowse&id={$o.id}">[{$o.name}]</a> /
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">[{$o.name}]</a> /
{else}
{$o.name}
{/if}
{/foreach}
</div>
<a href="javascript:newFolder()">[::new&nbsp;folder::]</a>
</div>

View File

@ -12,7 +12,7 @@
{str_repeat str='&nbsp;&nbsp;' count=$o.level}
{/if}
{if $o.type == 'Folder'}
<a href="{$UI_BROWSER}?act=fileBrowse&id={$o.id}">[{$o.name}]</a>
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">[{$o.name}]</a>
{else}
{$o.name}
{/if}

View File

@ -4,7 +4,6 @@
<a href="{$UI_BROWSER}?folderId={$START.fid}&act=editFile">[Upload]</a>
<a href="{$UI_BROWSER}?folderId={$START.fid}&act=editWebstream">[Stream]</a>
<a href="{$UI_BROWSER}?id={$START.fid}&act=PL.simpleManagement">[PL Editor]</a>
<a href="javascript:newFolder()">[Create&nbsp;new&nbsp;folder]</a>
<a href="{$UI_BROWSER}?id={$START.id}&act=SEARCH">[Search]</a>
<a href="{$UI_BROWSER}?id={$START.id}&act=BROWSE">[Browse]</a>
<a href="{$UI_BROWSER}?id={$START.id}&act=subjects">{tra 0='[User/Groups]'}</a>

View File

@ -68,9 +68,17 @@ function menu(id) {
menuHtml = menuHtml + "<tr><td><a class='menu' href='#' onClick=\"hpopup('{/literal}{$UI_HANDLER}{literal}?act=SP.removeItem&id="+id+"')\" "+oF+">&nbsp;Remove from Scratchpad&nbsp;</a></td></tr>";
break;
case "edit":
menuHtml = menuHtml + "<tr><td><a class='menu' href='{/literal}{$UI_BROWSER}{literal}?act=editItem&id="+id+"'"+oF+">&nbsp;Edit&nbsp;</a></td></tr>";
break;
case "delete":
menuHtml = menuHtml + "<tr><td><a class='menu' href='{/literal}{$UI_HANDLER}{literal}?act=delete&id="+id+"'"+oF+">&nbsp;!Delete Item!&nbsp;</a></td></tr>";
break;
case "fileList":
menuHtml = menuHtml + "<tr><td><a class='menu' href='{/literal}{$UI_BROWSER}{literal}?act=fileList&id="+id+"'"+oF+">&nbsp;List Folder&nbsp;</a></td></tr>";
break;
}
}
document.getElementById('menucontainer').innerHTML = menuHeader + menuHtml + menuFooter;

View File

@ -10,7 +10,7 @@ onContextmenu="return menu('{$i.id}'
{else}
, 'PL.create'
{/if}
, 'delete'
, 'edit', 'delete'
{/if}
{if ($i.type == 'playlist')}
@ -24,6 +24,10 @@ onContextmenu="return menu('{$i.id}'
, 'PL.activate', 'PL.create', 'delete'
{/if}
{/if}
{if ($i.type == 'Folder')}
, 'fileList', 'delete'
{/if}
{$moreContextAfter}
)"