add public design files
This commit is contained in:
41
design/default/html/feedback.tpl
Normal file
41
design/default/html/feedback.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{* Страница с формой обратной связи *}
|
||||
|
||||
<h1>{$page->name|escape}</h1>
|
||||
|
||||
{$page->body}
|
||||
|
||||
<h2>Обратная связь</h2>
|
||||
|
||||
{if $message_sent}
|
||||
{$name|escape}, ваше сообщение отправлено.
|
||||
{else}
|
||||
<form class="form feedback_form" method="post">
|
||||
{if $error}
|
||||
<div class="message_error">
|
||||
{if $error=='captcha'}
|
||||
Неверно введена капча
|
||||
{elseif $error=='empty_name'}
|
||||
Введите имя
|
||||
{elseif $error=='empty_email'}
|
||||
Введите email
|
||||
{elseif $error=='empty_text'}
|
||||
Введите сообщение
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<label>Имя</label>
|
||||
<input data-format=".+" data-notice="Введите имя" value="{$name|escape}" name="name" maxlength="255" type="text"/>
|
||||
|
||||
<label>Email</label>
|
||||
<input data-format="email" data-notice="Введите email" value="{$email|escape}" name="email" maxlength="255" type="text"/>
|
||||
|
||||
<label>Сообщение</label>
|
||||
<textarea data-format=".+" data-notice="Введите сообщение" value="{$message|escape}" name="message">{$message|escape}</textarea>
|
||||
|
||||
<input class="button" type="submit" name="feedback" 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="Введите капчу"/>
|
||||
|
||||
</form>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user