Files
AtomicOld/design/default/html/register.tpl
2026-02-15 18:29:53 +03:00

34 lines
1.4 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{* Страница регистрации *}
{$meta_title = "Регистрация" scope=parent}
<h1>Регистрация</h1>
{if $error}
<div class="message_error">
{if $error == 'empty_name'}Введите имя
{elseif $error == 'empty_email'}Введите email
{elseif $error == 'empty_password'}Введите пароль
{elseif $error == 'user_exists'}Пользователь с таким email уже зарегистрирован
{elseif $error == 'captcha'}Неверно введена капча
{else}{$error}{/if}
</div>
{/if}
<form class="form register_form" method="post">
<label>Имя</label>
<input type="text" name="name" data-format=".+" data-notice="Введите имя" value="{$name|escape}" maxlength="255" />
<label>Email</label>
<input type="text" name="email" data-format="email" data-notice="Введите email" value="{$email|escape}" maxlength="255" />
<label>Пароль</label>
<input type="password" name="password" data-format=".+" data-notice="Введите пароль" value="" />
<div class="captcha"><img src="captcha/image.php?{math equation='rand(10,10000)'}"/></div>
<input class="input_captcha" id="comment_captcha" type="text" name="captcha_code" value="" data-format="\d\d\d\d" data-notice="Введите капчу"/>
<input type="submit" class="button" name="register" value="Зарегистрироваться">
</form>