

<style>
.red {color:#f00 !important}
.inputbox {font-size:14	px;}
.form .co3{font-size:13px;font-weight:bold;color:#666}
</style>



	<link rel="stylesheet" type="text/css" href="resources/login/static/css/ui2.css?2013032917">


<script src="resources/login/static/js/landing-min.js?2013032917"></script>





<script type="text/javascript" src="resources/js/global.js"></script>
<script type="text/javascript" src="resources/js/common.js"></script>
<script src="resources/js/checkreg.js"></script>
<script src="resources/js/pinyin.js"></script>

{{if $action=="login"}}
<script>
window.onload =function() {
if(document.all) {

document.getElementById("login").click();

}

// 其它浏览器

else {

var e = document.createEvent("MouseEvents");

e.initEvent("click", true, true);

document.getElementById("login").dispatchEvent(e);

}

}
</script>
{{else}}
{{/if}}

<a role="button"  data-category="UserAccount" data-action="login" data-toggle="modal" id="login"  href="#login-modal">登录</a>
 <a role="button"  data-category="UserAccount" data-action="login" data-toggle="modal" href="#signup-modal">注册</a>
  <a role="button"  data-category="UserAccount" data-action="login" data-toggle="modal" href="#forgetform">找回密码</a>
      <div class="modal in" id="login-modal1" >
      </div>
    </div>
  </div>
</div>
  <div class="modal in" id="login-modal" > <a class="close" data-dismiss="modal">×</a>
        <h1>登录</h1>
        {{if $iisp_qq_show=="1"}}<ul class="login-bind-tp">
          <li class="qweibo"> <a href="/qq/oauth/qq_login.php"><em>&nbsp;</em> QQ登录</a> </li>
        
        </ul>
{{else}}
{{/if}}
        <p><font color=red>{{$mess}}</font></p>
        <form class="login-form clearfix" method="post" action="index.php?page_id={{$page_id}}&action=login&GoUrl={{$GoUrl}}">
          <div class="form-arrow"></div>
          <input name="UserName" type="text" placeholder="用户：">
          <input name="Password" type="password" placeholder="密码：">
          <input type="submit" name="type" class="button-blue login" value="登录">
          <input type="hidden" name="return-url" value="">
          <div class="clearfix"></div>
          <label class="remember">
          <input name="remember" type="checkbox" checked/>
          下次自动登录 </label>
          <a class="forgot">忘记密码？</a>
        
        </form>
      </div>
 
<div class="modal in" id="signup-modal" > <a class="close" data-dismiss="modal">×</a>
  <h1>注册 {{if $iisp_qq_show=="1"}}
          <a href="/qq/oauth/qq_login.php"><font color=red>(使用QQ快捷登陆)</font></a>
{{else}}
{{/if}} </h1>
  
 

  <form class="signup-form clearfix" method="post" action="index.php?page_id={{$page_id}}&action=usereg&GoUrl={{$GoUrl}}">
    <p class="error"></p>
    <input name="UserName" type="text" warning="×用户名错误，需要6-16位字母、数字或下划线，且首位字母" check="^[a-zA-Z0-9_]{6,16}$" onChange="checkValue(this);" placeholder="用户名：字母、数字和下划线,且首位字母">

 <input name="Password" type="password"   placeholder="密码：请输入密码" warning="×密码错误，需要6-16位字母、数字或下划线，且首位字母" check="[a-zA-Z0-9_]{6,16}$" onChange="checkValue(this)" />
  
   
  <input name="Password2" type="password"   placeholder="确认密码：再次输入密码" check="^[a-zA-Z0-9_]{6,20}$" warning="×密码错误，需要6-16位字母、数字或下划线，且首位字母" onchange="checkValue(this);check2Pass(Password,Password2);" />
	<input name="Contact_GB" type="text"  size="45" maxlength="20" placeholder="姓名：必须为英文，且不能为空" warning="×请按要求填写" check="[a-zA-Z0-9_\.\,]{2,99}$" onChange="checkValue(this)" onclick="checkValue(this)" />

<input name="Tel" type="text"   placeholder="电话: 手机或座机，格式如+86.13xxxxxxxxx" size="30" maxlength="30" warning="×电话格式不正确" check="^\+{1,1}[0-9]{1,3}\.[0-9]{3,4}[0-9]{6,9}$" onchange="checkValue(this)"  />
<input name="Addr_GB" type="text"  size="65" maxlength="100" placeholder="通讯地址: 必须含有中文，且不能为空" warning="×请按要求填写" check="[\u4e00-\u9fa5]" onchange="checkValue(this);change2cn(this.value, this.form.Addr_EN);"  />
<input name="Email" type="text"  size="55" maxlength="30"  placeholder="邮箱：请输入正确电子邮件格式" warning="×电子邮件格式不正确" check="^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$" onchange="checkValue(this)"  />

<!--
  <input name="Contact_GB" type="text"  size="45" maxlength="20" placeholder="姓与名均不得少于两个汉字" warning="×请按要求填写" check="[\u4e00-\u9fa5]{2,20}$" onChange="checkValue(this);change2cn(this.value, this.form.Contact_EN);"  />


   <input name="Company_GB" type="text"  size="65" maxlength="50" placeholder="单位名称必须含有中文，且不能为空" warning="×请按要求填写" check="[\u4e00-\u9fa5]"  onChange="checkValue(this);change2cn(this.value, this.form.Company_EN);"  />

<input name="Company_EN" type="text"  size="65" maxlength="50" placeholder="单位名称必须为英文，且不能为空" warning="×请按要求填写" check="[a-zA-Z0-9_\.\,]{2,99}$" onChange="checkValue(this)" onclick="checkValue(this)" />
<input name="Country" type="text"  check="[A-Z_\.\,]{2}$" warning="×请填写两位大写字母国家代码" onChange="checkValue(this)" value="CN" size="5" maxlength="2" />
<input name="Province_GB" type="text"  size="30" placeholder="请填写中文省份" check="[\u4e00-\u9fa5]" warning="×请按要求填写" onChange="checkValue(this);"  />
<input name="City_GB" type="text"  size="30" check="[\u4e00-\u9fa5]" placeholder="请填写中文城市" warning="×请按要求填写" onChange="checkValue(this);"  />



<input name="Addr_EN" type="text"  size="65" maxlength="100" placeholder="通讯地址必须为英文，且不能为空" warning="×请按要求填写" check="[a-zA-Z0-9_\.\,]{2,99}$" onchange="checkValue(this);" onclick="checkValue(this)" />
<input name="PostCode" type="text"  size="10" maxlength="15" check="[0-9_]{6,6}$" warning="×请填写正确的邮政编码" onChange="checkValue(this);"  />

<input name="Fax" type="text"  value="+86." size="30" maxlength="30"  warning="×传真格式不正确" check="^\+{1,1}[0-9]{1,3}\.[0-9]{3,4}[0-9]{6,9}$" onchange="checkValue(this)"  />
-->
 <input name="openid" type="hidden" value="{{$openid}}" />

    <div class="clearfix"></div>
	 
    <input type="submit" name="type" class="button-blue reg" value="注册" data-category="UserAccount" data-action="regist">
  
  </form>
</div>
<div class="modal in" id="forgetform"> <a class="close" data-dismiss="modal">×</a>
  <h1>忘记密码</h1>
  <form class="forgot-form" method="post" action="index.php?page_id={{$page_id}}&action=getpwd&GoUrl={{$GoUrl}}">
   	<input  name='UserName' placeholder="用户名：" />
	
	<input name='UserMail' value="" placeholder="注册邮箱：">

    <div class="clearfix"></div>
    <input type="submit" name="type" class="forgot button-blue" value="找回密码">
  </form>
</div>



