CINXE.COM
Login_CBC Nonferrous Metal
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Login_CBC Nonferrous Metal</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="login" /> <meta name="description" content="login" /> <script type="text/javascript" src="//encj.cbcie.com/js/jquery-1.6.min.js"></script> <script type="text/javascript" src="//encj.cbcie.com/js/common.js"></script> <link rel="StyleSheet" href="//encj.cbcie.com/css/bodyen.css" type="text/css" /> <style type="text/css"> A:link { COLOR: #606060; text-decoration: none; } A:visited { COLOR: #606060; text-decoration: none; } A:hover { COLOR: #bc2931; text-decoration: underline; } .blank { width: 100%; height: 0; line-height: 0; font-size: 0; clear: both; } /*LOGO*/ .logo { width: 1210px; margin: 30px auto 70px; position:relative; } a.logo_l { width: 240px; height: 64px; float: left; background-position: 0 0; font-size:40px; font-weight:bold; color:#004f8a; text-decoration:none;} .logo_c { float: left; height: 50px; border-right: 1px solid #777777; margin: 6px 20px; } a.logo_r { height: 24px; float: left; margin-top: 20px; font-size:18px; color:#4485c7; font-family:Arial; text-decoration:none;} .lg_con { width: 350px; min-height: 331px; margin: 150px auto; position: relative; clear: both; } .lg_con p { margin: 0px; padding: 0px; } .lg_con input { background: none; border: none; } .lg_l { float: left; } .lg_l h2{color: #666; font-size: 20px; font-weight: normal; } .state { min-width: 100px; float: left; height: 18px; text-align: left; padding: 5px 0 0 137px; } .lg_l p { margin-bottom: 9px; float: left; position: relative; } .lg_l p input { font-family: "微软雅黑"; } .bg_clear1 { position: absolute; width: 18px; height: 20px; top: 16px; right: 16px; cursor: pointer; background:url(//enimage.cbcie.com/zxh/webimg/index/bg_clear.jpg); opacity: 0.7;} .bg_clear2 { position: absolute; width: 18px; height: 20px; top: 16px; right: 16px; cursor: pointer; background:url(//enimage.cbcie.com/zxh/webimg/index/bg_clear.jpg); opacity: 0.7;} .lg_l input.err[type='text']:focus, .lg_l input.err[type='password']:focus { border: 1px solid red !important; } .lg_l input.err[type='text'], .lg_l input.err[type='password'] { border: 1px solid red !important; } #txtloginname { width: 320px; height: 50px; border: 1px solid #dddddd; float: left; color: #777777; padding-left: 30px; } .user_bg { width: 18px; height: 18px; display: block; position: absolute; top: 20px; left: 10px; background-position: 0 -120px; } #txtloginpass { width: 320px; height: 50px; border: 1px solid #dddddd; float: left; color: #777777; padding-left: 30px; } .pass_bg { width: 18px; height: 18px; display: block; position: absolute; top: 20px; left: 10px; background-position: -30px -120px; } #CheckCode { width: 180px !important; height: 50px; border: 1px solid #dddddd; float: left; padding-left: 10px; } #Image1 { width: 150px; height: 51px; margin: 1px 0 0 8px; } #loginbutton { width:350px; height: 50px; margin: 0 auto; clear: both; background: #5494db; border: 1px solid #5494db; font-weight: bold; font-size: 16px; color: #fff; cursor: pointer; } #loginbutton:hover { background:#4079b3;} .zhmm a { font-size: 12px; color: rgb(83, 142, 219); } .zhmm a:hover { text-decoration: none; } .zhmm { float: none !important; clear: both; } .fgtpas { float: left; } .reg { float: right; } .lg_r { width: 448px; height: 343px; background: #f5f6f7; float: right; text-align: left; line-height: 32px; padding: 45px 0 0 12px; } .lg_r_bg { width: 437px; height: 295px; background: url(//enimage.cbcie.com/webimg/index/reg_img.jpg) no-repeat; } .lg_r h2 { font-size: 16px; color: #fff; float: left; margin: 56px 0 10px 24px; text-transform: uppercase; } .lg_r p { font-size: 16px; clear: both; color: #fff; margin-left: 24px; } .lg_r a { color: #e78827; } .lg_r a:hover { text-decoration: none; } .reg_btn { width: 178px; height: 33px; line-height: 33px; background: #f9f9f9; border: 1px solid #f9f9f9; float: left; border-radius: 4px; margin-top: 29px; margin-left: 24px; font-size: 16px; text-align: center; } .hd_wel { color: #fff; } .jsdh b { color: #fff; } .f_copyright{position:fixed; bottom:0;} </style> </head> <body> <form method="post" action="./login.aspx" id="form1"> <div class="aspNetHidden"> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTQ3MTY4Njk5OGRkUnWJw3jR/2psb+w4Zchu3esGnhE=" /> </div> <script type="text/javascript" src="/ajax/common.ashx"></script><script type="text/javascript" src="/ajax/en.web.user.login,App_Web_jjgn25si.ashx"></script> <div class="aspNetHidden"> <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="C93BE1AE" /> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAWYh+QqlZLnBd/XMk7d0fhstjIltVaLWCZa9oPy194hDGKKnOlpXd3u4WdrB886zZHK530kij9VlToKaeFyKFoK2BV3Vw/OL+HoHqP96es/ibtkUuPp0TgGbfJxVlhE8R0IEOtE" /> </div> <input name="txtlasturl" type="hidden" id="txtlasturl" /> <div class="logo"> <a href="/" class="logo_l login_com" target="_blank">CBC Metal</a> <div class="blank"></div> </div> <div class="lg_con"> <div class="lg_l"> <h2>Please Login</h2> <div id="loginstate" class="state"></div> <p class="enter"><span class="bg_clear1"></span> <input name="txtloginname" type="text" id="txtloginname" placeholder="Email" onblur="isuser()" /><span class="user_bg login_com"></span></p> <p class="enter"><span class="bg_clear2"></span> <input name="txtloginpass" type="password" id="txtloginpass" placeholder="Password" onblur="chkPwd();" onkeydown="if(event.keyCode==13) return IsLogin();" /><span class="pass_bg login_com"></span></p> <p class="enter"> <input id="CheckCode" type="text" placeholder="Verification Code" onblur="chkCode()" style="width: 100px;" /><img id="Image1" src="/logincheck/CheckCode.aspx" onclick="javascript:ReCode();" data-bd-imgshare-binded="1" alt="" /></p> <p id="errtip" class="span" style="color: red; display: none"></p> <p> <input type="submit" name="loginbutton" value="Login" onclick="return ISEmpty();" id="loginbutton" /></p> <p class="zhmm"><a href="/findpass/steponeen.aspx" class="fgtpas" target="_blank" title="Forgotten password">Forgotten password?</a> <a style="color:#666;" href="https://open.weixin.qq.com/connect/qrconnect?appid=wxe166679045cefd8a&redirect_uri=https%3a%2f%2fen.cbcie.com%2fweixin%2flogin.aspx&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect"><img src="//enimage.cbcie.com/smallimg/loginwx.png" width="18" height="18"/>WeChat</a> <a href="/user/reg.aspx" class="reg" target="_blank" title="Have not yet registered">Have not yet registered?</a></p> </div> </div> </form> <script type="text/javascript"> //$(".bg_clear1").hide(); //$(".bg_clear2").hide(); $("#txtloginname").change(function () { if ($("#txtloginname").val() != "") { //$(".bg_clear1").show(); $(".bg_clear1").click(function () { $(this).next("input").val(""); //$(".bg_clear1").hide(); }); } }); $("#txtloginpass").change(function () { if ($("#txtloginpass").val() != "") { //$(".bg_clear2").show(); $(".bg_clear2").click(function () { $(this).next("input").val(""); //$(".bg_clear2").hide(); }); } }); (function () { var action = $("#form1").attr("action"); $("#login").attr("action", action); }()); </script> <script language="javascript" type="text/javascript"> <!-- function ReCode() { var r = Math.random(); form1.Image1.src = "/logincheck/CheckCode.aspx?" + r; } //--> </script> <script type="text/javascript"> function isphone(checkStr) { var r = /^1[3-5,7,8]\d{9}$/g; return r.test(checkStr); } function isemail(checkStr) { var r = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; return r.test(checkStr); } //是否包含空格 function isnotrim(checkStr) { var r = /\s+/; return r.test(checkStr); } //是否包含空格 function isnotrim(checkStr) { var r = /\s+/; return r.test(checkStr); } //密码是否只包含数字,大小写字母和标点符号 function ispwdcont(checkStr) { var r = /^[a-zA-z0-9,\.\:!;]*$/; return !r.test(checkStr); } //获得焦点 function eventfouces(divid, inputid) { $("#" + divid).hide(); $("#" + inputid).removeClass("err"); } $(".enter").find("input").each(function () { $(this).focus(function () { $("#errtip").hide(); $(".enter").each(function () { $(this).find("input").removeClass("err"); }); }); }); //验证用户名 function isuser() { var user = $("#txtloginname").val(); if (user == "") { eventfouces("errtip", "txtloginname"); return false; } if (user.indexOf('@') == -1) { if (!isphone(user)) { $("#errtip").show(); //$("#errtip").html("Please enter a valid email"); $("#errtip").html("Please enter a valid email"); $("#txtloginname").addClass("err"); return false; } else { eventfouces("errtip", "txtloginname"); return true; } } else { if (!isemail(user)) { $("#errtip").show(); $("#errtip").html("Error Account format "); $("#txtloginname").addClass("err"); return false; } else { eventfouces("errtip", "txtloginname"); return true; } } } //验证密码 function chkPwd() { var pwd = $("#txtloginpass").val(); if (pwd == "") { eventfouces("errtip", "txtloginpass"); return false; } //密码格式有误的选项 if (pwd.length < 6 || pwd.length > 14 || ispwdcont(pwd) || isnotrim(pwd)) { $("#errtip").show(); $("#errtip").html("Error Password format"); $("#txtloginpass").addClass("err"); return false; } else { eventfouces("errtip", "txtloginpass"); return true; } } //验证码 function chkCode() { var c = $("#CheckCode").val(); if (c == "") { eventfouces("errtip", "CheckCode"); return false; } else { if (loginen.chkCode(c).value) { eventfouces("errtip", "CheckCode"); return true; } else { $("#errtip").show(); $("#errtip").html("Error Verification code"); $("#CheckCode").addClass("err"); return false; } } } function ISEmpty() { if (!isuser()) { return false; } if (!chkPwd()) { return false; } if (!chkCode()) { return false; } return true; } function UserActive() { var name = "Register_Info"; var value = ""; var date = new Date(); date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); document.cookie = name + "=" + escape(value) + expires + "; path=/";// ;domain=cbcie.com window.location.href = "regSuccess.aspx"; } </script> </body> </html>