| | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| | | <html> |
| | | <!DOCTYPE html> |
| | | <html lang="zh-cn"> |
| | | |
| | | <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" /> |
| | | |
| | | <link rel="stylesheet" href="../js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}"> |
| | | <title>{yun:}$config.sy_webname{/yun} - 后台管理中心</title> |
| | | </head> |
| | | |
| | |
| | | <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="logoin_title"> |
| | | 后台管理中心 |
| | | </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();'> |
| | | <form action="" method="post" target="supportiframe" autocomplete="off" id="sublogin" onsubmit="return checkform();" class="layui-form"> |
| | | <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">密 码:</label></span><input type="password" class="ipt" name="password" id="password" value="" /></li> |
| | | |
| | | <li> |
| | | <input type="text" class="ipt layui-input" size="10" name="username" id="username" value="" placeholder="请输入用户名" /> |
| | | </li> |
| | | <li> |
| | | <input type="password" class="ipt layui-input" name="password" id="password" value="" placeholder="请输入密码" /> |
| | | </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 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');"> |
| | | <div class="login_code"> |
| | | <input type="text" id="ipt_code" class="ipt layui-input" 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');"> |
| | | </div> |
| | | {yun:}/if{/yun} |
| | | </li> |
| | | {yun:}/if{/yun} |
| | | |
| | | <li><span class="admin_login_s"> </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> |
| | | <li> |
| | | <button type="submit" class="layui-btn layui-btn-fluid">登录</button> |
| | | </li> |
| | | </ul> |
| | | <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}"> |
| | | </form> |
| | |
| | | |
| | | <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="{yun:}$config.sy_weburl{/yun}/js/layui/custom_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> |
| | | |
| | | |
| | | <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; |
| | | 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; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | function checkCode(id){ |
| | | if(document.getElementById(id)){ |
| | | document.getElementById(id).src=weburl+"/app/include/authcode.inc.php?"+Math.random(); |
| | | function checkCode(id) { |
| | | if (document.getElementById(id)) { |
| | | document.getElementById(id).src = weburl + "/app/include/authcode.inc.php?" + Math.random(); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |