*** empty log message ***
This commit is contained in:
parent
cdabb1b704
commit
633629e24b
12 changed files with 175 additions and 852 deletions
10
livesupport/modules/htmlUI/var/html/templates/fileBrowse/fileBrowse.tpl
Executable file
10
livesupport/modules/htmlUI/var/html/templates/fileBrowse/fileBrowse.tpl
Executable file
|
@ -0,0 +1,10 @@
|
|||
{if $showTree}
|
||||
{include file="fileBrowse/tree.tpl"}
|
||||
{/if}
|
||||
{if $showObjects}
|
||||
{include file="fileBrowse/objects.tpl"}
|
||||
{/if}
|
||||
|
||||
{if $permissions}
|
||||
{include file="fileBrowse/permissions.tpl"}
|
||||
{/if}
|
58
livesupport/modules/htmlUI/var/html/templates/fileBrowse/objects.tpl
Executable file
58
livesupport/modules/htmlUI/var/html/templates/fileBrowse/objects.tpl
Executable file
|
@ -0,0 +1,58 @@
|
|||
<div id="objects">
|
||||
{include file="sub/x.tpl"}
|
||||
|
||||
<table border="0" align="center">
|
||||
{if $GLOBALS.pid}
|
||||
<tr><td colspan="2" align="right"><a href="{$UI_BROWSER}?act=fileBrowse&id={$GLOBALS.pid}">[go up]</a_</td></tr>
|
||||
{/if}
|
||||
{if count($structure.listdata)}
|
||||
{foreach from=$structure.listdata item=o}
|
||||
<tr bgcolor="{cycle values='#eeeeee, #dadada"'}">
|
||||
<td>
|
||||
<span id="ID{$o.id}">
|
||||
{if $structure.tree}
|
||||
{str_repeat str=' ' count=$o.level}
|
||||
{else}
|
||||
{str_repeat str=' ' count=3}
|
||||
{/if}
|
||||
<a {if $o.type eq 'Folder'}href="{$UI_BROWSER}?act=fileBrowse&id={$o.id}" {/if}>[{$o.title}]</a>:{$o.type}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="javascript:frename('{$o.name}', '{$o.id}')">[rename]</a>
|
||||
<a href="javascript:fmove('{$o.id}', '.')">[move]</a>
|
||||
<a href="javascript:fcopy('{$o.id}', '.')">[copy]</a>
|
||||
<a href="{$UI_BROWSER}?act=permissions&id={$o.id}">[permissions]</a>
|
||||
<br>
|
||||
|
||||
{if ($delOverride eq $o.id)}
|
||||
<a href="{$UI_HANDLER}?act=delete&id={$o.id}&delOverride={$o.id}"
|
||||
onClick="return confirm('Really delete non empty Folder "{$o.name}" now?')">[DEL]</a>
|
||||
{else}
|
||||
<a href="{$UI_HANDLER}?act=delete&id={$o.id}"
|
||||
onClick="return confirm('Delete "{$o.name}"?')">[DEL]</a>
|
||||
{/if}
|
||||
{if $o.type != 'Folder'}
|
||||
<a href="{$UI_BROWSER}?act=getFile&id={$o.id}">[Access]</a>
|
||||
<a href="{$UI_BROWSER}?act=getMData&id={$o.id}">[vMData]</a>
|
||||
<a href="{$UI_BROWSER}?act=_analyzeFile&id={$o.id}">[Analyze]</a>
|
||||
|
||||
{if $o.type eq 'webstream'}
|
||||
<a href="{$UI_BROWSER}?act=addWebstream&id={$o.id}&replace=1">[Replace]</a>
|
||||
{elseif $o.type eq 'audioclip'}
|
||||
<a href="{$UI_BROWSER}?act=uploadFile&id={$o.id}&replace=1">[Replace]</a>
|
||||
{/if}
|
||||
<a href="{$UI_BROWSER}?act=editMetaData&id={$o.id}">[eMData]</a>
|
||||
<a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$o.id}', '2SP')">[SP]</a>
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr><td align="center" width="400">No objects</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
</div>
|
12
livesupport/modules/htmlUI/var/html/templates/fileBrowse/path.tpl
Executable file
12
livesupport/modules/htmlUI/var/html/templates/fileBrowse/path.tpl
Executable file
|
@ -0,0 +1,12 @@
|
|||
{*Smarty template*}
|
||||
|
||||
<div id="path">
|
||||
<a href="{$UI_BROWSER}?act=fileBrowse&id={$structure.id}&tree=Y" class="button">[Tree view]</a> |
|
||||
{foreach from=$structure.pathdata item=o}
|
||||
{if $o.type == 'Folder'}
|
||||
<a href="{$UI_BROWSER}?act=fileBrowse&id={$o.id}">[{$o.name}]</a> /
|
||||
{else}
|
||||
{$o.name}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
68
livesupport/modules/htmlUI/var/html/templates/fileBrowse/permissions.tpl
Executable file
68
livesupport/modules/htmlUI/var/html/templates/fileBrowse/permissions.tpl
Executable file
|
@ -0,0 +1,68 @@
|
|||
<div id="permissions">
|
||||
{include file="sub/x.tpl"}
|
||||
|
||||
<table id="tbl" border="0" cellpadding="5">
|
||||
<tr><td><b>Subject Name</b></td><td><b>Action</b></td><td><b>Permission</b></td><td></td></tr>
|
||||
|
||||
{if (is_array($permissions.perms) && count($permissions.perms)>0)}
|
||||
|
||||
{foreach from=$permissions.perms item=row}
|
||||
{if $row.type eq 'A'}
|
||||
{assign var='da' value='allow'}
|
||||
{else}
|
||||
{if $row.type eq 'D'}
|
||||
{assign var='da' value='deny'}
|
||||
{else}
|
||||
{assign var='da' value=$row.type}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<tr bgcolor="{cycle values='#eeeeee, #dadada'}">
|
||||
<td>{* <a <?php #href="alibExPList.php?id=<?php echo$row['subj']? >"?>> *}{$row.login}</a></td>
|
||||
<td>{$row.action}</td>
|
||||
<td>{$da}</td>
|
||||
<td>
|
||||
<a href="{$UI_HANDLER}?act=removePerm&permid={$row.permid}&oid={$permissions.id}&id={$permissions.id}"
|
||||
onClick="return confirm('Delete permission "{$da} {$row.action}" for user {$row.login}?')">[remove]</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr><td colspan="4">No Permissions set.</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<form action="{$UI_HANDLER}" method="post">
|
||||
|
||||
Add Permission
|
||||
<select name="allowDeny">
|
||||
<option value="A">Allow</option>
|
||||
<option value="D">Deny</option>
|
||||
</select>
|
||||
|
||||
for Action
|
||||
<select name="permAction">
|
||||
<option value="_all">all</option>
|
||||
{if is_array($permissions.actions)}
|
||||
{foreach from=$permissions.actions item='it'}
|
||||
<option value="{$it}">{$it}</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
|
||||
to Subject
|
||||
<select name="subj">
|
||||
{if is_array($permissions.subjects)}
|
||||
{foreach from=$permissions.subjects item='it'}
|
||||
<option value="{$it.id}">{$it.login}</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
<input type="hidden" name="act" value="addPerm">
|
||||
<input type="hidden" name="id" value="{$permissions.id}">
|
||||
<input type="submit" value="Do it!">
|
||||
</form>
|
||||
|
||||
</div>
|
24
livesupport/modules/htmlUI/var/html/templates/fileBrowse/tree.tpl
Executable file
24
livesupport/modules/htmlUI/var/html/templates/fileBrowse/tree.tpl
Executable file
|
@ -0,0 +1,24 @@
|
|||
{*Smarty template*}
|
||||
|
||||
<div id="tree">
|
||||
|
||||
{if is_array($structure.treedata)}
|
||||
{foreach from=$structure.treedata item=o}
|
||||
<div style="background-color: {cycle values="#eeeeee,#dadada"}">
|
||||
{$structure.treedata.type}
|
||||
{if $structure.treedata.tree}
|
||||
{str_repeat str=' ' count=3}
|
||||
{else}
|
||||
{str_repeat str=' ' count=$o.level}
|
||||
{/if}
|
||||
{if $o.type == 'Folder'}
|
||||
<a href="{$UI_BROWSER}?act=fileBrowse&id={$o.id}">[{$o.name}]</a>
|
||||
{else}
|
||||
{$o.name}
|
||||
{/if}
|
||||
<br>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
</div>
|
3
livesupport/modules/htmlUI/var/html/templates/sub/x.tpl
Executable file
3
livesupport/modules/htmlUI/var/html/templates/sub/x.tpl
Executable file
|
@ -0,0 +1,3 @@
|
|||
<div class="closer">
|
||||
<a href="{$UI_BROWSER}">X</a>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue