CINXE.COM
Login
<!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> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <meta http-equiv="Cache-Control" content="no-store"/> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"/> <title>Login</title><!-- 登录 --> <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.css"/> <link rel="stylesheet" type="text/css" href="/static/css/base.css"/> <link href="/static/js/layer/skin/layer.css" type="text/css" rel="stylesheet"/> <script src="/static/js/jquery.1.11.1.js"></script> <script src="/static/js/jQuery.fontFlex.js"></script> <script src="/static/js/base.js"></script> <script src="/static/js/layer/layer.js"></script> <script src="/static/js/swiper.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> var APP_MES_10582 = "Submit!"; // 提交! var APP_MES_10919 = "Please enter the original password!"; // 请输入原密码! var APP_MES_10920 = "Please enter a new password!"; // 请输入新密码! var APP_MES_10921 = "Please enter the confirmation password!"; // 请输入确认密码! var APP_MES_10118 = "Inconsistent password!!"; // 两次密码输入不一致! var APP_MES_10077 = "Successfully modified!"; // 修改成功! var APP_MES_10534 = "Please enter a question!"; // 请输入问题! var APP_MES_10535 = "Please enter the answer.!"; // 请输入答案! var APP_MES_10922 = "Account is already existed!"; // 账号已存在! var APP_MES_10923 = "Please enter your account number!"; // 请输入账号! var APP_MES_10925 = "Please input the password!"; // 请输入密码! var APP_MES_10373 = "8-20 bit letters plus numbers or symbols, case sensitive!"; // 8-20位字母加数字或符号,区分大小写! var APP_MES_10118 = "Inconsistent password!!"; // 两次输入密码不一致! var APP_MES_10924 = "Please select permissions!"; // 请选择权限! var APP_MES_10510 = "Overloaded!"; // 已超过最大限制数,不能再进行添加! var APP_MES_10948 = "Login name can not contain Chinese characters"; //登录名称不能含有汉字 var APP_MES_10949 = "This logon name does not exist, please enter the correct login name"; //此登录名不存在,请输入正确的登录名 var APP_MES_10671 = "Your login name"; //您的登录名 var APP_MES_10673 = "Your question"; //您的问题 var APP_MES_10950 = "Logon name cannot be empty"; //登录名称不能为空 var APP_MES_10669 = "Mail recovering"; //邮箱找回 var APP_MES_10947 = "Please enter your email address"; //请输入邮箱 var APP_MES_10951 = "Please enter the correct email address"; //请输入正确的邮箱地址 var APP_MES_10077 = "Successfully modified!"; // 修改成功! var APP_MES_10513 = "Failed!"; // 修改失败! var APP_MES_10952 = "This link has failed"; //此链接已经失效 var APP_MES_10953 = "Has been sent to your mailbox, please check"; //已发送到您的邮箱,请查收 var APP_MES_10954 = "Message sent failed, please try again"; //邮件发送失败,请重试 var APP_MES_10955 = "Please enter the email address when the user is registered."; //请输入用户注册时的邮箱地址 var APP_MES_10956 = "The user has not set password protection, please find the password by email"; //用户尚未设置密保,请通过邮箱找回密码 var APP_MES_10957 = "The answer is incorrect."; //答案信息有误 var APP_MES_10526 = "Wrong verification code"; //验证码输入不正确 var APP_MES_10528 = "Please enter the correct mobile phone number."; //请输入正确的手机号码 var APP_MES_10963 = "This mailbox already exists"; //此邮箱已存在 var APP_MES_10964 = "This user name already exists"; //此用户名已存在 var APP_MES_10965 = "This phone number already exists."; //此手机号已存在 var APP_MES_10529 = "Please select the type of enterprise"; //请选择企业类型 var APP_MES_10024 = "E-mail"; //电子邮箱 var APP_MES_10652 = "Mobile number"; //手机号码 var APP_MES_10653 = "Full name"; //姓 名 var APP_MES_10654 = "Position"; //职 务 var APP_MES_10655 = "User name"; //用 户 名 var APP_MES_10656 = "Password"; //密 码 var APP_MES_10647 = "Confirm password"; //确认密码 var APP_MES_10007 = "Company Name"; //公司名称 var APP_MES_10014 = "Address"; //公司地址 var APP_MES_10016 = "Zip Code"; //邮政编码 var APP_MES_10153 = "Main Products"; //主营产品 var APP_MES_10530 = "Please enter the correct zip code"; //请输入正确的邮政编码 var APP_MES_10966 = "Register successful"; //注册成功 var APP_MES_10967 = "Register failure"; //注册失败 var APP_MES_10004 = "Purchasing Product"; //采购产品 var APP_MES_10380 = "Fill out the company purchase products, please avoid being too general"; //填写公司采购产品,应避免过于笼统 var APP_MES_10811 = "Fill in the company's main products, please avoid being too general"; //填写公司主营产品,应避免过于笼统 var APP_MES_10979 = "Please enter a login name"; //请输入登录名称 var APP_MES_10980 = "This account has not been opened"; //此账号尚未开通 var APP_MES_10981 = "ERROR Incorrect username or password"; //用户名或密码错误 var APP_MES_10531 = "This enterprise name is already existed"; //此企业名称已存在 var APP_MES_11002 = "Your registration information has been successfully submitted, FSC staff will be reviewed within 48 hours (weekend or holidays postponed), through the review, the system will send a letter of confirmation to your mailbox. You will not be able to log on to the website during the audit."; //您注册的信息已成功提交,FSC工作人员将在48小时内予以审核(周末或节假日顺延),通过审核后,系统会向你的邮箱发送开通确认函。审核期间,您无法登陆网站。 var APP_MES_10544 = "Picture"; //图片 var APP_MES_11007 = "Select"; //选中 var APP_MES_11003 = "Piece"; //张 var APP_MES_10767 = "A total of"; //共 var APP_MES_11008 = "Re add"; //重新添加 var APP_MES_10915 = "Start uploading"; //开始上传 var APP_MES_11009 = "Upload successfully"; //上传成功 var APP_MES_11010 = "Pause upload"; //暂停上传 var APP_MES_11011 = "Continue uploading"; //继续上传 var APP_MES_11004 = "Already uploded"; //已上传 var APP_MES_11012 = "Failure"; //失败 </script> <style> .span4 { width: 240px !important; font-size: 12px; } a { margin: 0; padding: 0; font-size: 75%; vertical-align: baseline; background: transparent; } </style> </head> <body> <div id="header"> <!--logo begin--> <!--logo begin--> <div id="topbar"> <div class="container"> <div class="row"> <div class="span4 "> <a href="http://www.foundry-suppliers.com/index">Homepage</a><!-- 返回首页 --> </div> <div class="span6 "></div> <div class="_span4 text-right"> <a href="http://www.foundry-suppliers.com/user/tologin">Login</a><!-- 登录 --> <a href="http://www.foundry-suppliers.com/user/toregister">Join Now</a><!-- 注册 --> <!-- <a href="">中文</a> --> </div> </div> </div> </div> <!--logo end--> <!--logo end--> </div> </div> <div class="login_page_wrap"> <div class="login_header"> <a class="logo_img" href="/index"><img src="/static/images/logo.png" alt="" /></a> <div class="site_describe"> <p class="txt_info">Professional e-commerce exchange platform for global foundry</p><!-- 专业的铸造供需线上交流平台 --> <p class="txt_link">www.foundry-suppliers.com</p> </div> </div> <div class="login_main clearfix"> <div class="login_ad_wrap"> <a href="http://castings.foundry.cn/"><img src="/static/images/login_ad.png" alt="" /></a> </div> <div class="login_form"> <form id="loginForm" method="post" onsubmit="return false" action=""> <div class="login_list"> <span class="iconfont_login">Sign in</span><!-- 用户登录--> </div> <div class="login_list"> <input class="login_txt" name="loginName" type="text" placeholder="Please enter the user name" /><!--请输入用户名 --> <span class="user_icon iconfont icon-guanliyuan"></span> </div> <div style="magin-bottom:5px;" class="login_list" > <input class="login_txt" name="password" type="password" placeholder="Please enter a password"/><!-- 请输入密码 --> <span class="password_icon iconfont icon-mima"></span> </div> <div class="login_more_box" style="margin-bottom: 15px;margin-top: -20px;"> <span class="account"> <input type="checkbox" name="account" style="margin-left: 10px;"/> <span class="account">Remember account</span><!--记住账号 --> </span> <span style="margin-left: -80px;"> <a class="forget_pwd" href="/user/forgetpwd">Retrieve password</a><!-- 找回密码 --> </span> <span > <a class="register_link" href="/user/toregister">Free sign up</a><!-- 免费注册 --> </span> </div> <div class="login_btn_wrap"> <span class="btn btn-block btn-danger">Login</span><!-- 登录--> </div> <div class="login_more_box"> <span class="errMsg" style="color:red;font-size: 18px;"></span> </div> </form> </div> </div> </div> </body> <script type="text/javascript"> var $ctx = ""; $(function(){ // 登录 $('.btn-danger').click(function(){ $(".login_main input").each(function(){ if($(this).val() == $(this).attr('placeholder')){ $(this).val(""); } }); var param = { loginName:$('.login_main').find("input[name='loginName']").val() ,password:$('.login_main').find("input[name='password']").val() }; if(param.loginName == '') { $('.errMsg').html(APP_MES_10979);//请输入登录名称 return false; } if(param.password == '') { $('.errMsg').html(APP_MES_10925);//请输入密码 return false; } $.ajax({ type:'POST' ,url:$ctx+'/user/login?temp='+new Date().getTime() ,data:param ,success:function(data) { if(data.flag == -1) { $('.errMsg').html(APP_MES_10980);//此账号尚未开通 } if(data.flag == 0) { $('.errMsg').html(APP_MES_10981);//用户名或密码错误 } if(data.flag == 1) { saveLog(); //var url = cookie.get("fsc_url"); var url = getCookie("fsc_url"); if(url == null || (url.indexOf("user/null") != -1) ) { url = "/index"; } url = "" + url.replace("\"", "").replace("\"", ""); //产品列表进行登录得时候要返回列表页面 if(url.indexOf("/companyManage/product/search") != -1){ url = url.replace("/companyManage/product/search", "/companyManage/product") } //注册 if(url.indexOf("/user/captcha") != -1){ url = url.replace("/user/captcha", "/user/toregister") } //铸造黄页 if(url.indexOf("/suppliers/get/companyList") != -1){ url = url.replace("/suppliers/get/companyList", "/suppliers/list") } //铸造黄页 if(url.indexOf("/buyers/company/search/list") != -1){ url = url.replace("/buyers/company/search/list", "/supplier/companyOrfoundry/list") } //铸造黄页 if(url.indexOf("/buyers/foundry/search/list") != -1){ url = url.replace("/buyers/foundry/search/list", "/supplier/companyOrfoundry/list") } //企业产品 if(url.indexOf("/companyManage/product/search") != -1){ url = url.replace("/companyManage/product/search", "/companyManage/product") } //重置密码 if(url.indexOf("/user/resetpwd") != -1){ url = "/index"; } window.location.href = encodeURI(url);//"/home/list"; } } }); }); $('#loginForm').keyup(function(ev){ if(ev.keyCode == 13){ $(".login_main input").each(function(){ if($(this).val() == $(this).attr('placeholder')){ $(this).val(""); } }); var param = { loginName:$('.login_main').find("input[name='loginName']").val() ,password:$('.login_main').find("input[name='password']").val() }; if(param.loginName == '') { $('.errMsg').html(APP_MES_10979);//请输入登录名称 return false; } if(param.password == '') { $('.errMsg').html(APP_MES_10925);//请输入密码 return false; } $.ajax({ type:'POST' ,url:$ctx+'/user/login?temp='+new Date().getTime() ,data:param ,success:function(data){ if(data.flag == 0 || data.flag == -1) { $('.errMsg').html(APP_MES_10981);//用户名或密码错误 } if(data.flag == 1) { saveLog(); //window.location.href = $ctx+"/home/list"; var url = getCookie("fsc_url"); if(url == null || (url.indexOf("user/null") != -1) ) { url = "/index"; } url = "" + url.replace("\"", "").replace("\"", ""); window.location.href = encodeURI(url);//"/home/list"; } if(data.flag == -1) { $('.errMsg').html(APP_MES_10980);//此账号尚未开通 } } }); } }); }); function saveLog() { $.ajax({ type:'POST' ,url:$ctx+'/user/log/save' ,data:'' ,success:function(data){} }); } </script> </html>