<!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>{#$lang.title#} - Powered by HuCart.COM</title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/list.css" rel="stylesheet">
<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">
function get_img( file_url , get_id )
{
   	window.opener.document.getElementById(get_id).value=file_url;
	window.opener = null;
	window.open('','_top');
	window.top.close();
}

function up_Load()
{
	if(document.up_form.up_file.value== ""){ 
	  alert ("{#$lang.need_select#}"); 
      document.up_form.up_file.focus (); 
      return false; 
	} 
    document.up_form.submit(); 
}
</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">{#$lang.title#}</a></td>
        <td>&nbsp;</td>
        <td align="right"><a href="http://help.hucart.com/e.php/type_filelist.html" target="_blank" title="{#$lang.online_help#}"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="{#$lang.online_help#}"></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>{#$lang.field_list.file_name#}</th>
<th>{#$lang.field_list.file_size#}</th>
<th>{#$lang.field_list.file_XYWH#}</th>
<th>{#$lang.field_list.file_type#}</th>
<th>{#$lang.field_list.operate#}</th>
</tr>
{#foreach item=item from=$file_list#}
			<tr>
			<td class="tdleft" >{#if $item.is_dir eq 1#}<a href="./adminsys/?load=filelist&act=info_list&dir={#$item.file_name_url#}"><img src="{#$base_weburl#}/images/16/dir.gif" border="0" />{#$item.file_name#}</a>{#else#}<a href='#' onclick="get_img('{#$image_url#}/{#$item.file_name#}','{#$get_id#}')"><img src="{#$image_url#}/{#$item.file_name#}" border="0" onload="show_image(this,200,50)"  /><br />{#$item.file_name#}</a>{#/if#} </td>
			<td  class="tdleft">{#$item.file_size#}</td>
			<td  class="tdcenter">{#$item.file_XYWH#} </td>
			<td  class="tdcenter">{#$item.file_type#}</td>
			
			<td class="tdcenter">{#if $item.is_dir eq 1#}{#else#}<a href='#'  onclick="get_img('{#$image_url#}/{#$item.file_name#}','{#$get_id#}')"  title="{#$lang.select_img#}" >{#$lang.select_img#}</a>{#/if#}</td>
			</tr>
{#/foreach#}
<tr>
<td colspan="6" >{#$page_str#}</td>
</tr>
</table>
</div>

</td></tr>
<tr><td></td></tr>
</table>
<div class="list" align="center">

<table width="480" align="center" ><form name="up_form" id="up_form" method="post" action="./index.php?load=user_file&act=up_load_file" enctype="multipart/form-data"  onsubmit="return up_Load(this)"  >  
 <tr>
 <td>&nbsp;</td>
<td align="center"><strong>{#$lang.up_title#}</strong></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td  class="center"  >  
<input type="file" id="up_file" name="up_file"  >
<input type="hidden" name="add_dir" id="add_dir" value="{#$add_dir#}"  />
<input type="hidden" name="get_id" id="get_id" value="{#$get_id#}"  />
</td>
<td>&nbsp;</td>
</tr>
 <tr>
 <td>&nbsp;</td>
<td   align="center"><input name="submit" id="submit" type="submit" value="{#$lang.up_submit#}"  class="btn btn-primary  btn-sm"  ></td>
<td>&nbsp;</td>
</tr>
</form>
</table>
</div>
</body>
</html>