<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录-管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/res/layui/css/layui.css">
    <link rel="stylesheet" href="/res/css/admin/login.css">
    <script>
    var TOKEN = "<?php echo $csrf_token;?>";
	var ADMIN_DIR = "<?php echo ADMIN_DIR;?>";
    if (self != top) {
        top.location = self.location;
    }
    </script>
</head>

<body>
    <!--登录背景-->
    <div class="video_mask">
        <img src="/res/images/admin/bg<?php echo rand(1,10);?>.jpg">
    </div>
    <div class="login">
        <h1>登录</h1>
        <form class="layui-form">
            <div class="layui-form-item">
                <input class="layui-input" name="email" placeholder="用户名" lay-verify="required" type="text" autocomplete="off">
            </div>
            <div class="layui-form-item">
                <input class="layui-input" name="password" placeholder="密码" lay-verify="required" type="password" autocomplete="off">
            </div>
			<?php if(isset($config['adminyzmswitch']) AND $config['adminyzmswitch']>0):?>
            <div class="layui-form-item form_code">
                <input type="text" id="L_vercode" name="vercode" required lay-verify="required|vercode" placeholder="请输入图形验证码" autocomplete="off" class="layui-input">
                <div class="code"><img src="/Captcha?t=adminlogin" alt="图片验证码" height="36" class="loadcode"></div>
            </div>
			<?php endif;?>
            <button class="layui-btn login_btn" lay-submit="" lay-filter="login">登录</button>
        </form>
    </div>
</body>

</html>
<script src="/res/layui/layui.js"></script>
<script>
layui.config({
    version: "<?php echo VERSION;?>",
    base: '/res/mods/'
}).use('common');
layui.use('element', function() {
    var element = layui.element;
});
layui.use('adminlogin');
</script>