mirror of https://github.com/avecms/AVE.cms.git
M@d D3n
5 years ago
2 changed files with 175 additions and 172 deletions
@ -1,184 +1,187 @@ |
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<!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"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
||||||
|
|
||||||
<head> |
<head> |
||||||
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
||||||
|
|
||||||
<title>{#MAIN_PAGE_TITLE#} - {*#SUB_TITLE#*} ({$smarty.session.user_name|escape})</title> |
<title>{#MAIN_PAGE_TITLE#} - {*#SUB_TITLE#*} ({$smarty.session.user_name|escape})</title> |
||||||
|
|
||||||
<meta name="robots" content="noindex, nofollow"> |
<meta name="robots" content="noindex, nofollow"> |
||||||
<meta http-equiv="pragma" content="no-cache"> |
<meta http-equiv="pragma" content="no-cache"> |
||||||
<meta name="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT"> |
<meta name="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT"> |
||||||
|
|
||||||
<!-- CSS Files --> |
<!-- CSS Files --> |
||||||
<link href="{$tpl_dir}/css/reset.css" rel="stylesheet" type="text/css" media="screen" /> |
<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/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/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/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/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" /> |
<link href="{$tpl_dir}/css/browser.css" rel="stylesheet" type="text/css" media="screen" /> |
||||||
|
|
||||||
<!-- JS files --> |
<!-- JS files --> |
||||||
{include file="../scripts.tpl"} |
{include file="../scripts.tpl"} |
||||||
<script src="{$tpl_dir}/js/main.js" type="text/javascript"></script> |
<script src="{$tpl_dir}/js/main.js" type="text/javascript"></script> |
||||||
|
|
||||||
<!-- JS Scripts --> |
<!-- JS Scripts --> |
||||||
<script> |
<script> |
||||||
var ave_path = "{$ABS_PATH}"; |
var ave_path = "{$ABS_PATH}"; |
||||||
var ave_theme = "{$smarty.const.DEFAULT_THEME_FOLDER}"; |
var ave_theme = "{$smarty.const.DEFAULT_THEME_FOLDER}"; |
||||||
var ave_admintpl = "{$tpl_dir}"; |
var ave_admintpl = "{$tpl_dir}"; |
||||||
</script> |
|
||||||
|
var sess = '{$sess}'; |
||||||
</head> |
</script> |
||||||
|
|
||||||
<body topmargin="0" leftmargin="0"> |
</head> |
||||||
<script type="text/javascript"> |
|
||||||
{if $new_dir_rezult} |
<body topmargin="0" leftmargin="0"> |
||||||
alert('{#MAIN_CREATE_DIR_ERROR#}'); |
<script type="text/javascript"> |
||||||
{/if} |
{if $new_dir_rezult} |
||||||
function fileAction(fName, fAction) {ldelim} |
alert('{#MAIN_CREATE_DIR_ERROR#}'); |
||||||
if (fAction == 'select') {ldelim} |
{/if} |
||||||
parent.document.bForm.bFileName.value = fName; |
function fileAction(fName, fAction) {ldelim} |
||||||
{rdelim} |
if (fAction == 'select') {ldelim} |
||||||
{rdelim} |
parent.document.bForm.bFileName.value = fName; |
||||||
parent.document.bForm.bDirName.value='{$dir}'; |
{rdelim} |
||||||
</script> |
{rdelim} |
||||||
|
parent.document.bForm.bDirName.value='{$dir}'; |
||||||
<div id="files"> |
</script> |
||||||
|
|
||||||
{if $dir != '/'} |
<div id="files"> |
||||||
<div class="imageBlock0"> |
|
||||||
<div class="imageBlock1"> |
{if $dir != '/'} |
||||||
<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="imageBlock0"> |
||||||
<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 class="imageBlock1"> |
||||||
</div> |
<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> |
<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> |
||||||
{/if} |
</div> |
||||||
|
</div> |
||||||
{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} |
{/if} |
||||||
|
|
||||||
<div class="mb_name">{$file_name|truncate:20}</div> |
{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 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> |
||||||
|
|
||||||
<div class="imageName" align="center">{$file.filesize} Кб</div> |
|
||||||
|
<!-- Load jQuery and JS files --> |
||||||
<div class="mb_time">{$file.moddate}</div> |
<script type="text/javascript"> |
||||||
|
<!-- |
||||||
</div> |
$(document).ready(function(){ldelim} |
||||||
</div> |
|
||||||
{/foreach} |
var ctrlState = false; |
||||||
|
|
||||||
</div> |
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 |
||||||
<!-- Load jQuery and JS files --> |
{rdelim}); |
||||||
<script type="text/javascript"> |
|
||||||
<!-- |
{literal} |
||||||
$(document).ready(function(){ldelim} |
$('.imageBlock0').live('mouseover', function(){ |
||||||
|
if(!$(this).hasClass('imageBlockAct')) { |
||||||
var ctrlState = false; |
$(this).addClass('imageBlockHover'); |
||||||
|
} else { |
||||||
parent.window.$('.openDialog').prop( |
$(this).addClass('imageBlockActHover'); |
||||||
{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}); |
$('.imageBlock0').live('mouseout', function(){ |
||||||
|
if(!$(this).hasClass('imageBlockAct')) { |
||||||
{literal} |
$(this).removeClass('imageBlockHover'); |
||||||
$('.imageBlock0').live('mouseover', function(){ |
} else { |
||||||
if(!$(this).hasClass('imageBlockAct')) { |
$(this).removeClass('imageBlockActHover'); |
||||||
$(this).addClass('imageBlockHover'); |
} |
||||||
} else { |
}); |
||||||
$(this).addClass('imageBlockActHover'); |
|
||||||
} |
//Дв.Клик на файле |
||||||
}); |
$('.imageBlock0').live('dblclick', function(){ |
||||||
$('.imageBlock0').live('mouseout', function(){ |
parent.window.submitTheForm(); |
||||||
if(!$(this).hasClass('imageBlockAct')) { |
}); |
||||||
$(this).removeClass('imageBlockHover'); |
|
||||||
} else { |
$('#insertImage').click(function(){ |
||||||
$(this).removeClass('imageBlockActHover'); |
$('.imageBlock0').trigger('dblclick'); |
||||||
} |
Window.close(); |
||||||
}); |
}); |
||||||
|
|
||||||
//Дв.Клик на файле |
$('.imageBlock0').live('click', function(){ |
||||||
$('.imageBlock0').live('dblclick', function(){ |
if(ctrlState) { |
||||||
parent.window.submitTheForm(); |
if($(this).hasClass('imageBlockActHover') || $(this).hasClass('imageBlockAct')) { |
||||||
}); |
$(this).removeClass('imageBlockAct'); |
||||||
|
$(this).removeClass('imageBlockActHover'); |
||||||
$('#insertImage').click(function(){ |
} else { |
||||||
$('.imageBlock0').trigger('dblclick'); |
$(this).removeClass('imageBlockHover'); |
||||||
Window.close(); |
$(this).addClass('imageBlockAct'); |
||||||
}); |
} |
||||||
|
} else { |
||||||
$('.imageBlock0').live('click', function(){ |
$('.imageBlockAct').removeClass('imageBlockAct'); |
||||||
if(ctrlState) { |
$(this).removeClass('imageBlockHover'); |
||||||
if($(this).hasClass('imageBlockActHover') || $(this).hasClass('imageBlockAct')) { |
$(this).addClass('imageBlockAct'); |
||||||
$(this).removeClass('imageBlockAct'); |
} |
||||||
$(this).removeClass('imageBlockActHover'); |
}); |
||||||
} else { |
|
||||||
$(this).removeClass('imageBlockHover'); |
$(this).blur(function(event){ |
||||||
$(this).addClass('imageBlockAct'); |
ctrlState = false; |
||||||
} |
}); |
||||||
} else { |
{/literal} |
||||||
$('.imageBlockAct').removeClass('imageBlockAct'); |
|
||||||
$(this).removeClass('imageBlockHover'); |
{rdelim}); |
||||||
$(this).addClass('imageBlockAct'); |
|
||||||
} |
function ConfirmDelete(fName) {ldelim} |
||||||
}); |
var title = "{#MAIN_MP_FILE_DELETE#}"; |
||||||
|
var confirm = "{#MAIN_MP_DELETE_CONFIRM#}"; |
||||||
$(this).blur(function(event){ |
jConfirm( |
||||||
ctrlState = false; |
confirm, |
||||||
}); |
title, |
||||||
{/literal} |
function(b){ldelim} |
||||||
|
if (b){ldelim} |
||||||
{rdelim}); |
$.alerts._overlay('show'); |
||||||
|
parent.frames['zf'].location.href = 'index.php?do=browser&type={$smarty.request.typ|escape}&action=delfile&dir={$dir}&file=' + fName; |
||||||
function ConfirmDelete(fName) {ldelim} |
$.alerts._overlay('hide'); |
||||||
var title = "{#MAIN_MP_FILE_DELETE#}"; |
{rdelim} |
||||||
var confirm = "{#MAIN_MP_DELETE_CONFIRM#}"; |
{rdelim} |
||||||
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} |
|
||||||
); |
|
||||||
{rdelim} |
|
||||||
|
|
||||||
//--> |
//--> |
||||||
</script> |
</script> |
||||||
|
|
||||||
|
<script type="text/javascript" src="{$ABS_PATH}admin/lang/{$smarty.session.admin_language}/scripts.js"></script> |
||||||
|
|
||||||
</body> |
</body> |
||||||
</html> |
</html> |
Loading…
Reference in new issue