chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <link href="images/admin.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
 
    <title>{yun:}$config.sy_webname{/yun} - 后台管理中心</title>
</head>
 
<body>
    <div class="admin_logo_bg">
        <div class="logoin_top"></div>
        <div class="logoin_cont">
            <div class="login_box">
                <div class="logoin_c">
                    <div class="logoin_logo"><img src="images/logoin_logo.png"></div>
                    <div class="logoin_title"><div class=""><img src="images/logo_t.png?v={yun:}$config.cachecode{/yun}"></div></div>
                    <div id="bind-captcha" data-id='sublogin' data-type='submit'></div>
                    <div class="login_iptbox">
                        <form action="" method="post" target="supportiframe" autocomplete="off" id='sublogin' onsubmit='return checkform();'>
                            <ul class="logoin_list">
                                <li><span class="admin_login_s"><label for="username">用户名:</label></span><input type="text" class="ipt" size="10" name="username" id="username" value="" /></li>
                                <li><span class="admin_login_s"><label for="password">密&nbsp; 码:</label></span><input type="password" class="ipt" name="password" id="password" value="" /></li>
                                
                                {yun:}if strpos($config.code_web,"后台登录")!==false{/yun}
                                <li>
                                    {yun:}if $config.code_kind > 2{/yun}
                                    <div class="gtdx-captcha">
                                        <div id="bind-captcha" data-id='subreg' data-type='click'></div>
                                        <input type='hidden' id="verify_token"  name="verify_token" value="">
                                        <input type='hidden' id="popup-submit">    
                                        <input type='hidden' id="bind-submit">
                                    </div>
                                    {yun:}else{/yun}
                                    <span class="admin_login_s"><label for="code">验证码:</label></span>
                                    <input type="text" id="ipt_code" class="ipt" style="width:125px;" name="authcode" value="" />
                                    <img src="{yun:}$config.sy_weburl{/yun}/app/include/authcode.inc.php" align="absmiddle" id='vcode_imgs' onclick="checkCode('vcode_imgs');">
                                    {yun:}/if{/yun}
                                </li>
                                {yun:}/if{/yun}
 
                                <li><span class="admin_login_s">&nbsp;</span><input type="submit" class="admin_login_sub" name="login_sub"  value="登录" /><input type="reset" class="admin_login_sub admin_login_sub1" name="login_sub" value="重置" /></li>
                            </ul>
                            <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
 
    <script src="../js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
    
    
    {yun:}include file="$tplstyle/verify/verify_js.htm"{/yun}
    <script>
    var weburl="{yun:}$config.sy_weburl{/yun}",code_web='{yun:}$config.code_web{/yun}',code_kind='{yun:}$config.code_kind{/yun}';
    function checkform(){
        if($('#username').val()==''){
            layer.msg('请填写管理员账户!', 2, 8);return false;  
        }
    
        if($('#password').val()==''){
            layer.msg('请填写登录密码!', 2, 8);return false;  
        }
    
        var codesear=new RegExp('后台登录');
        if(codesear.test(code_web)){
            if(code_kind==1){
                authcode=$("#ipt_code").val();
                if(authcode==''){
                    layer.msg('请填写验证码!', 2, 8);return false;  
                }
            }else if(code_kind > 2){
                var verify_token = $('input[name="verify_token"]').val();
                
                if(verify_token ==''){
                    $("#bind-submit").trigger("click");
                    return false;  
                }
            }
        }
        return true;
    }
 
    function checkCode(id){
        if(document.getElementById(id)){
            document.getElementById(id).src=weburl+"/app/include/authcode.inc.php?"+Math.random();
        }
    }
    </script>
</body>
</html>