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

81 lines
4.9 KiB
Smarty
Raw Permalink 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.
{* Шаблон страницы зарегистрированного пользователя *}
{if $smarty.get.page && ($smarty.get.page == 'mailing' || $smarty.get.page == 'mailing_settings')}<h1>ПОДПИСКА</h1>
{if $smarty.post.mailing_email && !$error}
Вы успешно подписаны на рыссылку новостей.
{/if}
{if $smarty.get.unsubscribe && !$error}Вы успешно отписаны от рыссылки.{/if}
{if $error}<div class="message_error">{if $error == 'email_syntax'}Некорректно введён email.{elseif $error == '00001'}Вы не подписаны на рассылку.{/if}</div>{/if}
{else} <h1>{$user->name|escape}</h1> {/if}
{if $error}
<div class="message_error">
{if $error == 'empty_name'}Введите имя
{elseif $error == 'empty_name2'}Введите фамилию
{elseif $error == 'empty_email'}Введите email
{elseif $error == 'empty_password'}Введите пароль
{elseif $error == 'empty_phone'}Введите Телефон
{elseif $error == 'empty_country'}Введите Страну
{elseif $error == 'empty_region'}Введите Регион
{elseif $error == 'empty_city'}Введите Город
{elseif $error == 'empty_indx'}Введите Индекс
{elseif $error == 'empty_adress'}Введите Адрес Доставки
{elseif $error == 'user_exists'}Пользователь с таким email уже зарегистрирован
{else}{$error}{/if}
</div>
{/if}
<div class="well">
<form class="form form-horizontal" method="post">
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Имя</label>
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите имя" value="{$user->name}" name="name" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="name2" class="col-sm-2 control-label">Фамилия</label>
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите фамилию" value="{$user->name2}" name="name2" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10"><input class="form-control" data-format="email" data-notice="Введите email" value="{$user->email}" name="email" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="phone" class="col-sm-2 control-label">Телефон</label>
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите телефон" value="{$user->phone}" name="phone" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="country" class="col-sm-2 control-label">Страна</label>
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите страну" value="{$user->country}" name="country" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="region" class="col-sm-2 control-label">Регион</label>
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите регион" value="{$user->region}" name="region" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="city" class="col-sm-2 control-label">Город</label>
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите город" value="{$user->city}" name="city" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="indx" class="col-sm-2 control-label">Индекс</label>
<div class="col-sm-10"><input class="form-control" data-notice="Введите индекс" value="{$user->indx}" name="indx" maxlength="255" type="text"/></div>
</div>
<div class="form-group">
<label for="adress" class="col-sm-2 control-label">Адрес доставки</label>
<div class="col-sm-10"><input class="form-control" data-format=".+" data-notice="Введите адрес" value="{$user->adress}" name="adress" maxlength="255" type="text"/></div>
</div>
<label for="password" class="col-sm-2 control-label"> <a href='#' onclick="$('#password').show();return false;">Изменить пароль</a></label>
<div class="col-sm-4"><input class="form-control" id="password" value="" name="password" type="password" style="display:none;"/></div>
<input type="submit" class="btn btn-danger pull-right" value="Сохранить">
</form>
</div>
{if $orders}
<h2>Ваши заказы</h2>
<ul id="orders_history">
{foreach name=orders item=order from=$orders}
<li>
{$order->date|date} <a href='/order/{$order->url}'>Заказ №{$order->id}</a>
{if $order->paid == 1}оплачен,{/if}
{if $order->status == 0}ждет обработки{elseif $order->status == 1}в обработке{elseif $order->status == 2}выполнен{/if}
</li>
{/foreach}
</ul>
{/if}