wechat_bind.htm
3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!--{template wechat:wechat_header}-->
<!--{if $_G['wechat']['setting']['wechat_allowregister']}-->
<form id="registerform"method="post" class="block" autocomplete="off" action="{$selfurl}register">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="wxopenid" value="$wxopenid" />
<input type="hidden" name="avatar" value="$_GET[avatar]" />
<input type="hidden" name="submit" value="yes" />
<div class="loginbox registerbox">
<div class="login_from">
<li><input type="text" tabindex="1" class="px p_fre" size="30" autocomplete="off" value="$defaultusername" name="username" placeholder="{lang registerinputtip}" fwin="login"></li>
</div>
<div class="btn_register"><button tabindex="7" value="true" name="submit" type="submit" class="formdialog pn pnc"><span>{lang wechat:quickregister}</span></button></div>
</div>
</form>
<!--{/if}-->
<form id="loginform" method="post" autocomplete="off" action="{$selfurl}login">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="wxopenid" value="$wxopenid" />
<input type="hidden" name="submit" value="yes" />
<div class="loginbox">
<div class="login_from">
<ul>
<li><input type="text" value="" tabindex="1" class="px p_fre" size="30" autocomplete="off" value="" name="username" placeholder="{lang wechat:inputyourname}" fwin="login"></li>
<li><input type="password" tabindex="2" class="px p_fre" size="30" value="" name="password" placeholder="{lang login_password}" fwin="login"></li>
<li class="questionli">
<div class="login_select">
<span class="login-btn-inner">
<span class="login-btn-text">
<span class="span_question">{lang security_question}</span>
</span>
<span class="icon-arrow"> </span>
</span>
<select id="questionid_{$loginhash}" name="questionid" class="sel_list">
<option value="0" selected="selected">{lang security_question}</option>
<option value="1">{lang security_question_1}</option>
<option value="2">{lang security_question_2}</option>
<option value="3">{lang security_question_3}</option>
<option value="4">{lang security_question_4}</option>
<option value="5">{lang security_question_5}</option>
<option value="6">{lang security_question_6}</option>
<option value="7">{lang security_question_7}</option>
</select>
</div>
</li>
<li class="bl_none answerli" style="display:none;"><input type="text" name="answer" id="answer_{$loginhash}" class="px p_fre" size="30" placeholder="{lang security_a}"></li>
</ul>
</div>
<div class="btn_login"><button tabindex="3" value="true" name="submit" type="submit" class="formdialog pn pnc"><span>{lang mobile:qqregmode2}</span></button></div>
<!--{if $connecturl}-->
<p>{lang useqqconnectlogin}</p>
<div class="btn_qqlogin"><a href="$connecturl">{lang qqconnect:connect_mobile_login}</a></div>
<!--{/if}-->
</div>
</div>
</form>
<script type="text/javascript">
(function() {
$(document).on('change', '.sel_list', function() {
var obj = $(this);
$('.span_question').text(obj.find('option:selected').text());
if(obj.val() == 0) {
$('.answerli').css('display', 'none');
$('.questionli').addClass('bl_none');
} else {
$('.answerli').css('display', 'block');
$('.questionli').removeClass('bl_none');
}
});
})();
</script>
</body>
</html>