-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbind.tpl
178 lines (165 loc) · 6.62 KB
/
bind.tpl
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{if $ErrorMsg}
{include file="error/alert" value="$ErrorMsg"}
{/if}
{if $SuccessMsg}
{include file="error/notifications" value="$SuccessMsg" url="/clientarea"}
{/if}
<script src="/themes/clientarea/default/assets/js/public.js?v={$Ver}"></script>
<style>
.input-group-prepend {
width: 100px;
}
.auth-full-bg .bg-overlay {
background: url(/themes/clientarea/default/assets_custom/img/new-background.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
opacity:1;
}
</style>
<script>
var mk = '{$Setting.msfntk}';
</script>
<div class="container-fluid p-0">
{if $Setting.login_header}
<div class="text-center">{$Setting.login_header}</div>
{/if}
<div class="row no-gutters">
<div class="col-xl-7 bglogo">
<div class="auth-full-bg pt-lg-5 p-4">
<div class="w-100">
{if $Setting.custom_login_background_img}
<div class="bg-overlay" style="background: url({$Setting.custom_login_background_img}) center no-repeat !important; background-size:cover !important;"></div>
{else/}
<div class="bg-overlay"></div>
{/if}
<div class="d-flex h-100 flex-column justify-content-center">
<div class="row justify-content-center">
<div class="col-lg-7">
<div class="text-center">
<div dir="ltr">
<div class="owl-carousel owl-theme auth-review-carousel" id="auth-review-carousel">
<div class="item">
<div class="py-3">
<h1 class="text-white text-left">
{$Setting.custom_login_background_char}</h1>
<p class="text-white-50 text-left">
{$Setting.custom_login_background_description}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end col -->
<div class="col-xl-5">
<div class="auth-full-page-content p-md-5 p-4">
<div class="login_right mx-auto">
<div class="d-flex flex-column h-100">
<div class="my-auto">
<div class="logo text-center" >
<a href="{$Setting.web_jump_url}"><img src="{$Setting.web_logo}" alt="" class="cursor"></a>
</div>
<ul class="affs-nav nav nav-tabs nav-tabs-custom nav-justified" role="tablist">
{if $CallbackInfo == 0 || $CallbackInfo == 2}
<li class="nav-item">
<a class="nav-link fs-14 bg-transparent active" data-toggle="tab" href="#email" role="tab" aria-selected="true">{$Lang.mailbox_binding}</a>
</li>
{/if}
{if $CallbackInfo == 0 || $CallbackInfo == 1}
<li class="nav-item">
<a class="nav-link fs-14 bg-transparent {if $CallbackInfo ==1 }active{/if}" data-toggle="tab" href="#phone" role="tab" aria-selected="false">{$Lang.mobile_phone_binding}</a>
</li>
{/if}
</ul>
<div class="mt-4">
<div class="tab-content">
{if $CallbackInfo == 0 || $CallbackInfo == 2}
<div id="email" class="tab-pane active" role="tabpanel">
<form method="post" action="/bind?action=email">
<div class="form-group">
<label for="username">{$Lang.mailbox}</label>
<input type="text" class="form-control" id="emailInp" name="email" placeholder="{$Lang.please_input_email}" required>
</div>
{if $Verify.allow_register_email_captcha==1}
{include file="includes/verify" type="allow_register_email_captcha" positon="top"}
{/if}
<div class="form-group">
<label for="code">{$Lang.verification_code}</label>
<div class="input-group">
<input type="text" class="form-control" id="code" name="code" placeholder="{$Lang.please_enter_code}" required>
<div class="input-group-append">
<button class="btn btn-primary" type="button" onclick="getCode(this,'oauth/bind_email_send','allow_register_email_captcha')">{$Lang.get_code}</button>
</div>
</div>
</div>
<div class="mt-3">
<button type="submit"
class="btn btn-primary py-2 fs-14 btn-block waves-effect waves-light">{$Lang.submit}</button>
</div>
</form>
</div>
{/if}
{if $CallbackInfo == 0 || $CallbackInfo == 1}
<div id="phone" class="tab-pane {if $CallbackInfo ==1 }active{/if}" role="tabpanel">
<form method="post" action="/bind?action=phone">
<div class="form-group">
<label for="username">{$Lang.phone_number}</label>
<div class="input-group">
{if $Bind.allow_login_register_sms_global==1}
<div class="input-group-prepend">
<select class="form-control select2 select2-hidden-accessible" data-select2-id="1" tabindex="-1" aria-hidden="true" name="phone_code" id="phoneCodeSel">
{foreach $SmsCountry as $list}
<option value="{$list.phone_code}" {if $list.phone_code=="+86"}selected {/if}>
{$list.link}
</option>
{/foreach}
</select>
</div>
{/if}
<input type="text" class="form-control" id="phoneInp" name="phone" placeholder="{$Lang.please_enter_your_mobile_phone_number}"
required>
</div>
</div>
{if $Verify.allow_register_phone_captcha==1}
{include file="includes/verify" type="allow_register_phone_captcha" positon="top"}
{/if}
<div class="form-group">
<label for="code">{$Lang.verification_code}</label>
<div class="input-group">
<input type="text" class="form-control" id="code" name="code" placeholder="{$Lang.please_enter_code}" required>
<div class="input-group-append">
<button class="btn btn-primary" type="button" onclick="getCode(this,'oauth/bind_phone_send','allow_register_phone_captcha')">{$Lang.get_code}</button>
</div>
</div>
</div>
<div class="mt-3">
<button type="submit"
class="btn btn-primary py-2 fs-14 btn-block waves-effect waves-light">{$Lang.submit}</button>
</div>
</form>
</div>
{/if}
</div>
<div class="mt-5 text-center">
<p>{$Lang.there_already_account} <a href="login" class="font-weight-medium text-primary"> {$Lang.sign_in}</a> </p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end col -->
</div>
{if $Setting.login_footer}
<div class="text-center">{$Setting.login_footer}</div>
{/if}
<!-- end row -->
</div>
<!-- end container-fluid -->