<!doctype html>
<html>
    <head>
    <title></title>
    <vt:if var="domain" value="" compare="!=">
      <script type="text/javascript">
        document.domain = '{$domain}';  
    </script></vt:if>
    <vt:include file="inc/meta.inc" />
    <script type="text/javascript" src="Scripts/QQLogin.js?ver={$version}"></script>
    <link href="Styles/QQLogin.css?ver={$version}" rel="stylesheet" type="text/css" />
    </head>
    <body>
<vt:if var="org.org_id" value="0" compare=">" remark="所属机构必须存在">
      <vt:if var="success" value="1" compare="=" remark="账户已经存在，且正常登录">
    <div class="loading-txt">正在登录...</div>
    <script>closeWinBox("{$domain2}");</script> 
  </vt:if>
      <vt:if var="success" value="-1" compare="=" remark="账户存在,但禁用或未通过审核">
    <div class="error-txt">当前账户“{$acc.Ac_Name}”被禁用，或未通过审核，暂无法登录。</div>
  </vt:if>
      <vt:if var="openid" value="" compare="!=" remark="通过openid获取QQ信息">
    <vt:if var="success" value="" compare="=">
          <div class="topBox">
          <div class="topRow"><div class="qq-logo"></div><span>登录</span></div>
        <div class="img-line"> <img src="{$photo2}"/> </div>
        <div class="show-tit"> {$name} </div>
        <div class="sex" style="display:none;">{$gender}</div>
        <div id="openid" style="display:none;">{$openid}</div>
      </div>
          <div class="leftbox">
        <dl class="titbox">
              <vt:if var="IsRegStudent" value="false" compare="="> <dd> 我是新用户</dd>
            </vt:if>
              <dd> 我是老用户</dd>
            </dl>
            <vt:if var="IsRegStudent" value="false" compare="="> 
        <div class="regbox"> 
              <!--新用户注册-->
              <form id="formRegist" name="formRegist" method="post" sms="{$forsms}">
            <div class="loginRow">
                  <widget type="text" ico="&#xe600;" deftxt="手机号" name="tbNewAcc" class="textbox width" nullable="false"  star="false" group="reg|regsms"> </widget>
                </div>
            <vt:if var="forsms" value="true" compare="=">
                  <div class="loginRow">
                <widget type="text" ico="&#xe636;" deftxt="验证码" name="tbNewCode" group="reg|regsms"
                class="textbox verify" nullable="false"  star="false" lenlimit="4-4" datatype="number"   group="Regist"> </widget>
                <img src="/Utility/codeimg.aspx?name=accRegvcode" class="verifyCode right-btn"/> </div>
                  <div class="loginRow">
                <widget type="text" ico="&#xe71a; iconphone" deftxt="短信验证码"  group="getSms" name="tbNewSms" class="textbox verify" nullable="false"  star="false" lenlimit="6-6"> </widget>
                <div class="right-btn" id="getRegSms" type="getSms" group="regsms" waiting="{num}秒后再获取" smsname="sms_reg_qq">获取短信</div>
              </div>
                </vt:if>
            <div class="loginRow btnBar">
                  <input type="submit" name="btnRegister" id="btnRegister" group="reg" value="手机号注册"  verify="true"  class="btnBind"/>
                </div>
                <vt:if var="IsQQDirect" value="true" compare="=">
            <div class="loginRow btnBar">
                  <input type="button" name="btnDirect" id="btnDirect" value="直接登录"  verify="true"  class="btnBind"/>
                </div>
                </vt:if>
          </form>
            </div>
             </vt:if>
        <div class="regbox">
              <form id="formBind" name="formBind" method="post" sms="{$forsms}">
            <div class="loginRow">
                  <widget type="text" ico="&#xe600;" deftxt="手机号/账号" name="tbAcc" class="textbox width" nullable="false"  star="false" group="bind|bindsms"> </widget>
                </div>
            <div class="loginRow">
                  <widget type="text" ico="&#xe636;" deftxt="验证码" name="tbCode"  star="false" group="bind|bindsms"
                class="textbox verify" nullable="false" lenlimit="4-4" datatype="number"   group="login"> </widget>
                  <img src="/Utility/codeimg.aspx?name=accbindvcode" class="verifyCode right-btn"/> </div>
            <vt:if var="forsms" value="true" compare="=">
                  <div class="loginRow">
                <widget type="text" ico="&#xe71a; iconphone" deftxt="短信验证码" name="tbSms"  group="bind" class="textbox verify" nullable="false"  star="false" lenlimit="6-6"> </widget>
                <div class="right-btn" id="getSms"  type="getSms" group="bindsms" waiting="{num}秒后再获取" smsname="sms_bind_qq">获取短信</div>
              </div>
              <vt:else />
              <div class="loginRow">
          <widget type="password" ico="&#xe6ed;" deftxt="密码" name="tbPw" class="textbox width" nullable="false"> </widget>
        </div>
                </vt:if>
            <div class="loginRow btnBar">
                  <input type="submit" name="btnBind" id="btnBind" group="bind" value="绑定账户"  verify="true"  class="btnBind"/>
                </div>
          </form>
            </div>
      </div>
        </vt:if>
  </vt:if>
      <vt:else />
      <div class="error-txt">回调错误！</div>
      <div class="error-txt">当前回调域：http://{$QQReturl}</div>
    </vt:if>
<script type="text/javascript" src="/Utility/CoreScripts/Widget.js?ver={$version}"></script>
</body>
</html>
