|
|
|
<!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>
|
|
|
|
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
|
|
|
|
|
|
<title>{#MAIN_PAGE_TITLE#} - {*#SUB_TITLE#*} ({$smarty.session.user_name|escape})</title>
|
|
|
|
|
|
|
|
<meta name="robots" content="noindex, nofollow">
|
|
|
|
<meta http-equiv="pragma" content="no-cache">
|
|
|
|
<meta name="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
|
|
|
|
|
|
|
|
<!-- CSS Files -->
|
|
|
|
<link href="{$tpl_dir}/css/reset.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
|
<link href="{$tpl_dir}/css/main.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
|
<link href="{$tpl_dir}/css/data_table.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
|
<link href="{$tpl_dir}/css/jquery-ui_custom.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
|
<link href="{$tpl_dir}/css/color_{$smarty.const.DEFAULT_THEME_FOLDER_COLOR}.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
|
<link href="{$tpl_dir}/css/browser.css" rel="stylesheet" type="text/css" media="screen" />
|
|
|
|
|
|
|
|
<!-- JS files -->
|
|
|
|
{include file="../scripts.tpl"}
|
|
|
|
<script src="{$tpl_dir}/js/main.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<!-- JS Scripts -->
|
|
|
|
<script>
|
|
|
|
var ave_path = "{$ABS_PATH}";
|
|
|
|
var ave_theme = "{$smarty.const.DEFAULT_THEME_FOLDER}";
|
|
|
|
var ave_admintpl = "{$tpl_dir}";
|
|
|
|
|
|
|
|
var sess = '{$sess}';
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<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 (fAction == 'select') {ldelim}
|
|
|
|
parent.document.bForm.bFileName.value = fName;
|
|
|
|
{rdelim}
|
|
|
|
{rdelim}
|
|
|
|
parent.document.bForm.bDirName.value='{$dir}';
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="files">
|
|
|
|
|
|
|
|
{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}
|
|
|
|
|
|
|
|
{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}
|
|
|
|
|
|
|
|
{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}
|
|
|
|
{if check_permission('mediapool_del')}
|
|
|
|
<div class="mb_icon_delete">
|
|
|
|
<a title="{#MAIN_MP_FILE_DELETE#}" href="javascript:;" onClick="javascript:ConfirmDelete('{$file_name}');" class="leftDir icon_sprite ico_delete"></a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div class="mb_name">{$file_name|truncate:20}</div>
|
|
|
|
|
|
|
|
<div class="imageBlock" align="center">
|
|
|
|
{if $recycled}
|
|
|
|
<img src="{$file.bild}" alt="" border="0" />
|
|
|
|
{else}
|
|
|
|
<div><img src="{$file.bild}" alt="" border="0" /></div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="imageName" align="center">{$file.filesize} Кб</div>
|
|
|
|
|
|
|
|
<div class="mb_time">{$file.moddate}</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Load jQuery and JS files -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
$(document).ready(function(){ldelim}
|
|
|
|
|
|
|
|
var ctrlState = false;
|
|
|
|
|
|
|
|
parent.window.$('.openDialog').prop(
|
|
|
|
{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}
|
|
|
|
$('.imageBlock0').live('mouseover', function(){
|
|
|
|
if(!$(this).hasClass('imageBlockAct')) {
|
|
|
|
$(this).addClass('imageBlockHover');
|
|
|
|
} else {
|
|
|
|
$(this).addClass('imageBlockActHover');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$('.imageBlock0').live('mouseout', function(){
|
|
|
|
if(!$(this).hasClass('imageBlockAct')) {
|
|
|
|
$(this).removeClass('imageBlockHover');
|
|
|
|
} else {
|
|
|
|
$(this).removeClass('imageBlockActHover');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
//Дв.Клик на файле
|
|
|
|
$('.imageBlock0').live('dblclick', function(){
|
|
|
|
parent.window.submitTheForm();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#insertImage').click(function(){
|
|
|
|
$('.imageBlock0').trigger('dblclick');
|
|
|
|
Window.close();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.imageBlock0').live('click', function(){
|
|
|
|
if(ctrlState) {
|
|
|
|
if($(this).hasClass('imageBlockActHover') || $(this).hasClass('imageBlockAct')) {
|
|
|
|
$(this).removeClass('imageBlockAct');
|
|
|
|
$(this).removeClass('imageBlockActHover');
|
|
|
|
} else {
|
|
|
|
$(this).removeClass('imageBlockHover');
|
|
|
|
$(this).addClass('imageBlockAct');
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$('.imageBlockAct').removeClass('imageBlockAct');
|
|
|
|
$(this).removeClass('imageBlockHover');
|
|
|
|
$(this).addClass('imageBlockAct');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$(this).blur(function(event){
|
|
|
|
ctrlState = false;
|
|
|
|
});
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
{rdelim});
|
|
|
|
|
|
|
|
function ConfirmDelete(fName) {ldelim}
|
|
|
|
let title = "{#MAIN_MP_FILE_DELETE#}";
|
|
|
|
let confirm = "{#MAIN_MP_DELETE_CONFIRM#}";
|
|
|
|
jConfirm(
|
|
|
|
confirm,
|
|
|
|
title,
|
|
|
|
function(b){ldelim}
|
|
|
|
if (b){ldelim}
|
|
|
|
$.alerts._overlay('show');
|
|
|
|
parent.frames['zf'].location.href = 'index.php?do=browser&type={$smarty.request.typ|escape}&action=delfile&dir={$dir}&file=' + fName;
|
|
|
|
$.alerts._overlay('hide');
|
|
|
|
{rdelim}
|
|
|
|
{rdelim}
|
|
|
|
);
|
|
|
|
{rdelim}
|
|
|
|
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="{$ABS_PATH}admin/lang/{$smarty.session.admin_language}/scripts.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|