core/skin/tk-ligat.ru/inc/mod/lk/index.html

315 lines
15 KiB
HTML
Executable File
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.

<!-- :::::: Start Hero Section :::::: -->
{include file=$header title="Личный кабинет"}
<!-- :::::: Start Breadcrumb Section :::::: -->
<div class="page-breadcrumb"
style="background-image: url('img/lk.jpg'); background-position: -10%; background-size: 100% auto;">
<div class="container">
<div class="row">
<div class="col-12">
<ul class="page-breadcrumb__menu">
<li class="page-breadcrumb__nav"><a href="/" style="color:#fff;">Главная</a></li>
<li class="page-breadcrumb__nav active" style="color:#fff;">Личный кабинет</li>
</ul>
</div>
</div>
</div>
</div>
<!-- :::::: End Breadcrumb Section :::::: -->
<!-- :::::: Start Main Container Section :::::: -->
<main id="main-container" class="main-container">
<div class="container">
<ul class="tablist tablist--style-black tablist--style-title tablist--style-gap-30 nav">
<li><a class="nav-link active" data-toggle="tab" href="#product-desc">Личные данные</a></li>
<li><a class="nav-link" data-toggle="tab" href="#product-dis">Адреса доставки</a></li>
<li><a class="nav-link" data-toggle="tab" href="#sertificats">Мои организации</a></li>
<li><a class="nav-link" data-toggle="tab" href="#otz">История заказов</a></li>
</ul>
<div class="product-details-tab-box">
<div class="tab-content">
<!-- Start Tab - Вкладка с описанием -->
<div class="tab-pane show active" id="product-desc">
<form action="/act/lk" method="post" class="form-box" id="save-user-data">
<div class="row">
<div class="col-md-12">
<div class="form-box__single-group">
<label for="form-first-name">Контактное лицо</label>
<input type="text" name="fio" value="{$user_info[0].fio}">
</div>
</div>
<div class="col-md-6">
<div class="form-box__single-group">
<label for="form-phone">Телефон</label>
<input type="text" name="tel" value="{$user_info[0].tel}">
</div>
</div>
<div class="col-md-6">
<div class="form-box__single-group">
<label for="form-email">Адрес электронной почты</label>
<input type="email" name="email" value="{$user_info[0].email}">
<input type="hidden" name="act" value="save-user-data">
</div>
</div>
<button
class="btn mt-5 btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold"
type="submit">Сохранить</button>
<div class="alert alert-success mt-3 hidden" role="alert" style="border-radius: 15px;"
id="change_ok">
Данные сохранены
</div>
</div>
</form>
</div>
<!-- End Tab - Вкладка с описанием -->
<!-- Start Tab - Вкладка с характеристиками -->
<div class="tab-pane" id="product-dis">
<div class="product-dis__content">
<table class="table" id="table_adres">
{section name=customer loop=$adresa}{if $adresa[customer].id}
<tr id="{$adresa[customer].id}">
<td style="text-align: left;">{$adresa[customer].gorod} {$adresa[customer].street}
{$adresa[customer].dom}</td>
<td style="width: 20px;"><img src="img/del.gif" title="Удалить" style="cursor: pointer;"
class="img-del" data-id="{$adresa[customer].id}"></td>
</tr>
{/if}{/section}
</table>
<form action="/act/lk" method="post" class="form-box" id="add_adres">
<div class="row">
<div class="col-md-5">
<div class="form-box__single-group">
<!-- label for="form-first-name">Контактное лицо</label -->
<input type="text" name="gorod" placeholder="Город" class="input-adres">
<input type="hidden" name="act" value="add_adres">
</div>
</div>
<div class="col-md-5">
<div class="form-box__single-group">
<!-- label for="form-first-name">Контактное лицо</label -->
<input type="text" name="street" placeholder="Улица" class="input-adres">
</div>
</div>
<div class="col-md-2">
<div class="form-box__single-group">
<!-- label for="form-first-name">Контактное лицо</label -->
<input type="text" name="dom" placeholder="Дом" class="input-adres">
</div>
</div>
<button
class="btn mt-5 btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold"
type="submit">Добавить</button>
</div>
</form>
</div>
</div>
<!-- End Tab - Вкладка с характеристиками -->
<!-- Start Tab - Вкладка с сертификацией -->
<div class="tab-pane show" id="sertificats">
<div class="product-dis__content">
<input type="text" maxlength="10" class="form-control mb-3" id="input-inn"
placeholder="Введите ИНН для поиска по нашей базе">
<a href="#" id="addOrgFromBD" title="Нажмите, чтобы добавить организацию себе в кабинет"
style="color:green;"></a><br>
<a href="#" id="aNewOrg">Создайте организацию, если не нашлась нужная</a>
<div class="container hidden"
style="border: 1px solid gray; border-radius: 10px; padding: 40px;" id="divNewOrg">
<h3 class="text-center">Новая организация</h3>
<form id="formNewOrg">
<!-- label for="form-first-name">Контактное лицо</label -->
<input type="text" name="txt" placeholder="Сокращенное наименование"
class="form-control" style="margin-top: 10px;" id="formNewOrgTXT">
<input type="text" name="foolName" placeholder="Полное наименование"
class="form-control" style="margin-top: 10px;">
<input type="text" name="inn" placeholder="ИНН" class="form-control"
style="margin-top: 10px;">
<input type="text" name="kpp" placeholder="КПП" class="form-control"
style="margin-top: 10px;">
<input type="text" name="ogrn" placeholder="ОГРН" class="form-control"
style="margin-top: 10px;">
<input type="text" name="email" placeholder="Электронная почта" class="form-control"
style="margin-top: 10px;">
<input type="text" name="tel" placeholder="Телефон" class="form-control"
style="margin-top: 10px;">
<input type="text" name="site" placeholder="Сайт" class="form-control"
style="margin-top: 10px;">
<input type="text" name="ur_adres" placeholder="Юридический адрес" class="form-control"
style="margin-top: 10px;">
<input type="hidden" name="act" value="NewOrg">
<input type="submit" name="ok" value="Сохранить"
class="btn mt-5 btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold"
style="width: 300px; border-radius: 20px;">
<div class="alert alert-success mt-3 hidden" role="alert" style="border-radius: 15px;"
id="formNewOrg-ok">
Данные сохранены
</div>
<div class="alert alert-danger mt-3 hidden" role="alert" style="border-radius: 15px;"
id="formNewOrg-bad">
Такая организация уже есть в нашей базе, мы добавили ее в список ваших организаций
</div>
</form>
</div>
<table class="table mt-3" id="table-orgs">
<tr>
<td><b>Название</b></td>
<td><b>ИНН</b></td>
<td></td>
</tr>
{section name=customer loop=$myOrgs}{if $myOrgs[customer].id}
<tr id="trOrg-{$myOrgs[customer].id}">
<td>{$myOrgs[customer].txt}</td>
<td>{$myOrgs[customer].inn}</td>
<td><img src="/api/img/gray/gif/del.gif" style="cursor: pointer;" class="delOrg"
data-id="{$myOrgs[customer].id}"></td>
</tr>
{/if}{/section}
</table>
</div>
</div>
<!-- Start Tab - Отзывы покупателей -->
<div class="tab-pane show" id="otz">
<div class="product-dis__content">
<table class="table">
<tr>
<td><b></b></td>
<td><b>Дата</b></td>
<td><b>Статус</b></td>
<td><b>Товар</b></td>
<td><b>Действие</b></td>
</tr>
{section name=customer loop=$orders}{if $orders[customer].id}
{assign var=tovarList value=""}
{assign var=tovarList value=$orders[customer].list}
<tr>
<td>#{$orders[customer].id}</td>
<td>{$orders[customer].t|t}</td>
<td id="status-{$orders[customer].id}">{$orders[customer].status}</td>
<td>
<table class="table">
<tr>
<td>Артикул</td>
<td>Наименование</td>
<td>Цена</td>
<td>Количество</td>
</tr>
{section name=customer2 loop=$tovarList}{if $tovarList[customer2].id}
<tr>
<td>{$tovarList[customer2].artikul}</td>
<td><a href="/tovar_show/{$tovarList[customer2].tovar_id}" title="{$tovarList[customer2].title}">{$tovarList[customer2].title|substr:30}</a></td>
<td>{$tovarList[customer2].kolvo}</td>
<td>{$tovarList[customer2].cena}</td>
</tr>
{/if}{/section}
<tr>
<td></td>
<td></td>
<td><b>Итого:</b></td>
<td><b>{$orders[customer].itog}</b></td>
</tr>
</table>
</td>
<td>
{if $orders[customer].status=="Новый"}
<a href="{$orders[customer].id}"
class="btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold aCancelOrder" data-status="3">Отменить</a>
{/if}
{if $orders[customer].status=="Отменен"}
<a href="{$orders[customer].id}"
class="btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold aCancelOrder" data-status="0">Вернуть</a>
{/if}
</td>
</tr>
{/if}{/section}
</table>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- :::::: End Main Container Section :::::: -->
{include file=$footer}