<?php /* Smarty version Smarty-3.0.6, created on 2020-03-06 11:15:57
         compiled from "D:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\login.tpl" */ ?>
<?php /*%%SmartyHeaderCode:248935e61c06de9f003-53581472%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd4ebe98d0ce91eabccc7e4880f790634cef4e9d6' => 
    array (
      0 => 'D:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\\login.tpl',
      1 => 1456969953,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '248935e61c06de9f003-53581472',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="./images/favicon.ico">
<title><?php echo $_smarty_tpl->getVariable('lang')->value['title'];?>
</title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/login.css" rel="stylesheet">
<!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container-fluid">
  <div class="well login">
    <h5><?php echo $_smarty_tpl->getVariable('lang')->value['admin_login'];?>
</h5>
    <hr />
   <form class="form-horizontal" id="form" action="<?php echo $_smarty_tpl->getVariable('act_url')->value;?>
" onSubmit="return js_submit(this)"  data-ajax="false" method="post">
			    <div class="form-group col-lg-12">
					<div class="input-group">
						<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
						<input type="text" class="form-control" name="adm_user" id="adm_user" placeholder="<?php echo $_smarty_tpl->getVariable('lang')->value['name_pher'];?>
" >
					</div>
				</div>
				<div class="form-group col-lg-12 text-center red-color"></div>
				<div class="form-group col-lg-12">
					<div class="input-group">
						<span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
						<input type="password" class="form-control" name="adm_pwd" id="adm_pwd"   placeholder="<?php echo $_smarty_tpl->getVariable('lang')->value['pwd_pher'];?>
" >
					</div>
				</div>
				<div class="form-group">
					<div class="row col-lg-12">
						<div class="col-xs-6">
							<div class="input-group">
								<span class="input-group-addon"><span class="glyphicon glyphicon-barcode"></span></span>
								<input type="text" class="form-control"  name="adm_captcha" id="adm_captcha"  placeholder="<?php echo $_smarty_tpl->getVariable('lang')->value['captcha_pher'];?>
">
							</div>
						</div>
						<div class="col-xs-6">
							<div class="code"><img src="./index.php?load=login&act=get_img_code" id="idimgCode"  height="30"  onclick="change_img()"  style="cursor:pointer;"/></div>
						</div>
					</div>
				</div>
			<div class="form-group col-lg-12">
				<div  id="show_error" class="show_error"></div>
			</div> 
				<div class="form-group">
					<div class="col-lg-12">
						<div class="row">
							<div class="col-xs-6">
								<button name="submit" type="submit" class="btn btn-block btn-primary"><?php echo $_smarty_tpl->getVariable('lang')->value['login'];?>
</button>
							</div>
							<div class="col-xs-6">
								<a class="btn btn-block" href="./index.php?load=login&act=find_pwd" role="button"><?php echo $_smarty_tpl->getVariable('lang')->value['find_pwd'];?>
</a>
							</div>
						</div>
					</div>
				</div>  

</form>
  </div>

</div> <!-- /container -->
<footer class="footer"><?php echo $_smarty_tpl->getVariable('lang')->value['powered_by'];?>
</footer>
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script language="javascript">
	function change_img()
	{
		var idimgCode 	= 	document.getElementById('idimgCode');
		idimgCode.src	=	'./index.php?load=login&act=get_img_code&time='+Math.random();
	}
	function js_submit()
	{
		var id_adm_user = document.getElementById('adm_user');
		var id_adm_pwd  = document.getElementById('adm_pwd');
		var id_adm_captcha 	 = document.getElementById('adm_captcha');

		if(id_adm_user.value==''){
			id_adm_user.focus();
			document.getElementById('show_error').innerHTML = '<?php echo $_smarty_tpl->getVariable('lang')->value['err_name'];?>
';
			return false;
		}
		if(id_adm_pwd.value==''){
			id_adm_pwd.focus();
			document.getElementById('show_error').innerHTML = '<?php echo $_smarty_tpl->getVariable('lang')->value['err_pwd'];?>
';
			return false;
		}
		if(id_adm_captcha.value==''){
			id_adm_captcha.focus();
			document.getElementById('show_error').innerHTML = '<?php echo $_smarty_tpl->getVariable('lang')->value['err_adm_captcha_empty'];?>
';
			return false;
		}
		//return false;	
	}
</script>
</body>
</html>