Browse Source

Fixes

pull/3/head
M@d D3n 5 years ago
parent
commit
e599a79afb
  1. 73
      admin/templates/browser/browser.tpl
  2. 2
      admin/templates/browser/browser_2frames.tpl

73
admin/templates/browser/browser.tpl

@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
@ -28,46 +28,48 @@
var ave_path = "{$ABS_PATH}";
var ave_theme = "{$smarty.const.DEFAULT_THEME_FOLDER}";
var ave_admintpl = "{$tpl_dir}";
var sess = '{$sess}';
</script>
</head>
</head>
<body topmargin="0" leftmargin="0">
<script type="text/javascript">
{if $new_dir_rezult}
<body topmargin="0" leftmargin="0">
<script type="text/javascript">
{if $new_dir_rezult}
alert('{#MAIN_CREATE_DIR_ERROR#}');
{/if}
function fileAction(fName, fAction) {ldelim}
{/if}
function fileAction(fName, fAction) {ldelim}
if (fAction == 'select') {ldelim}
parent.document.bForm.bFileName.value = fName;
{rdelim}
{rdelim}
parent.document.bForm.bDirName.value='{$dir}';
</script>
{rdelim}
parent.document.bForm.bDirName.value='{$dir}';
</script>
<div id="files">
<div id="files">
{if $dir != '/'}
<div class="imageBlock0">
{if $dir != '/'}
<div class="imageBlock0">
<div class="imageBlock1">
<div class="imageBlock"><a href="index.php?do=browser&type={$smarty.request.type|escape}&action=list&dir={$dirup}&target={$smarty.request.target|escape}"><img class="topDir" title="{#MAIN_MP_UP_LEVEL#}" src="{$tpl_dir}/images/folder_up.gif" alt="" border="0" width="{$max_size}" height="{$max_size}" /></a></div>
<div class="imageName" align="center"><a title="{#MAIN_MP_UP_LEVEL#}" href="index.php?do=browser&type={$smarty.request.type|escape}&action=list&dir={$dirup}&target={$smarty.request.target|escape}">..</a></div>
</div>
</div>
{/if}
</div>
{/if}
{foreach from=$dirs item=dir_link key=dir_name}
<div class="imageBlock0">
{foreach from=$dirs item=dir_link key=dir_name}
<div class="imageBlock0">
<div class="imageBlock1">
<div class="imageBlock"><a href="{$dir_link}&target={$smarty.request.target|escape}"><img src="{$tpl_dir}/images/folder.gif" alt="" border="0" width="{$max_size}" height="{$max_size}" /></a></div>
<div class="imageName" align="center">{$dir_name}</div>
</div>
</div>
{/foreach}
</div>
{/foreach}
{if $smarty.request.type != 'directory'}{/if}
{foreach from=$files item=file key=file_name}
<div class="imageBlock0" onClick="javascript:fileAction('{$file_name}', 'select');">
{if $smarty.request.type != 'directory'}{/if}
{foreach from=$files item=file key=file_name}
<div class="imageBlock0" onClick="javascript:fileAction('{$file_name}', 'select');">
<div class="imageBlock1">
<div class="mb_icon_file"><img src="{$tpl_dir}/images/mediapool/{$file.icon}.gif" alt="" border="0" /></div>
{if !$recycled}
@ -93,16 +95,16 @@ parent.document.bForm.bDirName.value='{$dir}';
<div class="mb_time">{$file.moddate}</div>
</div>
</div>
{/foreach}
</div>
{/foreach}
</div>
</div>
<!-- Load jQuery and JS files -->
<script type="text/javascript">
<!--
$(document).ready(function(){ldelim}
<!-- Load jQuery and JS files -->
<script type="text/javascript">
<!--
$(document).ready(function(){ldelim}
var ctrlState = false;
@ -111,7 +113,7 @@ $(document).ready(function(){ldelim}
href: 'index.php?do=browser&type={$smarty.request.type|escape}&target={$smarty.request.target|escape}&action=upload&dir=' + parent.document.bForm.bDirName.value
{rdelim});
{literal}
{literal}
$('.imageBlock0').live('mouseover', function(){
if(!$(this).hasClass('imageBlockAct')) {
$(this).addClass('imageBlockHover');
@ -156,9 +158,9 @@ $(document).ready(function(){ldelim}
$(this).blur(function(event){
ctrlState = false;
});
{/literal}
{/literal}
{rdelim});
{rdelim});
function ConfirmDelete(fName) {ldelim}
var title = "{#MAIN_MP_FILE_DELETE#}";
@ -176,9 +178,10 @@ $(document).ready(function(){ldelim}
);
{rdelim}
//-->
</script>
//-->
</script>
<script type="text/javascript" src="{$ABS_PATH}admin/lang/{$smarty.session.admin_language}/scripts.js"></script>
</body>
</body>
</html>

2
admin/templates/browser/browser_2frames.tpl

@ -35,7 +35,7 @@
var ave_theme = "{$smarty.const.DEFAULT_THEME_FOLDER}";
var ave_admintpl = "{$tpl_dir}";
$sess = '{$sess}';
var sess = '{$sess}';
$(document).ready(function(){ldelim}

Loading…
Cancel
Save