<!--#include file="top.asp"-->
<div class="nch-breadcrumb-layout">
  </div>
<style type="text/css">
.public-top-layout, .head-search-bar, .head-user-menu, .public-nav-layout, .nch-breadcrumb-layout, #faq {
	display: none !important;
}
.public-head-layout {
	margin: 10px auto -10px auto;
}
.wrapper {
	width: 1000px;
}
#footer {
	border-top: none!important;
	padding-top: 30px;
}
</style>
<div class="nc-login-layout">
  <div class="left-pic"><img src="/skin/waimai/template/style_waimai/images/1.jpg"  border="0"></div>
  <div class="nc-login">
    <div class="nc-login-title">
      <h3>用户登录</h3>
    </div>
    <div class="nc-login-content" id="demo-form-site">
      <form id="login_form" method="post" class="bg">
        <input type='hidden' name='formhash' value='Ukrq93YU3LoxdAXTdMpesTlLm8dYknL' />        <input type="hidden" name="form_submit" value="ok" />
        <input name="nchash" type="hidden" value="df8c580a" />
        <dl>
          <dt>用户名</dt>
          <dd style="min-height:54px;">
            <input type="text" class="text" autocomplete="off"  name="user_name" id="user_name">
            <label></label>
          </dd>
        </dl>
        <dl>
          <dt>密&nbsp;&nbsp;&nbsp;码 </dt>
          <dd style="min-height:54px;">
            <input type="password" class="text" name="password" autocomplete="off"  id="password">
            <label></label>
          </dd>
        </dl>
                <dl>
          <dt>验证码</dt>
          <dd style="min-height:54px;">
            <input type="text" name="captcha" class="text w50 fl" id="captcha" maxlength="4" size="10" />
            <img src="http://www.21577.com/index.php?act=seccode&op=makecode&nchash=df8c580a" name="codeimage" border="0" id="codeimage" class="fl ml5"> <a href="javascript:void(0)" class="ml5" onclick="javascript:document.getElementById('codeimage').src='http://www.21577.com/index.php?act=seccode&op=makecode&nchash=df8c580a&t=' + Math.random();">看不清，换一张</a>
            <label></label>
          </dd>
        </dl>
                <dl>
          <dt>&nbsp;</dt>
          <dd>
            <input type="button" class="submit" value="登&nbsp;&nbsp;&nbsp;录" name="Submit">
            <a class="forget" href="index.php?act=login&op=forget_password">忘记密码？</a>
            <input type="hidden" value="" name="ref_url">
          </dd>
        </dl>
      </form>
      <dl class="mt10 mb10">
        <dt>&nbsp;</dt>
        <dd>还不是本站会员？立即<a title="" href="index.php?act=login&op=register&ref_url=" class="register">注册</a></dd>
      </dl>
            <dl>
        <dd class="nc-login-other">
          <p>您可以用合作伙伴账号登录：</p>
                    <a href="#" title="QQ" class="qq">&nbsp;</a>
                              <a href="#" title="新浪微博" class="sina">&nbsp;</a>
                  </dd>
      </dl>
          </div>
    <div class="nc-login-bottom"></div>
  </div>
</div>
<script>
$(document).ready(function(){
    $('input[name="Submit"]').click(function(){
        if($("#login_form").valid()){
        	$("#login_form").submit();
        } else{
        	document.getElementById('codeimage').src='http://www.21577.com/index.php?act=seccode&op=makecode&nchash=df8c580a&t=' + Math.random();
        }
    });
	$("#login_form").validate({
        errorPlacement: function(error, element){
            var error_td = element.parent('dd');
            error_td.find('label').hide();
            error_td.append(error);
        },
		rules: {
			user_name: "required",
			password: "required"
			            ,captcha : {
                required : true,
                minlength: 4,
                remote   : {
                    url : 'http://www.21577.com/index.php?act=seccode&op=check&nchash=df8c580a',
                    type: 'get',
                    data:{
                        captcha : function(){
                            return $('#captcha').val();
                        }
                    }
                }
            }
					},
		messages: {
			user_name: "用户名不能为空",
			password: "密码不能为空"
			            ,captcha : {
                required : '验证码不能为空',
                minlength: '验证码不能为空',
				remote	 : '验证码错误'
            }
					}
	});
});
</script><div id="faq">
  <!--#include file="bottom.asp"-->