<?php !defined('IN_REGINX') && die('Access Denied'); ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="{__CURTPL_URL__}images/mini.css" />
<script src="{__DATA_URL__}js/jquery-1.8.2.min.js"></script>
<script src="{__CTPL_URL__}js/user.js"></script>
<style>
.input{
    width:280px;
}
</style>
<script>
  var api = frameElement.api, W = api.opener , UPLOAD_URL = '{__UPLOAD_URL__}';
   function topwin(url){
       W.location.href = url;
   }
   $(function(){
        api.title('用户登录');
        api.size(336, 190);
   });
</script>
</head>

<body>
    <div class="main" style="width:326px;position:relative;">
        <form action="{url:'login-submit'}" method="post" id="form1" class="form">
            <div class="title">帐号 (邮箱地址)</div>
            <input name="user[uname]" id="uname"  class="input" type="text"/>
            <div class="title">密码</div>
            <input name="user[passwd]" id="passwd" class="input" type="password"/>
            <input name="ref" id="login-ref" value="{:base64_encode($_SERVER['HTTP_REFERER'])}" type="hidden"/>
            {:core::token()}
            <div class="title" style="margin:10px 0">
                <input type="button" id="loginbtn" ajaxurl="{url:'login-submit'}" class="button" value="确定"/>
                &nbsp;&nbsp;<a href="javascript:void(0);" onclick="topwin('{url:('login-qc-ref-%s|false' , base64_encode($_SERVER['HTTP_REFERER']))}')"><img title="使用QQ帐号登录" src="{__DATA_URL__}images/qc.png" border="0"/></a>
                &nbsp;&nbsp;<span class="error" id="error_msg">{:(is_array($msg) ? array_pop($msg) : $msg)}</span>
            </div>
        </form>
    </div>
</body>
</html>