diff --git a/livesupport/modules/htmlUI/var/templates/file/list.tpl b/livesupport/modules/htmlUI/var/templates/file/list.tpl index fc180c478..5747c320e 100755 --- a/livesupport/modules/htmlUI/var/templates/file/list.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/list.tpl @@ -2,15 +2,19 @@

##File Management##

+ {if $showTree} {include file="file/tree.tpl"} {/if} + {if $showObjects} {include file="file/objects.tpl"} {/if} + {if $permissions} {include file="file/permissions.tpl"} {/if} +
diff --git a/livesupport/modules/htmlUI/var/templates/file/objects.tpl b/livesupport/modules/htmlUI/var/templates/file/objects.tpl index 519c5d980..aefcd1d39 100755 --- a/livesupport/modules/htmlUI/var/templates/file/objects.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/objects.tpl @@ -1,18 +1,22 @@ {assign var="_PL_activeId" value=$PL->getActiveId()} +
{if $START.pid} ##go up## {/if} + {include file="file/path.tpl"} +
 
-
+ +
- + - {if count($structure.listdata)} @@ -38,17 +42,20 @@  ##move##  ##copy##  ##permissions## - + {/if} + *} {if $i.type|lower != 'folder'} + {*  ##MDataXML## - +  [MDataForm] + {if $i.type|lower eq 'webstream'}  ##Edit## {elseif $i.type|lower eq 'audioclip'} @@ -56,14 +63,16 @@  ##Access##  ##RawAnalyze## {/if} - + +  [SP] + *} {/if}   {/foreach} {else} - + {/if}
TitleTitle Type   +  
##No objects##
##No objects##
diff --git a/livesupport/modules/htmlUI/var/templates/file/path.tpl b/livesupport/modules/htmlUI/var/templates/file/path.tpl index e1888a356..8903e4e3f 100755 --- a/livesupport/modules/htmlUI/var/templates/file/path.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/path.tpl @@ -1,13 +1,13 @@ -{*Smarty template*}   |   - ##Tree view## -   |   - ##Folder Structure##: - {foreach from=$structure.pathdata item=o} - {if $o.type == 'Folder'} - ##{$o.name}## / - {else} - ##{$o.name}## - {/if} - {/foreach} -##new folder## +##Tree view## +  |   +##Folder Structure##: +{foreach from=$structure.pathdata item=o} + {if $o.type == 'Folder'} + ##{$o.name}## / + {else} + ##{$o.name}## + {/if} +{/foreach} +    + diff --git a/livesupport/modules/htmlUI/var/templates/file/permissions.tpl b/livesupport/modules/htmlUI/var/templates/file/permissions.tpl index 4aa0a7704..970fa66c8 100755 --- a/livesupport/modules/htmlUI/var/templates/file/permissions.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/permissions.tpl @@ -1,8 +1,12 @@ -
-{include file="sub/x.tpl"} +
+ + + + + + + -
Subject NameActionPermission 
- {if (is_array($permissions.perms) && count($permissions.perms)>0)} @@ -21,14 +25,14 @@ - {/foreach} {else} - + {/if}
Subject NameActionPermission
{* > *}{$row.login} {$row.action} {$da} + [remove]
No Permissions set.
No Permissions set.
diff --git a/livesupport/modules/htmlUI/var/templates/footer.tpl b/livesupport/modules/htmlUI/var/templates/footer.tpl index 390d30924..a3a10bb00 100644 --- a/livesupport/modules/htmlUI/var/templates/footer.tpl +++ b/livesupport/modules/htmlUI/var/templates/footer.tpl @@ -1,4 +1,4 @@ - +
diff --git a/livesupport/modules/htmlUI/var/ui_base.inc.php b/livesupport/modules/htmlUI/var/ui_base.inc.php index 885765175..c42a43ad0 100644 --- a/livesupport/modules/htmlUI/var/ui_base.inc.php +++ b/livesupport/modules/htmlUI/var/ui_base.inc.php @@ -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']; } diff --git a/livesupport/modules/htmlUI/var/ui_browser.class.php b/livesupport/modules/htmlUI/var/ui_browser.class.php index 456d228a2..341c7893f 100644 --- a/livesupport/modules/htmlUI/var/ui_browser.class.php +++ b/livesupport/modules/htmlUI/var/ui_browser.class.php @@ -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)'; } diff --git a/livesupport/modules/htmlUI/var/ui_handler.class.php b/livesupport/modules/htmlUI/var/ui_handler.class.php index 5dbb90487..b2f1a3b42 100644 --- a/livesupport/modules/htmlUI/var/ui_handler.class.php +++ b/livesupport/modules/htmlUI/var/ui_handler.class.php @@ -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);