*** empty log message ***

This commit is contained in:
sebastian 2005-06-11 14:15:58 +00:00
parent 6a1b2d9ecd
commit 7d5f6d89bc
8 changed files with 49 additions and 32 deletions

View file

@ -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>

View file

@ -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;">&nbsp; <div class="head" style="width:555px; height: 21px;">&nbsp;
</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"> &nbsp; <td style="width: 255px; border: 0"> &nbsp;
</td> </td>
</tr> </tr>
{if count($structure.listdata)} {if count($structure.listdata)}
@ -38,17 +42,20 @@
&nbsp;<a href="javascript:fmove('{$i.id}', '.')">##move##</a> &nbsp;<a href="javascript:fmove('{$i.id}', '.')">##move##</a>
&nbsp;<a href="javascript:fcopy('{$i.id}', '.')">##copy##</a> &nbsp;<a href="javascript:fcopy('{$i.id}', '.')">##copy##</a>
&nbsp;<a href="{$UI_BROWSER}?act=permissions&id={$i.id}">##permissions##</a> &nbsp;<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 &quot;{$i.name}&quot; now?')">[DEL]</a> onClick="return confirm('Really delete non empty Folder &quot;{$i.name}&quot; 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 &quot;{$i.name}&quot;?')">[DEL]</a> onClick="return confirm('Delete &quot;{$i.name}&quot;?')">[DEL]</a>
{/if} --> {/if}
*}
{if $i.type|lower != 'folder'} {if $i.type|lower != 'folder'}
{*
&nbsp;<a href="{$UI_BROWSER}?act=getMData&id={$i.id}">##MDataXML##</a> &nbsp;<a href="{$UI_BROWSER}?act=getMData&id={$i.id}">##MDataXML##</a>
<!-- &nbsp;<a href="{$UI_BROWSER}?act=editMetaData&id={$i.id}">[MDataForm]</a> --> &nbsp;<a href="{$UI_BROWSER}?act=editMetaData&id={$i.id}">[MDataForm]</a>
{if $i.type|lower eq 'webstream'} {if $i.type|lower eq 'webstream'}
&nbsp;<a href="{$UI_BROWSER}?act=editWebstream&id={$i.id}">##Edit##</a> &nbsp;<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 @@
&nbsp;<a href="{$CONFIG.accessRawAudioUrl}?id={$i.gunid}&sessid={$START.sessid}">##Access##</a> &nbsp;<a href="{$CONFIG.accessRawAudioUrl}?id={$i.gunid}&sessid={$START.sessid}">##Access##</a>
&nbsp;<a href="{$UI_BROWSER}?act=_analyzeFile&id={$i.id}">##RawAnalyze##</a> &nbsp;<a href="{$UI_BROWSER}?act=_analyzeFile&id={$i.id}">##RawAnalyze##</a>
{/if} {/if}
<!-- &nbsp;<a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$i.id}', '2SP')">[SP]</a> -->
&nbsp;<a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$i.id}', '2SP')">[SP]</a>
*}
{/if} {/if}
&nbsp; &nbsp;
</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>

View file

@ -1,4 +1,3 @@
{*Smarty template*}
&nbsp;&nbsp;|&nbsp;&nbsp; &nbsp;&nbsp;|&nbsp;&nbsp;
<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>
&nbsp;&nbsp;|&nbsp;&nbsp; &nbsp;&nbsp;|&nbsp;&nbsp;
@ -10,4 +9,5 @@
##{$o.name}## ##{$o.name}##
{/if} {/if}
{/foreach} {/foreach}
<a href="javascript:newFolder()">##new&nbsp;folder##</a> &nbsp;&nbsp;&nbsp;
<input type="button" class="button" value="##new&nbsp;folder##" onclick="newFolder()">

View file

@ -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">&nbsp;</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 &quot;{$da}&nbsp;{$row.action}&quot; for user {$row.login}?')">[remove]</a> onClick="return confirm('Delete permission &quot;{$da}&nbsp;{$row.action}&quot; 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>

View file

@ -1,4 +1,4 @@
<div class="copyright">LiveSupport 0.9.1 build 2005-05-07 &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> <div class="copyright">LiveSupport 1.0 rc &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>
</div> </div>
</body> </body>
</html> </html>

View file

@ -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'];
} }

View file

@ -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)';
} }

View file

@ -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);