история заказов
This commit is contained in:
parent
df14af68d1
commit
ac8cda6dc6
|
@ -0,0 +1,169 @@
|
||||||
|
<!-- :::::: 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">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Start Client Shipping Address -->
|
||||||
|
<div class="col-lg-7">
|
||||||
|
<div class="section-content">
|
||||||
|
<h5 class="section-content__title">Личные данные</h5>
|
||||||
|
</div>
|
||||||
|
<form action="/act/lk" method="post" class="form-box" id="user_json">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-box__single-group">
|
||||||
|
<label for="form-first-name">Контактное лицо</label>
|
||||||
|
<input type="text" name="kontaktnoe_lico" value="{$user_info.kontaktnoe_lico}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- человек вводит ИНН, остальное заполняется само -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-box__single-group">
|
||||||
|
<label for="form-company-name">ИНН</label>
|
||||||
|
<input type="text" name="inn" value="{$user_info.inn}" id="input-inn">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-box__single-group">
|
||||||
|
<label for="form-company-name">КПП</label>
|
||||||
|
<input type="text" name="kpp" value="{$user_info.kpp}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-box__single-group">
|
||||||
|
<label for="form-company-name">Название организации</label>
|
||||||
|
<input type="text" name="org" value="{$org_naim}" disabled id="input-org_name">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-box__single-group">
|
||||||
|
<label for="form-phone">Телефон</label>
|
||||||
|
<input type="text" name="phone" value="{$user_info.phone}">
|
||||||
|
</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.email}">
|
||||||
|
<input type="hidden" name="act" value="set_json">
|
||||||
|
</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 class="col-lg-12 mt-5">
|
||||||
|
<div class="section-content">
|
||||||
|
<h5 class="section-content__title">Адреса доставки</h5>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<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 Client Shipping Address -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Start Order Wrapper -->
|
||||||
|
<div class="col-lg-5">
|
||||||
|
<div class="your-order-section">
|
||||||
|
<div class="section-content">
|
||||||
|
<h5 class="section-content__title">История заказов</h5>
|
||||||
|
</div>
|
||||||
|
<div class="your-order-box gray-bg m-t-40 m-b-30">
|
||||||
|
<div class="your-order-product-info">
|
||||||
|
|
||||||
|
<table class="table">
|
||||||
|
|
||||||
|
{section name=customer loop=$orders}{if $orders[customer].id}
|
||||||
|
<tr>
|
||||||
|
<td>Заказ № {$orders[customer].id} {$orders[customer].t}</td>
|
||||||
|
<td>{$orders[customer].status}</td>
|
||||||
|
|
||||||
|
<td>{$orders[customer].summa}</td>
|
||||||
|
<td><img src="img/del.gif" title="Отменить заказ" style="cursor: pointer;"></td>
|
||||||
|
</tr>
|
||||||
|
{/if}{/section}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="text-center">
|
||||||
|
<button class="btn btn--small btn--radius btn--green btn--green-hover-black btn--uppercase font--bold" type="submit" data-link="my_orders">Вся история</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End Order Wrapper -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<!-- :::::: End Main Container Section :::::: -->
|
||||||
|
|
||||||
|
{include file=$footer}
|
Loading…
Reference in New Issue