*** 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 -->
|
<!-- start file -->
|
||||||
<div class="container_elements" style="width: 607px;">
|
<div class="container_elements" style="width: 607px;">
|
||||||
<h1>##File Management##</h1>
|
<h1>##File Management##</h1>
|
||||||
|
|
||||||
{if $showTree}
|
{if $showTree}
|
||||||
{include file="file/tree.tpl"}
|
{include file="file/tree.tpl"}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $showObjects}
|
{if $showObjects}
|
||||||
{include file="file/objects.tpl"}
|
{include file="file/objects.tpl"}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $permissions}
|
{if $permissions}
|
||||||
{include file="file/permissions.tpl"}
|
{include file="file/permissions.tpl"}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- end file -->
|
<!-- end file -->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,18 +1,22 @@
|
||||||
{assign var="_PL_activeId" value=$PL->getActiveId()}
|
{assign var="_PL_activeId" value=$PL->getActiveId()}
|
||||||
|
|
||||||
<div class="contenttabnav">
|
<div class="contenttabnav">
|
||||||
{if $START.pid}
|
{if $START.pid}
|
||||||
<a href="{$UI_BROWSER}?act=fileList&id={$START.pid}">##go up##</a>
|
<a href="{$UI_BROWSER}?act=fileList&id={$START.pid}">##go up##</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{include file="file/path.tpl"}
|
{include file="file/path.tpl"}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="head" style="width:555px; height: 21px;">
|
<div class="head" style="width:555px; height: 21px;">
|
||||||
</div>
|
</div>
|
||||||
<div class="container_table" style="width: 555px; height: auto;">
|
|
||||||
|
<div class="container_table" style="width: 555px; height: auto;">
|
||||||
<table>
|
<table>
|
||||||
<tr class="blue_head">
|
<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: 50px">Type</td>
|
||||||
<td style="width: 447px; border: 0">
|
<td style="width: 255px; border: 0">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{if count($structure.listdata)}
|
{if count($structure.listdata)}
|
||||||
|
@ -38,17 +42,20 @@
|
||||||
<a href="javascript:fmove('{$i.id}', '.')">##move##</a>
|
<a href="javascript:fmove('{$i.id}', '.')">##move##</a>
|
||||||
<a href="javascript:fcopy('{$i.id}', '.')">##copy##</a>
|
<a href="javascript:fcopy('{$i.id}', '.')">##copy##</a>
|
||||||
<a href="{$UI_BROWSER}?act=permissions&id={$i.id}">##permissions##</a>
|
<a href="{$UI_BROWSER}?act=permissions&id={$i.id}">##permissions##</a>
|
||||||
<!--
|
{*
|
||||||
{if ($delOverride eq $i.id)}
|
{if ($delOverride eq $i.id)}
|
||||||
<a href="{$UI_HANDLER}?act=delete&id={$i.id}&delOverride={$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>
|
onClick="return confirm('Really delete non empty Folder "{$i.name}" now?')">[DEL]</a>
|
||||||
{else}
|
{else}
|
||||||
<a href="{$UI_HANDLER}?act=delete&id={$i.id}"
|
<a href="{$UI_HANDLER}?act=delete&id={$i.id}"
|
||||||
onClick="return confirm('Delete "{$i.name}"?')">[DEL]</a>
|
onClick="return confirm('Delete "{$i.name}"?')">[DEL]</a>
|
||||||
{/if} -->
|
{/if}
|
||||||
|
*}
|
||||||
{if $i.type|lower != 'folder'}
|
{if $i.type|lower != 'folder'}
|
||||||
|
{*
|
||||||
<a href="{$UI_BROWSER}?act=getMData&id={$i.id}">##MDataXML##</a>
|
<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'}
|
{if $i.type|lower eq 'webstream'}
|
||||||
<a href="{$UI_BROWSER}?act=editWebstream&id={$i.id}">##Edit##</a>
|
<a href="{$UI_BROWSER}?act=editWebstream&id={$i.id}">##Edit##</a>
|
||||||
{elseif $i.type|lower eq 'audioclip'}
|
{elseif $i.type|lower eq 'audioclip'}
|
||||||
|
@ -56,14 +63,16 @@
|
||||||
<a href="{$CONFIG.accessRawAudioUrl}?id={$i.gunid}&sessid={$START.sessid}">##Access##</a>
|
<a href="{$CONFIG.accessRawAudioUrl}?id={$i.gunid}&sessid={$START.sessid}">##Access##</a>
|
||||||
<a href="{$UI_BROWSER}?act=_analyzeFile&id={$i.id}">##RawAnalyze##</a>
|
<a href="{$UI_BROWSER}?act=_analyzeFile&id={$i.id}">##RawAnalyze##</a>
|
||||||
{/if}
|
{/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}
|
{/if}
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{else}
|
{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}
|
{/if}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{*Smarty template*}
|
|
||||||
|
|
|
|
||||||
<a href="{$UI_BROWSER}?act=fileList&id={$structure.id}&tree=Y">##Tree view##</a>
|
<a href="{$UI_BROWSER}?act=fileList&id={$structure.id}&tree=Y">##Tree view##</a>
|
||||||
|
|
|
|
||||||
##Folder Structure##:
|
##Folder Structure##:
|
||||||
{foreach from=$structure.pathdata item=o}
|
{foreach from=$structure.pathdata item=o}
|
||||||
{if $o.type == 'Folder'}
|
{if $o.type == 'Folder'}
|
||||||
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">##{$o.name}##</a> /
|
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">##{$o.name}##</a> /
|
||||||
{else}
|
{else}
|
||||||
##{$o.name}##
|
##{$o.name}##
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
<a href="javascript:newFolder()">##new folder##</a>
|
|
||||||
|
<input type="button" class="button" value="##new folder##" onclick="newFolder()">
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
<div id="permissions">
|
<div class="container_table" style="width: 555px; height: auto;">
|
||||||
{include file="sub/x.tpl"}
|
<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)}
|
{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>{* <a <?php #href="alibExPList.php?id=<?php echo$row['subj']? >"?>> *}{$row.login}</a></td>
|
||||||
<td>{$row.action}</td>
|
<td>{$row.action}</td>
|
||||||
<td>{$da}</td>
|
<td>{$da}</td>
|
||||||
<td>
|
<td style="border:0">
|
||||||
<a href="{$UI_HANDLER}?act=removePerm&permid={$row.permid}&oid={$permissions.id}&id={$permissions.id}"
|
<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>
|
onClick="return confirm('Delete permission "{$da} {$row.action}" for user {$row.login}?')">[remove]</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{else}
|
{else}
|
||||||
<tr><td colspan="4">No Permissions set.</td></tr>
|
<tr><td colspan="4" style="border:0">No Permissions set.</td></tr>
|
||||||
{/if}
|
{/if}
|
||||||
</table>
|
</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>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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 (!$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);
|
$value = current($arr);
|
||||||
return $value['value'];
|
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]['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'])."')"));
|
$mask['pages'][$key][$k]['attributes'] = array_merge($mask['pages'][$key][$k]['attributes'], array('onChange' => "spread(this, '".$this->_formElementEncode($v['element'])."')"));
|
||||||
## load data from GreenBox
|
## 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]['default'] = $getval;
|
||||||
$mask['pages'][$key][$k]['attributes']['onFocus'] = 'MData_confirmChange(this)';
|
$mask['pages'][$key][$k]['attributes']['onFocus'] = 'MData_confirmChange(this)';
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ class uiHandler extends uiBase {
|
||||||
$folderId = $formdata['folderId'];
|
$folderId = $formdata['folderId'];
|
||||||
|
|
||||||
if ($this->gb->getFileType($folderId) != 'Folder') {
|
if ($this->gb->getFileType($folderId) != 'Folder') {
|
||||||
$this->_retMsg ('Target is not Folder');
|
$this->_retMsg('Target is not Folder');
|
||||||
$this->redirUrl = UI_BROWSER."?act=fileList";
|
$this->redirUrl = UI_BROWSER."?act=fileList";
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ class uiHandler extends uiBase {
|
||||||
$this->redirUrl = UI_BROWSER."?act=editFile&id=".$id;
|
$this->redirUrl = UI_BROWSER."?act=editFile&id=".$id;
|
||||||
return FALSE;
|
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;
|
$ntmp = $this->gb->bufferDir.'/'.$tmpgunid;
|
||||||
move_uploaded_file($formdata['mediafile']['tmp_name'], $ntmp);
|
move_uploaded_file($formdata['mediafile']['tmp_name'], $ntmp);
|
||||||
chmod($ntmp, 0664);
|
chmod($ntmp, 0664);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue