C:\wamp\www\phpld 4.2.1\PhpLD\templates\Professional\profile.tpl | C:\wamp\www\phpld42\PhpLD\templates\Professional\profile.tpl
1 {capture name="title"} - {l}User Management{/l}{/capture} 2 {capture assign="in_page_title"}{l}User Management{/l}{/capture} 3 4 {include file="header.tpl"} 5 {include file="top_bar.tpl"} 6 7 {include file="validation.tpl" form_id="submit_form" validators=$validators} 8 9 {literal} 10 <script type="text/javascript"> 11 jQuery(document).ready(function(){ 12 13 var thumb = jQuery('img#thumb'); 14 15 new AjaxUpload('IMG', { 16 action: jQuery('form#submit_form').attr('action'), 17 name: 'image', 18 onSubmit: function(file, extension) { 19 jQuery('div.preview').addClass('loading'); 20 }, 21 onComplete: function(file, response) { 22 thumb.load(function(){ 23 jQuery('div.preview').removeClass('loading'); 24 thumb.unbind(); 25 }); 26 thumb.attr('src', response); 27 } 28 }); 29 }); 30 31 </script> 32 33 {/literal} 34 35 {strip} 36 {if $thank_you} 37 <h3>{l}Information{/l}</h3> 38 <table border="0" class="formPage" align="center"> 39 <tr> 40 <td> 41 {l}Thank you for registering. Your account has been created. You may now log in and submit links.{/l} 42 </td> 43 </tr> 44 </table> 45 {elseif $confirmed} 46 <h3>{l}Information{/l}</h3> 47 <table border="0" class="formPage" align="center"> 48 <tr> 49 <td> 50 {l}Thank you for confirming your email. Your account has been activated. You may now log in with your username and password.{/l} 51 </td> 52 </tr> 53 </table> 54 {elseif $user_logged} 55 <h3>{l}User Area{/l}</h3> 56 57 58 {if $profileUpdate} 59 <p>{l}Profile updated{/l}</p> 60 61 {/if} 62 63 64 <p> <a href="{$smarty.const.DOC_ROOT}/index.php?uid={$regular_user_details.ID}" title="{l}Browse personal links{/l}">{l}My Submissions{/l}</a></p> 65 66 <p> <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=edit" title="{l}Edit Profile{/l}">{l}Edit Profile{/l}</a> 67 </p> 68 {elseif $agreement_terms} 69 <h3>{l}Registration Agreement Terms{/l}</h3> 70 <table border="0" class="formPage" align="center"> 71 <tr> 72 <td> 73 While the administrators and editors of this link directory will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every link. Therefore you acknowledge that all links submitted to this link directory express the views and opinions of the submitter and not the administrators, editors or webmaster (except for posts by these people) and hence will not be held liable. 74 <br /><br /> 75 You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other links and/or material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all submitted links is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and editors of this link directory have the right to remove, edit or move any link at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and editors cannot be held responsible for any cracking attempt that may lead to the data being compromised. 76 <br /><br /> 77 This link directory uses sessions to store information. These do not contain any of the information you have entered above; they serve only to improve your viewing and submit pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one). 78 <br /><br /> 79 By clicking Register below you agree to be bound by these conditions. 80 </td> 81 </tr> 82 <tr> 83 <td> 84 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&amp;agreed=true" title="{l}I Agree to these terms{/l}">{l}I Agree to these terms{/l}</a> 85 </td> 86 </tr> 87 <tr> 88 <td> 89 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&amp;agreed=false" title="{l}I Do Not Agree to these terms{/l}">{l}I Do Not Agree to these terms{/l}</a> 90 </td> 91 </tr> 92 </table> 93 94 {elseif $confirm eq 1} 95 {if $password_recovered eq 1} 96 <h3>{l}Information{/l}</h3> 97 <table border="0" class="formPage" align="center"> 98 <tr> 99 <td> 100 {l}You can now login with your new password.{/l} 101 </td> 102 </tr> 103 </table> 104 105 {elseif $password_recovered eq 0} 106 <h3>{l}Information{/l}</h3> 107 <table border="0" class="formPage" align="center"> 108 <tr> 109 <td class="err"> 110 {l}An error occured while saving your new password.{/l} 111 </td> 112 </tr> 113 </table> 114 {/if} 115 116 {elseif $send_password eq 1} 117 {if $email_status eq 1 or $wrong_user_details eq 1} 118 <h3>{l}Information{/l}</h3> 119 <table border="0" class="formPage" align="center"> 120 <tr> 121 <td class="{if $email_sent eq 'sent'}msg{else}err{/if}"> 122 {if $email_sent eq 'sent'} 123 {l}Please check your email to confirm your new password request.{/l} 124 {elseif $email_sent eq 'error'} 125 {l}An error occurred while sending the email.{/l} 126 {if $email_error_msg}<br />{$email_error_msg}{/if} 127 {elseif $wrong_user_details} 128 {l}The details you supplied do not match any registered user.{/l} 129 {else} 130 {l}Unknown error.{/l} 131 {/if} 132 </td> 133 </tr> 134 </table> 135 {else} 136 <form method="post" action="" id="submit_form"> 137 <h3>{l}Recover Password{/l}</h3> 138 <table border="0" class="formPage" align="center" width="auto"> 139 <tr> 140 <td class="label"><span class='req'>*</span>{l}Login{/l}:</td> 141 <td class="smallDesc"> 142 <input type="text" name="LOGIN" value="{$LOGIN}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" /> 143 </td> 144 </tr> 145 <tr> 146 <td class="label"><span class='req'>*</span>{l}Email{/l}:</td> 147 <td class="smallDesc"> 148 <input type="text" name="EMAIL" value="{$EMAIL}" size="20" maxlength="255" class="text" /> 149 </td> 150 </tr> 151 {if $smarty.const.VISUAL_CONFIRM eq 2} 152 <tr> 153 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td> 154 <td class="field"> 155 <span style="color: red;"> 156 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 157 {if $errorKey == 'DO_MATH'} 158 {if is_array($errorItem)} 159 {$errorItem.remote}<br/> 160 {else} 161 {$errorItem}<br/> 162 {/if} 163 {/if} 164 {/foreach} 165 </span> 166 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/> 167 <br/> 168 <br/> 169 </td> 170 </tr> 171 {/if} 172 {if $smarty.const.VISUAL_CONFIRM eq 1} 173 <tr> 174 <td class="label"> 175 <span class='req'>*</span>{l}Confirmation code{/l} 176 <p class="small">{l}This helps prevent automated registrations.{/l}</p> 177 </td> 178 <td class="smallDesc"> 179 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 180 <input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" /> 181 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" /> 182 </td> 183 </tr> 184 {/if} 185 <tr> 186 <td>&nbsp;</td> 187 <td><input type="submit" name="send" value="Submit" class="btn" /></td> 188 </tr> 189 </table> 190 <input type="hidden" name="formSubmitted" value="1" /> 191 </form> 192 {/if} 193 194 {elseif $user_registration eq 1 or $user_edit eq 1} 195 <form method="post" action="" enctype="multipart/form-data" name="profile_form" id="submit_form"> 196 <h3>{l}Registration Information{/l}</h3> 197 <table border="0" class="formPage" align="center" width="auto"> 198 {if $profileUpdate} 199 <tr> 200 <td colspan="2"><h3>{l}Profile updated{/l}</h3></td> 201 </tr> 202 {/if} 203 {if $user_registration eq 1} 204 <tr> 205 <td class="label"><span class='req'>*</span>{l}Login{/l}:</td> 206 <td class="smallDesc"> 207 <input type="text" name="LOGIN" value="{$LOGIN}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" /> 208 </td> 209 </tr> 210 {/if} 211 <tr> 212 <td class="label"><span class='req'>*</span>{l}Name{/l}:</td> 213 <td class="smallDesc"> 214 <input type="text" name="NAME" value="{$NAME}" size="20" maxlength="{$smarty.const.USER_NAME_MAX_LENGTH}" class="text" /> 215 </td> 216 </tr> 217 <tr> 218 <td class="label"><span class='req'>*</span>{l}Password{/l}:</td> 219 <td class="smallDesc"> 220 <input type="password" name="PASSWORD" id="PASSWORD" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" /> 221 </td> 222 </tr> 223 <tr> 224 <td class="label"><span class='req'>*</span>{l}Confirm Password{/l}:</td> 225 <td class="smallDesc"> 226 <input type="password" name="PASSWORDC" id="PASSWORDC" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" /> 227 </td> 228 </tr> 229 <tr> 230 <td class="label"><span class='req'>*</span>{l}Language{/l}:</td> 231 <td class="smallDesc"> 232 {html_options options=$languages selected=$LANGUAGE name="LANGUAGE"} 233 </td> 234 </tr> 235 <tr> 236 <td class="label"><span class='req'>*</span>{l}Email{/l}:</td> 237 <td class="smallDesc"> 238 <input type="text" name="EMAIL" value="{$EMAIL|escape}" size="20" maxlength="255" class="text" /> 239 </td> 240 </tr> 241 {if $user_registration eq 0 AND $ALLOW_AUTHOR_INFO eq 1} 242 <tr> 243 <td colspan="2"> 244 <h3>{l}Optional Info For About Page{/l}</h3> 245 </td> 246 </tr> 247 <!-- author avatar related --> 248 249 {if $ALLOW_AVATARS eq 1} 250 <!-- 251 <tr> 252 <td class="label"><label for="IMG">{l}Upload Personal Photo{/l}:</label></td> 253 <td class="smallDesc"> 254 <input type="file" name="IMG" id="IMG" value="{$IMG}" class="text"/><br /> 255 </td> 256 </tr> 257 <tr> 258 <td class="label"><label for="DESCRIPTION">{l}Preview Photo{/l}:</label></td> 259 <td class="smallDesc"> 260 <div class="preview"> 261 <img id="thumb" width="100px" height="100px" src=""/> 262 </div> 263 </td> 264 </tr> 265 266 267 <tr> 268 <td class="label"><label for="DESCRIPTION">{l}Current Photo{/l}:</label></td> 269 <td class="smallDesc"> 270 {if $AUTH_IMG} 271 <img src="{$AUTH_IMG}">{else}None{/if} 272 </td> 273 </tr> 274 --> 275 {/if} 276 <!-- end --> 277 {* if user has links posted*} 278 {if $hasLinks > 0} 279 <tr> 280 <td class="label"> 281 <input type="checkbox" name="OWNER_NEWSLETTER_ALLOW" {if $OWNER_NEWSLETTER_ALLOW >= 1}checked="checked"{/if} /> 282 </td> 283 <td> 284 <p class="small">Allow site administrator to send me newsletters.</p> 285 </td> 286 </tr> 287 {/if} 288 <tr> 289 <td class="label"> 290 {l}Post Articles Anonymously{/l}: 291 <p class="small">{l}This will keep your name off of the articles page,{/l}<BR>{l}but admins will still know who wrote each article.{/l}</p> 292 </td> 293 <td class="field"> 294 {html_options options=$yesno selected=$ANONYMOUS name="ANONYMOUS"} 295 </td> 296 </tr> 297 <tr> 298 <td class="label">{l}Info{/l}:</td> 299 <td class="field"> 300 <textarea name="INFO" rows="3" cols="37" class="text" {formtool_count_chars name="INFO" limit="255" alert=true}>{$INFO|escape|trim}</textarea> 301 <br /> 302 {l}Limit{/l}: <input type="text" name="INFO_limit" size="4" class="limit_field" readonly="readonly" value="{$InfoLimit|trim}" /> 303 </td> 304 </tr> 305 <tr> 306 <td class="label">{l}Website Name{/l}:</td> 307 <td class="field"> 308 <input type="text" name="WEBSITE_NAME" value="{$WEBSITE_NAME|escape|trim}" size="40" maxlength="255" class="text"/> 309 </td> 310 </tr> 311 <tr> 312 <td class="label">{l}Website URL{/l}:</td> 313 <td class="field"> 314 <input type="text" name="WEBSITE" value="{if !$WEBSITE}http://{else}{$WEBSITE|escape|trim}{/if}" size="40" maxlength="255" class="text"/> 315 </td> 316 </tr> 317 <tr> 318 <td colspan="2"> 319 <h3></h3> 320 </td> 321 </tr> 322 {/if} 323 {if $smarty.const.VISUAL_CONFIRM eq 2} 324 <tr> 325 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td> 326 <td class="field"> 327 <span style="color: red;"> 328 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 329 {if $errorKey == 'DO_MATH'} 330 {if is_array($errorItem)} 331 {$errorItem.remote}<br/> 332 {else} 333 {$errorItem}<br/> 334 {/if} 335 {/if} 336 {/foreach} 337 </span> 338 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/> 339 <br/> 340 <br/> 341 </td> 342 </tr> 343 {/if} 344 {if $smarty.const.VISUAL_CONFIRM eq 1} 345 <tr> 346 <td class="label"> 347 <span class='req'>*</span>{l}Confirmation code{/l} 348 <p class="small">{l}This helps prevent automated registrations.{/l}</p> 349 </td> 350 <td class="smallDesc"> 351 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 352 <input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" /> 353 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" /> 354 </td> 355 </tr> 356 {/if} 357 <tr> 358 <td>&nbsp;</td> 359 <td><input type="submit" name="send" value="Submit" class="btn" /></td> 360 </tr> 361 </table> 362 <input type="hidden" name="formSubmitted" value="1" /> 363 </form> 364 {/if} 365 366 {include file="footer.tpl"} 367 {/strip} | 1 {capture name="title"} - {l}User Management{/l}{/capture} 2 {capture assign="in_page_title"}{l}User Management{/l}{/capture} 3 4 {include file="header.tpl"} 5 {include file="top_bar.tpl"} 6 7 {include file="validation.tpl" form_id="submit_form" validators=$validators} 8 9 {literal} 10 <script type="text/javascript"> 11 jQuery(function($) { 12 $(document).ready(function(){ 13 14 var thumb = $('img#thumb'); 15 16 new AjaxUpload('IMG', { 17 action: $('form#submit_form').attr('action'), 18 name: 'image', 19 onSubmit: function(file, extension) { 20 $('div.preview').addClass('loading'); 21 }, 22 onComplete: function(file, response) { 23 thumb.load(function(){ 24 $('div.preview').removeClass('loading'); 25 thumb.unbind(); 26 }); 27 thumb.attr('src', response); 28 } 29 }); 30 }); 31 }); 32 </script> 33 34 {/literal} 35 36 {strip} 37 {if $thank_you} 38 <h3>{l}Information{/l}</h3> 39 <table border="0" class="formPage" align="center"> 40 <tr> 41 <td> 42 {l}Thank you for registering. Your account has been created. You may now log in and submit links.{/l} 43 </td> 44 </tr> 45 </table> 46 {elseif $confirmed} 47 <h3>{l}Information{/l}</h3> 48 <table border="0" class="formPage" align="center"> 49 <tr> 50 <td> 51 {l}Thank you for confirming your email. Your account has been activated. You may now log in with your username and password.{/l} 52 </td> 53 </tr> 54 </table> 55 {elseif $user_logged} 56 <h3>{l}User Area{/l}</h3> 57 58 59 {if $profileUpdate} 60 <p>{l}Profile updated{/l}</p> 61 62 {/if} 63 64 65 <p> <a href="{$smarty.const.DOC_ROOT}/index.php?uid={$regular_user_details.ID}" title="{l}Browse personal links{/l}">{l}My Submissions{/l}</a></p> 66 67 <p> <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=edit" title="{l}Edit Profile{/l}">{l}Edit Profile{/l}</a> 68 </p> 69 {elseif $agreement_terms} 70 <h3>{l}Registration Agreement Terms{/l}</h3> 71 <table border="0" class="formPage" align="center"> 72 <tr> 73 <td> 74 While the administrators and editors of this link directory will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every link. Therefore you acknowledge that all links submitted to this link directory express the views and opinions of the submitter and not the administrators, editors or webmaster (except for posts by these people) and hence will not be held liable. 75 <br /><br /> 76 You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other links and/or material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all submitted links is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and editors of this link directory have the right to remove, edit or move any link at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and editors cannot be held responsible for any cracking attempt that may lead to the data being compromised. 77 <br /><br /> 78 This link directory uses sessions to store information. These do not contain any of the information you have entered above; they serve only to improve your viewing and submit pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one). 79 <br /><br /> 80 By clicking Register below you agree to be bound by these conditions. 81 </td> 82 </tr> 83 <tr> 84 <td> 85 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&amp;agreed=true" title="{l}I Agree to these terms{/l}">{l}I Agree to these terms{/l}</a> 86 </td> 87 </tr> 88 <tr> 89 <td> 90 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&amp;agreed=false" title="{l}I Do Not Agree to these terms{/l}">{l}I Do Not Agree to these terms{/l}</a> 91 </td> 92 </tr> 93 </table> 94 95 {elseif $confirm eq 1} 96 {if $password_recovered eq 1} 97 <h3>{l}Information{/l}</h3> 98 <table border="0" class="formPage" align="center"> 99 <tr> 100 <td> 101 {l}You can now login with your new password.{/l} 102 </td> 103 </tr> 104 </table> 105 106 {elseif $password_recovered eq 0} 107 <h3>{l}Information{/l}</h3> 108 <table border="0" class="formPage" align="center"> 109 <tr> 110 <td class="err"> 111 {l}An error occured while saving your new password.{/l} 112 </td> 113 </tr> 114 </table> 115 {/if} 116 117 {elseif $send_password eq 1} 118 {if $email_status eq 1 or $wrong_user_details eq 1} 119 <h3>{l}Information{/l}</h3> 120 <table border="0" class="formPage" align="center"> 121 <tr> 122 <td class="{if $email_sent eq 'sent'}msg{else}err{/if}"> 123 {if $email_sent eq 'sent'} 124 {l}Please check your email to confirm your new password request.{/l} 125 {elseif $email_sent eq 'error'} 126 {l}An error occurred while sending the email.{/l} 127 {if $email_error_msg}<br />{$email_error_msg}{/if} 128 {elseif $wrong_user_details} 129 {l}The details you supplied do not match any registered user.{/l} 130 {else} 131 {l}Unknown error.{/l} 132 {/if} 133 </td> 134 </tr> 135 </table> 136 {else} 137 <form method="post" action="" id="submit_form"> 138 <h3>{l}Recover Password{/l}</h3> 139 <table border="0" class="formPage" align="center" width="auto"> 140 <tr> 141 <td class="label"><span class='req'>*</span>{l}Login{/l}:</td> 142 <td class="smallDesc"> 143 <input type="text" name="LOGIN" value="{$LOGIN}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" /> 144 </td> 145 </tr> 146 <tr> 147 <td class="label"><span class='req'>*</span>{l}Email{/l}:</td> 148 <td class="smallDesc"> 149 <input type="text" name="EMAIL" value="{$EMAIL}" size="20" maxlength="255" class="text" /> 150 </td> 151 </tr> 152 {if $smarty.const.VISUAL_CONFIRM eq 2} 153 <tr> 154 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td> 155 <td class="field"> 156 <span style="color: red;"> 157 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 158 {if $errorKey == 'DO_MATH'} 159 {if is_array($errorItem)} 160 {$errorItem.remote}<br/> 161 {else} 162 {$errorItem}<br/> 163 {/if} 164 {/if} 165 {/foreach} 166 </span> 167 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/> 168 <br/> 169 <br/> 170 </td> 171 </tr> 172 {/if} 173 {if $smarty.const.VISUAL_CONFIRM eq 1} 174 <tr> 175 <td class="label"> 176 <span class='req'>*</span>{l}Confirmation code{/l} 177 <p class="small">{l}This helps prevent automated registrations.{/l}</p> 178 </td> 179 <td class="smallDesc"> 180 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 181 <input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" /> 182 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" /> 183 </td> 184 </tr> 185 {/if} 186 <tr> 187 <td>&nbsp;</td> 188 <td><input type="submit" name="send" value="Submit" class="btn" /></td> 189 </tr> 190 </table> 191 <input type="hidden" name="formSubmitted" value="1" /> 192 </form> 193 {/if} 194 195 {elseif $user_registration eq 1 or $user_edit eq 1} 196 <form method="post" action="" enctype="multipart/form-data" name="profile_form" id="submit_form"> 197 <h3>{l}Registration Information{/l}</h3> 198 <table border="0" class="formPage" align="center" width="auto"> 199 {if $profileUpdate} 200 <tr> 201 <td colspan="2"><h3>{l}Profile updated{/l}</h3></td> 202 </tr> 203 {/if} 204 {if $user_registration eq 1} 205 <tr> 206 <td class="label"><span class='req'>*</span>{l}Login{/l}:</td> 207 <td class="smallDesc"> 208 <input type="text" name="LOGIN" value="{$LOGIN}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" /> 209 </td> 210 </tr> 211 {/if} 212 <tr> 213 <td class="label"><span class='req'>*</span>{l}Name{/l}:</td> 214 <td class="smallDesc"> 215 <input type="text" name="NAME" value="{$NAME}" size="20" maxlength="{$smarty.const.USER_NAME_MAX_LENGTH}" class="text" /> 216 </td> 217 </tr> 218 <tr> 219 <td class="label"><span class='req'>*</span>{l}Password{/l}:</td> 220 <td class="smallDesc"> 221 <input type="password" name="PASSWORD" id="PASSWORD" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" /> 222 </td> 223 </tr> 224 <tr> 225 <td class="label"><span class='req'>*</span>{l}Confirm Password{/l}:</td> 226 <td class="smallDesc"> 227 <input type="password" name="PASSWORDC" id="PASSWORDC" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" /> 228 </td> 229 </tr> 230 <tr> 231 <td class="label"><span class='req'>*</span>{l}Language{/l}:</td> 232 <td class="smallDesc"> 233 {html_options options=$languages selected=$LANGUAGE name="LANGUAGE"} 234 </td> 235 </tr> 236 <tr> 237 <td class="label"><span class='req'>*</span>{l}Email{/l}:</td> 238 <td class="smallDesc"> 239 <input type="text" name="EMAIL" value="{$EMAIL|escape}" size="20" maxlength="255" class="text" /> 240 </td> 241 </tr> 242 {if $user_registration eq 0 AND $ALLOW_AUTHOR_INFO eq 1} 243 <tr> 244 <td colspan="2"> 245 <h3>{l}Optional Info For About Page{/l}</h3> 246 </td> 247 </tr> 248 <!-- author avatar related --> 249 250 {if $ALLOW_AVATARS eq 1} 251 <!-- 252 <tr> 253 <td class="label"><label for="IMG">{l}Upload Personal Photo{/l}:</label></td> 254 <td class="smallDesc"> 255 <input type="file" name="IMG" id="IMG" value="{$IMG}" class="text"/><br /> 256 </td> 257 </tr> 258 <tr> 259 <td class="label"><label for="DESCRIPTION">{l}Preview Photo{/l}:</label></td> 260 <td class="smallDesc"> 261 <div class="preview"> 262 <img id="thumb" width="100px" height="100px" src=""/> 263 </div> 264 </td> 265 </tr> 266 267 268 <tr> 269 <td class="label"><label for="DESCRIPTION">{l}Current Photo{/l}:</label></td> 270 <td class="smallDesc"> 271 {if $AUTH_IMG} 272 <img src="{$AUTH_IMG}">{else}None{/if} 273 </td> 274 </tr> 275 --> 276 {/if} 277 <!-- end --> 278 {* if user has links posted*} 279 {if $hasLinks > 0} 280 <tr> 281 <td class="label"> 282 <input type="checkbox" name="OWNER_NEWSLETTER_ALLOW" {if $OWNER_NEWSLETTER_ALLOW >= 1}checked="checked"{/if} /> 283 </td> 284 <td> 285 <p class="small">Allow site administrator to send me newsletters.</p> 286 </td> 287 </tr> 288 {/if} 289 <tr> 290 <td class="label"> 291 {l}Post Articles Anonymously{/l}: 292 <p class="small">{l}This will keep your name off of the articles page,{/l}<BR>{l}but admins will still know who wrote each article.{/l}</p> 293 </td> 294 <td class="field"> 295 {html_options options=$yesno selected=$ANONYMOUS name="ANONYMOUS"} 296 </td> 297 </tr> 298 <tr> 299 <td class="label">{l}Info{/l}:</td> 300 <td class="field"> 301 <textarea name="INFO" rows="3" cols="37" class="text" {formtool_count_chars name="INFO" limit="255" alert=true}>{$INFO|escape|trim}</textarea> 302 <br /> 303 {l}Limit{/l}: <input type="text" name="INFO_limit" size="4" class="limit_field" readonly="readonly" value="{$InfoLimit|trim}" /> 304 </td> 305 </tr> 306 <tr> 307 <td class="label">{l}Website Name{/l}:</td> 308 <td class="field"> 309 <input type="text" name="WEBSITE_NAME" value="{$WEBSITE_NAME|escape|trim}" size="40" maxlength="255" class="text"/> 310 </td> 311 </tr> 312 <tr> 313 <td class="label">{l}Website URL{/l}:</td> 314 <td class="field"> 315 <input type="text" name="WEBSITE" value="{if !$WEBSITE}http://{else}{$WEBSITE|escape|trim}{/if}" size="40" maxlength="255" class="text"/> 316 </td> 317 </tr> 318 <tr> 319 <td colspan="2"> 320 <h3></h3> 321 </td> 322 </tr> 323 {/if} 324 {if $smarty.const.VISUAL_CONFIRM eq 2} 325 <tr> 326 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td> 327 <td class="field"> 328 <span style="color: red;"> 329 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 330 {if $errorKey == 'DO_MATH'} 331 {if is_array($errorItem)} 332 {$errorItem.remote}<br/> 333 {else} 334 {$errorItem}<br/> 335 {/if} 336 {/if} 337 {/foreach} 338 </span> 339 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/> 340 <br/> 341 <br/> 342 </td> 343 </tr> 344 {/if} 345 {if $smarty.const.VISUAL_CONFIRM eq 1} 346 <tr> 347 <td class="label"> 348 <span class='req'>*</span>{l}Confirmation code{/l} 349 <p class="small">{l}This helps prevent automated registrations.{/l}</p> 350 </td> 351 <td class="smallDesc"> 352 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 353 <input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" /> 354 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" /> 355 </td> 356 </tr> 357 {/if} 358 <tr> 359 <td>&nbsp;</td> 360 <td><input type="submit" name="send" value="Submit" class="btn" /></td> 361 </tr> 362 </table> 363 <input type="hidden" name="formSubmitted" value="1" /> 364 </form> 365 {/if} 366 367 {include file="footer.tpl"} 368 {/strip}
Legend: | Added(16,1) | Deleted(0,17) | Changed(19) | Changed in changed(3)