<?php /* Smarty version Smarty-3.0.6, created on 2020-03-31 10:06:43
         compiled from "I:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\select_image.tpl" */ ?>
<?php /*%%SmartyHeaderCode:18120172405e82a5b3c22a05-18251480%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd6e2e17ba5acb592d043bc7dd6db4ffd4a6febe9' => 
    array (
      0 => 'I:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\\select_image.tpl',
      1 => 1455502819,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '18120172405e82a5b3c22a05-18251480',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!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><?php echo $_smarty_tpl->getVariable('lang')->value['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="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/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 ("<?php echo $_smarty_tpl->getVariable('lang')->value['need_select'];?>
"); 
      document.up_form.up_file.focus (); 
      return false; 
	} 
    document.up_form.submit(); 
}
</script>
</head>
<body>
<div id="imgdlg">
<input type="hidden" value="<?php echo $_smarty_tpl->getVariable('dir')->value;?>
" 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="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/uploads/sys/h.gif"  width="15" border="0"><a href="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/adminsys/?load=filelist&act=info_list"><?php echo $_smarty_tpl->getVariable('lang')->value['title'];?>
</a></td>
        <td>&nbsp;</td>
        <td align="right"><a href="http://help.hucart.com/e.php/type_filelist.html" target="_blank" title="<?php echo $_smarty_tpl->getVariable('lang')->value['online_help'];?>
"><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/images/sys/adminhelp.png"  width="21" border="0" alt="<?php echo $_smarty_tpl->getVariable('lang')->value['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><?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['file_name'];?>
</th>
<th><?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['file_size'];?>
</th>
<th><?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['file_XYWH'];?>
</th>
<th><?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['file_type'];?>
</th>
<th><?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['operate'];?>
</th>
</tr>
<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('file_list')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
			<tr>
			<td class="tdleft" ><?php if ($_smarty_tpl->tpl_vars['item']->value['is_dir']==1){?><a href="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/adminsys/?load=filelist&act=info_list&dir=<?php echo $_smarty_tpl->tpl_vars['item']->value['file_name_url'];?>
"><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/images/16/dir.gif" border="0" /><?php echo $_smarty_tpl->tpl_vars['item']->value['file_name'];?>
</a><?php }else{ ?><a href='#' onclick="get_img('<?php echo $_smarty_tpl->getVariable('image_url')->value;?>
/<?php echo $_smarty_tpl->tpl_vars['item']->value['file_name'];?>
','<?php echo $_smarty_tpl->getVariable('get_id')->value;?>
')"><img src="<?php echo $_smarty_tpl->getVariable('image_url')->value;?>
/<?php echo $_smarty_tpl->tpl_vars['item']->value['file_name'];?>
" border="0" onload="show_image(this,200,50)"  /><br /><?php echo $_smarty_tpl->tpl_vars['item']->value['file_name'];?>
</a><?php }?> </td>
			<td  class="tdleft"><?php echo $_smarty_tpl->tpl_vars['item']->value['file_size'];?>
</td>
			<td  class="tdcenter"><?php echo $_smarty_tpl->tpl_vars['item']->value['file_XYWH'];?>
 </td>
			<td  class="tdcenter"><?php echo $_smarty_tpl->tpl_vars['item']->value['file_type'];?>
</td>
			
			<td class="tdcenter"><?php if ($_smarty_tpl->tpl_vars['item']->value['is_dir']==1){?><?php }else{ ?><a href='#'  onclick="get_img('<?php echo $_smarty_tpl->getVariable('image_url')->value;?>
/<?php echo $_smarty_tpl->tpl_vars['item']->value['file_name'];?>
','<?php echo $_smarty_tpl->getVariable('get_id')->value;?>
')"  title="<?php echo $_smarty_tpl->getVariable('lang')->value['select_img'];?>
" ><?php echo $_smarty_tpl->getVariable('lang')->value['select_img'];?>
</a><?php }?></td>
			</tr>
<?php }} ?>
<tr>
<td colspan="6" ><?php echo $_smarty_tpl->getVariable('page_str')->value;?>
</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=image_list&act=up_load_file" enctype="multipart/form-data"  onsubmit="return up_Load(this)"  >  
 <tr>
 <td>&nbsp;</td>
<td align="center"><strong><?php echo $_smarty_tpl->getVariable('lang')->value['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="<?php echo $_smarty_tpl->getVariable('add_dir')->value;?>
"  />
<input type="hidden" name="get_id" id="get_id" value="<?php echo $_smarty_tpl->getVariable('get_id')->value;?>
"  />
</td>
<td>&nbsp;</td>
</tr>
 <tr>
 <td>&nbsp;</td>
<td   align="center"><input name="submit" id="submit" type="submit" value="<?php echo $_smarty_tpl->getVariable('lang')->value['up_submit'];?>
"  class="btn btn-primary  btn-sm"  ></td>
<td>&nbsp;</td>
</tr>
</form>
</table>
</div>
</body>
</html>