*** empty log message ***
This commit is contained in:
parent
6a1b2d9ecd
commit
7d5f6d89bc
8 changed files with 49 additions and 32 deletions
|
@ -2,15 +2,19 @@
|
|||
<!-- start file -->
|
||||
<div class="container_elements" style="width: 607px;">
|
||||
<h1>##File Management##</h1>
|
||||
|
||||
{if $showTree}
|
||||
{include file="file/tree.tpl"}
|
||||
{/if}
|
||||
|
||||
{if $showObjects}
|
||||
{include file="file/objects.tpl"}
|
||||
{/if}
|
||||
|
||||
{if $permissions}
|
||||
{include file="file/permissions.tpl"}
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
<!-- end file -->
|
||||
</div>
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
{assign var="_PL_activeId" value=$PL->getActiveId()}
|
||||
|
||||
<div class="contenttabnav">
|
||||
{if $START.pid}
|
||||
<a href="{$UI_BROWSER}?act=fileList&id={$START.pid}">##go up##</a>
|
||||
{/if}
|
||||
|
||||
{include file="file/path.tpl"}
|
||||
|
||||
</div>
|
||||
<div class="head" style="width:555px; height: 21px;">
|
||||
</div>
|
||||
<div class="container_table" style="width: 555px; height: auto;">
|
||||
|
||||
<div class="container_table" style="width: 555px; height: auto;">
|
||||
<table>
|
||||
<tr class="blue_head">
|
||||
<td style="width: 130px">Title</td>
|
||||
<td style="width: 250px">Title</td>
|
||||
<td style="width: 50px">Type</td>
|
||||
<td style="width: 447px; border: 0">
|
||||
<td style="width: 255px; border: 0">
|
||||
</td>
|
||||
</tr>
|
||||
{if count($structure.listdata)}
|
||||
|
@ -38,17 +42,20 @@
|
|||
<a href="javascript:fmove('{$i.id}', '.')">##move##</a>
|
||||
<a href="javascript:fcopy('{$i.id}', '.')">##copy##</a>
|
||||
<a href="{$UI_BROWSER}?act=permissions&id={$i.id}">##permissions##</a>
|
||||
<!--
|
||||
{*
|
||||
{if ($delOverride eq $i.id)}
|
||||
<a href="{$UI_HANDLER}?act=delete&id={$i.id}&delOverride={$i.id}"
|
||||
onClick="return confirm('Really delete non empty Folder "{$i.name}" now?')">[DEL]</a>
|
||||
{else}
|
||||
<a href="{$UI_HANDLER}?act=delete&id={$i.id}"
|
||||
onClick="return confirm('Delete "{$i.name}"?')">[DEL]</a>
|
||||
{/if} -->
|
||||
{/if}
|
||||
*}
|
||||
{if $i.type|lower != 'folder'}
|
||||
{*
|
||||
<a href="{$UI_BROWSER}?act=getMData&id={$i.id}">##MDataXML##</a>
|
||||
<!-- <a href="{$UI_BROWSER}?act=editMetaData&id={$i.id}">[MDataForm]</a> -->
|
||||
<a href="{$UI_BROWSER}?act=editMetaData&id={$i.id}">[MDataForm]</a>
|
||||
|
||||
{if $i.type|lower eq 'webstream'}
|
||||
<a href="{$UI_BROWSER}?act=editWebstream&id={$i.id}">##Edit##</a>
|
||||
{elseif $i.type|lower eq 'audioclip'}
|
||||
|
@ -56,14 +63,16 @@
|
|||
<a href="{$CONFIG.accessRawAudioUrl}?id={$i.gunid}&sessid={$START.sessid}">##Access##</a>
|
||||
<a href="{$UI_BROWSER}?act=_analyzeFile&id={$i.id}">##RawAnalyze##</a>
|
||||
{/if}
|
||||
<!-- <a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$i.id}', '2SP')">[SP]</a> -->
|
||||
|
||||
<a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$i.id}', '2SP')">[SP]</a>
|
||||
*}
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr><td align="center" width="400">##No objects##</td></tr>
|
||||
<tr><td align="center" colspan="3" width="400" style="border:0">##No objects##</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{*Smarty template*}
|
||||
|
|
||||
<a href="{$UI_BROWSER}?act=fileList&id={$structure.id}&tree=Y">##Tree view##</a>
|
||||
|
|
||||
##Folder Structure##:
|
||||
{foreach from=$structure.pathdata item=o}
|
||||
<a href="{$UI_BROWSER}?act=fileList&id={$structure.id}&tree=Y">##Tree view##</a>
|
||||
|
|
||||
##Folder Structure##:
|
||||
{foreach from=$structure.pathdata item=o}
|
||||
{if $o.type == 'Folder'}
|
||||
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">##{$o.name}##</a> /
|
||||
{else}
|
||||
##{$o.name}##
|
||||
{/if}
|
||||
{/foreach}
|
||||
<a href="javascript:newFolder()">##new folder##</a>
|
||||
{/foreach}
|
||||
|
||||
<input type="button" class="button" value="##new folder##" onclick="newFolder()">
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
<div id="permissions">
|
||||
{include file="sub/x.tpl"}
|
||||
<div class="container_table" style="width: 555px; height: auto;">
|
||||
<table>
|
||||
<tr class="blue_head">
|
||||
<td style="width: 300px">Subject Name</td>
|
||||
<td style="width: 50px">Action</td>
|
||||
<td style="width: 50px;">Permission</td>
|
||||
<td style="width: 50px; border: 0"> </td>
|
||||
</tr>
|
||||
|
||||
<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)}
|
||||
|
||||
|
@ -21,14 +25,14 @@
|
|||
<td>{* <a <?php #href="alibExPList.php?id=<?php echo$row['subj']? >"?>> *}{$row.login}</a></td>
|
||||
<td>{$row.action}</td>
|
||||
<td>{$da}</td>
|
||||
<td>
|
||||
<td style="border:0">
|
||||
<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>
|
||||
<tr><td colspan="4" style="border:0">No Permissions set.</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="copyright">LiveSupport 0.9.1 build 2005-05-07 ©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>
|
||||
<div class="copyright">LiveSupport 1.0 rc ©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>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -348,11 +348,11 @@ class uiBase
|
|||
}
|
||||
|
||||
|
||||
function _getMDataValue($id, $key, $langid=FALSE)
|
||||
function _getMDataValue($id, $key, $langid=FALSE, $deflangid=UI_DEFAULT_LANGID)
|
||||
{
|
||||
if (!$langid) $langid = $_SESSION['langid'];
|
||||
|
||||
if (is_array($arr = $this->gb->getMDataValue($id, $key, $this->sessid, $langid))) {
|
||||
if (is_array($arr = $this->gb->getMDataValue($id, $key, $this->sessid, $langid, $deflangid))) {
|
||||
$value = current($arr);
|
||||
return $value['value'];
|
||||
}
|
||||
|
|
|
@ -353,7 +353,7 @@ class uiBrowser extends uiBase {
|
|||
$mask['pages'][$key][$k]['element'] = $key.'___'.$this->_formElementEncode($v['element']);
|
||||
$mask['pages'][$key][$k]['attributes'] = array_merge($mask['pages'][$key][$k]['attributes'], array('onChange' => "spread(this, '".$this->_formElementEncode($v['element'])."')"));
|
||||
## load data from GreenBox
|
||||
if ($getval = $this->_getMDataValue($id, $v['element'], $langid)) {
|
||||
if ($getval = $this->_getMDataValue($id, $v['element'], $langid, NULL)) {
|
||||
$mask['pages'][$key][$k]['default'] = $getval;
|
||||
$mask['pages'][$key][$k]['attributes']['onFocus'] = 'MData_confirmChange(this)';
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ class uiHandler extends uiBase {
|
|||
$folderId = $formdata['folderId'];
|
||||
|
||||
if ($this->gb->getFileType($folderId) != 'Folder') {
|
||||
$this->_retMsg ('Target is not Folder');
|
||||
$this->_retMsg('Target is not Folder');
|
||||
$this->redirUrl = UI_BROWSER."?act=fileList";
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ class uiHandler extends uiBase {
|
|||
$this->redirUrl = UI_BROWSER."?act=editFile&id=".$id;
|
||||
return FALSE;
|
||||
}
|
||||
$tmpgunid = md5(microtime().$_SERVER['SERVER_ADD3R'].rand()."org.mdlf.livesupport");
|
||||
$tmpgunid = md5(microtime().$_SERVER['SERVER_ADDR'].rand()."org.mdlf.livesupport");
|
||||
$ntmp = $this->gb->bufferDir.'/'.$tmpgunid;
|
||||
move_uploaded_file($formdata['mediafile']['tmp_name'], $ntmp);
|
||||
chmod($ntmp, 0664);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue