<!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>图片管理 -  Powered by HuCart.COM</title>
<link rel="stylesheet" type="text/css" href="./css/list.css" />
<style type="text/css">
#imgdlg{display: none;position: absolute;top: 26%;left: 40%;width: 280px;border: 1px solid #D6E9F1;background-color:#FFFFFF;z-index:1002;overflow:hidden;scrolling:no;}
#imgdcs{float:left;clear:both;width: 270px;height:12px;text-align:right;margin:0 0 0px 0;padding: 8px;background-color:#4096EA;font-weight:bolder;}
#imgdtt {float:left;width:250px; text-align:center; color:#FFFFFF;}

#imgoverall{ display: none;position: absolute;top: 0%;left: 0%;width: 100%;height: 100%;background-color:#f5f5f5;z-index:1001;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);}

</style>
<script language="javascript" src="{#$base_weburl#}/js/admin_common.js"></script>
<script language="javascript">
//显示图片层
var CKEditorFuncNum = 2;	//CKEditorFuncNum和fileUrl想法从后台绑定
var imgroot_url = '{#$img_url#}{#$base_weburl#}/uploads/';
function SetUrl( fileUrl , filetype )
{
   
   if(filetype=='img')
   {
   		window.opener.CKEDITOR.tools.callFunction(2, imgroot_url+fileUrl);
	    window.opener = null;
	    window.open('','_top');
	    window.top.close(); 
   }else{
   		alert('提示：\n\n非图片文件不能添加到文本编辑中！');
   }
}
function set_img( file_url , filetype )
{
   if(filetype=='img')
   {
   		window.opener.document.getElementById('bra_logo').value=imgroot_url+document.getElementById('dir').value+'/'+file_url;
	    window.opener = null;
	    window.open('','_top');
	    window.top.close(); 
   }else{
   		alert('提示：\n\n非图片文件不能添加到文本编辑中！');
   }
}

	/*
	function imgshow(val)
	{
		document.getElementById('imgshow').src = val;
	 }
	 
	function loginhide()
	{
		 var light=document.getElementById('dlg');
		 var fade=document.getElementById('overall');
		 light.style.display='none';
		 fade.style.display='none';
	}
	//onMouseOver="imgshow('{#$item.dir_url#}{#$item.fileName#}')" 
	*/
</script>
</head>
<body>
<div id="imgdlg"><input type="hidden" value="{#$dir#}" name="dir" id="dir" /></div>
<table  cellpadding="0" cellspacing="0" style="width:100%; ">
<tr><td><table cellpadding="0" cellspacing="0" height="22" style="width:100%; color:#000000; font-weight:normal; background-color:#67D9FF;"  >
  <tr>
    <td>&nbsp;<img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0"><a href="./adminsys/?load=filelist&act=info_list">图片管理</a></td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.hucart.com/e.php/type_filelist.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>
<div class="list">
<table cellpadding="0" cellspacing="1"   style="width:100%" class="tableborder">
<tr>
<th>(预览)名称</th>
<th>大小</th>
<th>尺寸</th>
<th>类型</th>
<th>修改时间</th>
<th>删除</th>
</tr>
{#foreach item=item from=$fileList#}
			<tr>
			<td class="tdleft" >{#if $item.is_dir eq 1#}<a href="./adminsys/?load=filelist&act=info_list&dir={#$item.fileName_url#}"><img src="{#$base_weburl#}/images/16/dir.gif" border="0" />{#$item.fileName#}</a>{#else#}<a href='#' onclick="set_img('{#$item.dir_url#}{#$item.fileName#}','{#$item.imgFile#}')"><img src="/uploads/{#$dir#}/{#$item.fileName#}" border="0" onload="show_image(this,200,50)"  /><br />{#$item.fileName#}</a>{#/if#} </td>
			<td  class="tdleft">{#$item.fileSize#}</td>
			<td  class="tdcenter">{#$item.fileXYWH#} </td>
			<td  class="tdcenter">{#$item.fileType#}</td>
			<td  class="tdcenter">&nbsp;&nbsp;{#$item.filemTime#}</td>
			<td class="tdcenter"> {#if $item.is_dir eq 1#}<a href="./adminsys/?load=filelist&act=del&dir={#$item.dir_url#}&name={#$item.fileName_url#}&deltype=delDir"  onclick="if(confirm('提示：\n\n您确认要删除操作！可能影响其他信息！')){ return  true; }else{ return  false; }"  title="删除" >删除</a>{#else#}<a href="./adminsys/?load=filelist&act=del&dir={#$item.dir_url#}&name={#$item.fileName_url#}&deltype=delFile"  onclick="if(confirm('提示：\n\n您确认要删除操作！可能影响其他信息！')){ return  true; }else{ return  false; }"  title="删除" >删除</a>{#/if#}</td>
			</tr>
{#/foreach#}
<tr>
<td colspan="6" >{#$page_str#}</td>
</tr>

</table>
</div>

</td></tr>
<tr><td></td></tr>
</table>

</body>
</html>