PageRenderTime 17ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/upload/templates/default/usercp_register.tpl

http://torrentpier2.googlecode.com/
Smarty Template | 292 lines | 282 code | 10 blank | 0 comment | 1 complexity | 002f7a7a2afe6c5592e992cfa447d36f MD5 | raw file
  1
  2<script type="text/javascript">
  3ajax.callback.user_register = function(data){
  4	$('#'+ data.mode).html(data.html);
  5};
  6</script>
  7<div id="autocomplete_popup">
  8	<div class="relative">
  9		<div class="close" onclick="$('div#autocomplete_popup').hide();"></div>
 10		<div class="title">{L_YOUR_NEW_PASSWORD}</div>
 11		<div>
 12			<input value="" autocomplete="off" type="text"/>
 13			<span class="regenerate" title="{L_REGENERATE}" onclick="autocomplete(true);"></span>
 14		</div>
 15	</div>
 16</div>
 17<h1 class="pagetitle">{PAGE_TITLE}</h1>
 18
 19<p class="nav"><a href="{U_INDEX}">{T_INDEX}</a></p>
 20
 21<form method="post" action="profile.php<!-- IF IS_ADMIN && PR_USER_ID -->?u={PR_USER_ID}<!-- ENDIF -->" class="tokenized" enctype="multipart/form-data">
 22<input type="hidden" name="mode" value="{MODE}" />
 23<input type="hidden" name="reg_agreed" value="1" />
 24<!-- IF NEW_USER --><input type="hidden" name="admin" value="1" /><!-- ENDIF -->
 25<!-- IF ADM_EDIT -->
 26<input type="hidden" name="u" value="{PR_USER_ID}" />
 27<!-- ENDIF -->
 28<!-- IF not ADM_EDIT -->
 29<script type="text/javascript">
 30x = new Date();
 31tz = -x.getTimezoneOffset()/60;
 32document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
 33</script>
 34<!-- ELSE -->
 35<input type="hidden" name="user_timezone" value="{USER_TIMEZONE}" />
 36<!-- ENDIF -->
 37
 38<table class="forumline usercp_register">
 39<col class="row1" width="35%">
 40<col class="row2" width="65%">
 41<tbody class="pad_4">
 42<tr>
 43	<th colspan="2">{L_REGISTRATION_INFO}</th>
 44</tr>
 45<tr class="row3 med">
 46	<td class="bold" colspan="2">{L_ITEMS_REQUIRED}</td>
 47</tr>
 48<tr>
 49	<td>{L_USERNAME}: *</td>
 50	<td><!-- IF CAN_EDIT_USERNAME --><input id="username" onBlur="ajax.exec({ action: 'user_register', mode: 'check_name', username: $('#username').val()}); return false;" type="text" name="username" size="35" maxlength="25" value="{USERNAME}" /><!-- ELSE --><b>{USERNAME}</b><!-- ENDIF -->
 51    <span id="check_name"></span></td>	
 52</tr>
 53<tr>
 54	<td>{L_EMAIL}: * <!-- IF EDIT_PROFILE --><!-- ELSE IF $bb_cfg['reg_email_activation'] --><h6>{L_EMAIL_EXPLAIN}</h6><!-- ENDIF --></td>
 55	<td><input id="email" onBlur="ajax.exec({ action: 'user_register', mode: 'check_email', email: $('#email').val()}); return false;" type="text" name="user_email" size="35" maxlength="40" value="{USER_EMAIL}" <!-- IF EDIT_PROFILE --><!-- IF $bb_cfg['emailer_disabled'] -->readonly="readonly" style="color: gray;"<!-- ENDIF --><!-- ENDIF --> />
 56	<span id="check_email"></span></td>	
 57</tr>
 58<!-- IF EDIT_PROFILE and not ADM_EDIT -->
 59<tr>
 60	<td>{L_CURRENT_PASSWORD}: * <h6>{L_CONFIRM_PASSWORD_EXPLAIN}</h6></td>
 61	<td><input type="password" name="cur_pass" size="35" maxlength="32" value="" /></td>
 62</tr>
 63<!-- ENDIF -->
 64<tr>
 65	<td><!-- IF EDIT_PROFILE -->{L_NEW_PASSWORD}: * <h6>{L_PASSWORD_IF_CHANGED}</h6><!-- ELSE -->{L_PASSWORD}: *<!-- ENDIF --></td>
 66	<td>
 67	    <input id="pass" type="<!-- IF SHOW_PASS -->text<!-- ELSE -->password<!-- ENDIF -->" name="new_pass" size="35" maxlength="32" value="" />&nbsp;
 68	    <span id="autocomplete" title="{L_AUTOCOMPLETE}">&#9668;</span> &nbsp;<i class="med">{L_PASSWORD_LONG}</i>
 69	</td>
 70</tr>
 71<tr>
 72	<td>{L_CONFIRM_PASSWORD}: * <!-- IF EDIT_PROFILE --><h6>{L_PASSWORD_CONFIRM_IF_CHANGED}</h6><!-- ENDIF --></td>
 73	<td>
 74	    <input id="pass_confirm" onBlur="ajax.exec({ action: 'user_register', mode: 'check_pass', pass: $('#pass').val(), pass_confirm: $('#pass_confirm').val() }); return false;" type="<!-- IF SHOW_PASS -->text<!-- ELSE -->password<!-- ENDIF -->" name="cfm_pass" size="35" maxlength="32" value="" />
 75	    <span id="check_pass"></span>
 76	</td>	
 77</tr>
 78<!-- IF CAPTCHA_HTML -->
 79<tr>
 80	<td>{L_CONFIRM_CODE}:</td>
 81	<td><span id="refresh_captcha">{CAPTCHA_HTML}</span> <img align="middle" src="./images/pic_loading.gif" title="{L_UPDATE}" onclick="ajax.exec({ action: 'user_register', mode: 'refresh_captcha'}); return false;" /></td>
 82</tr>
 83<!-- ENDIF -->
 84<!-- IF EDIT_PROFILE -->
 85<!-- IF not ADM_EDIT -->
 86<tr>
 87	<td>{L_AUTOLOGIN}:</td>
 88	<td><a href="{U_RESET_AUTOLOGIN}">{L_RESET_AUTOLOGIN}</a><h6>{L_RESET_AUTOLOGIN_EXPL}</h6></td>
 89</tr>
 90<!-- ENDIF -->
 91<tr>
 92	<th colspan="2">{L_PROFILE_INFO}</th>
 93</tr>
 94<!-- IF $bb_cfg['gender'] -->
 95<tr>
 96	<td>{L_GENDER}:</td>
 97	<td>{USER_GENDER}</td>
 98</tr>
 99<!-- ENDIF -->
100<!-- IF BIRTHDAY -->
101<tr>
102	<td>{L_BIRTHDAY}:</td>
103	<td>{BIRTHDAY}</td>
104</tr>
105<!-- ENDIF -->
106<tr>
107	<td>ICQ:</td>
108	<td><input type="text" name="user_icq" size="30" maxlength="15" value="{USER_ICQ}" /></td>
109</tr>
110<tr>
111	<td>{L_SKYPE}:</td>
112	<td><input type="text" name="user_skype" size="30" maxlength="250" value="{USER_SKYPE}" /></td>
113</tr>
114<tr>
115	<td>{L_WEBSITE}:</td>
116	<td><input type="text" name="user_website" size="50" maxlength="100" value="{USER_WEBSITE}" /></td>
117</tr>
118<tr>
119	<td>{L_OCCUPATION}:</td>
120	<td><input type="text" name="user_occ" size="50" maxlength="100" value="{USER_OCC}" /></td>
121</tr>
122<tr>
123	<td>{L_INTERESTS}:</td>
124	<td><input type="text" name="user_interests" size="50" maxlength="150" value="{USER_INTERESTS}" /></td>
125</tr>
126<tr>
127	<td>{L_LOCATION}:</td>
128	<td>
129		<div><input type="text" name="user_from" size="50" maxlength="100" value="{USER_FROM}" /></div>
130	</td>
131</tr>
132<!-- ENDIF -->
133<!-- IF $bb_cfg['allow_change']['language'] -->
134<tr>
135	<td>{L_BOARD_LANG}:</td>
136	<td>{LANGUAGE_SELECT}</td>
137</tr>
138<!-- ENDIF -->
139<!-- IF EDIT_PROFILE -->
140<tr>
141	<th colspan="2">{L_PREFERENCES}</th>
142</tr>
143<!-- IF TEMPLATES_SELECT -->
144<tr>
145	<td>{L_FORUM_STYLE}</td>
146	<td>
147		<div style="margin: 3px 0;">
148		{TEMPLATES_SELECT}
149		</div>
150	</td>
151</tr>
152<!-- ENDIF -->
153<!-- IF not SIG_DISALLOWED -->
154<tr colspan="2" id="view_message" class="hidden">
155	<td colspan="2">
156	    <div class="signature"></div>
157	</td>
158</tr>
159<script type="text/javascript">
160ajax.callback.posts = function(data){
161    $('#view_message').show();
162    $('.signature').html(data.message_html);
163    initPostBBCode('.signature');
164};
165</script>
166<!-- ENDIF -->
167<tr>
168	<td>{L_SIGNATURE}:<h6>{SIGNATURE_EXPLAIN}</h6></td>
169	<!-- IF SIG_DISALLOWED -->
170	<td class="tCenter">{L_SIGNATURE_DISABLE}</td>
171	<!-- ELSE -->
172	<td>
173		<textarea id="user_sig" name="user_sig" rows="5" cols="60" style="width: 96%;">{USER_SIG}</textarea>
174		<input type="button" value="{L_PREVIEW}" onclick="ajax.exec({ action: 'posts', type: 'view_message', message: $('textarea#user_sig').val() });">
175	</td>
176	<!-- ENDIF -->
177</tr>
178
179<tr>
180	<td>{L_PUBLIC_VIEW_EMAIL}:</td>
181	<td>
182		<label><input type="radio" name="viewemail" value="1" <!-- IF VIEWEMAIL -->checked="checked"<!-- ENDIF --> />{L_YES}</label>&nbsp;&nbsp;
183		<label><input type="radio" name="viewemail" value="0" <!-- IF not VIEWEMAIL -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
184	</td>
185</tr>
186<tr>
187	<td>{L_HIDE_USER}:</td>
188	<td>
189		<label><input type="radio" name="allow_viewonline" value="1" <!-- IF ALLOW_VIEWONLINE -->checked="checked"<!-- ENDIF --> />{L_YES}</label>&nbsp;&nbsp;
190		<label><input type="radio" name="allow_viewonline" value="0" <!-- IF not ALLOW_VIEWONLINE -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
191	</td>
192</tr>
193<tr>
194	<td>{L_DENY_VISITORS}:</td>
195	<td>
196		<label><input type="radio" name="allow_dls" value="0" <!-- IF not ALLOW_DLS -->checked="checked"<!-- ENDIF --> />{L_YES}</label>&nbsp;&nbsp;
197		<label><input type="radio" name="allow_dls" value="1" <!-- IF ALLOW_DLS -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
198	</td>
199</tr>
200<tr>
201	<td>{L_ALWAYS_NOTIFY}:<h6>{L_ALWAYS_NOTIFY_EXPLAIN}</h6></td>
202	<td>
203		<label><input type="radio" name="notify" value="1" <!-- IF NOTIFY -->checked="checked"<!-- ENDIF --> />{L_YES}</label>&nbsp;&nbsp;
204		<label><input type="radio" name="notify" value="0" <!-- IF not NOTIFY -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
205	</td>
206</tr>
207
208<!-- IF $bb_cfg['pm_notify_enabled'] -->
209<tr>
210	<td>{L_NOTIFY_ON_PRIVMSG}:</td>
211	<td>
212		<label><input type="radio" name="notify_pm" value="1" <!-- IF NOTIFY_PM -->checked="checked"<!-- ENDIF --> />{L_YES}</label>&nbsp;&nbsp;
213		<label><input type="radio" name="notify_pm" value="0" <!-- IF not NOTIFY_PM -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
214	</td>
215</tr>
216<!-- ENDIF -->
217<tr>
218	<td>{L_HIDE_PORN_FORUMS}:</td>
219	<td>
220		<label><input type="radio" name="hide_porn_forums" value="1" <!-- IF HIDE_PORN_FORUMS -->checked="checked"<!-- ENDIF --> />{L_YES}</label>&nbsp;&nbsp;
221		<label><input type="radio" name="hide_porn_forums" value="0" <!-- IF not HIDE_PORN_FORUMS -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
222	</td>
223</tr>
224<!-- IF SHOW_DATEFORMAT -->
225<tr>
226	<td>{L_DATE_FORMAT}:<h6>{L_DATE_FORMAT_EXPLAIN}</h6></td>
227	<td><input type="text" name="dateformat" value="{DATE_FORMAT}" maxlength="14" /></td>
228</tr>
229<!-- ENDIF -->
230<tr>
231	<th colspan="2">{L_AVATAR_PANEL}</th>
232</tr>
233<!-- IF AVATAR_DISALLOWED -->
234<tr>
235	<td colspan="2" class="tCenter pad_12">????? ?????????? ???????? ????????? ?? ????????? <a href="{$bb_cfg['terms_and_conditions_url']}"><b>?????? ??????</b></a></td>
236</tr>
237<!-- ELSE -->
238<tr>
239	<td colspan="2">
240		<table class="borderless bCenter w80 med">
241			<tr>
242				<td>????????? ??????????? ??? ??????????? ? ??? ? ??????????. ?????? ?? ????? {$bb_cfg['avatars']['max_width']} ????????, ?????? ?? ????? {$bb_cfg['avatars']['max_height']} ???????? ? ??????? ?? ????? {$bb_cfg['avatars']['max_size']} ????</td>
243				<td class="tCenter nowrap">
244					<p>{L_CURRENT_IMAGE}</p>
245					<p class="mrg_6"><!-- IF AVATAR_URL_PATH --><img src="{AVATARS_URL}/{AVATAR_URL_PATH}" alt="avatar" /><!-- ELSE -->--<!-- ENDIF --></p>
246					<p><label><input type="checkbox" name="delete_avatar" <!-- IF not AVATAR_URL_PATH -->disabled="disabled"<!-- ENDIF --> /> {L_DELETE_IMAGE}</label></p>
247				</td>
248			</tr>
249		</table>
250	</td>
251</tr>
252<!-- IF $bb_cfg['avatars']['up_allowed'] -->
253<tr>
254	<td>{L_UPLOAD_AVATAR_FILE}:</td>
255	<td>
256		<input type="hidden" name="MAX_FILE_SIZE" value="{$bb_cfg['avatars']['max_size']}" />
257		<input type="file" name="avatar" size="40" />
258	</td>
259</tr>
260<!-- ENDIF -->
261<!-- ENDIF / !AVATAR_DISALLOWED -->
262<!-- ENDIF / EDIT_PROFILE -->
263
264<!-- IF SHOW_REG_AGREEMENT -->
265<tr>
266	<td class="row2" colspan="2">
267	<div id="infobox-wrap" class="bCenter row1">
268		<fieldset class="pad_6">
269		<legend class="med bold mrg_2 warnColor1">{L_USER_AGREEMENT_HEAD}</legend>
270			<div class="bCenter">
271				<?php include($bb_cfg['user_agreement_html_path']) ?>
272			</div>
273			<p class="med bold mrg_4 tCenter"><label><input type="checkbox" value="" checked="checked" disabled="disabled" /> {L_USER_AGREEMENT_AGREE}</label></p>
274		</fieldset>
275	</div><!--/infobox-wrap-->
276	</td>
277</tr>
278<!-- ENDIF / SHOW_REG_AGREEMENT -->
279
280<tr>
281	<td class="catBottom" colspan="2">
282	<div id="submit-buttons">
283		<!-- IF EDIT_PROFILE --><input type="reset" value="{L_RESET}" name="reset" class="lite" />&nbsp;&nbsp;<!-- ENDIF -->
284		<input type="submit" name="submit" value="{L_SUBMIT}" class="main" />
285	</div>
286	</td>
287</tr>
288
289</tbody>
290</table>
291
292</form>