216 lines
9.8 KiB
HTML
216 lines
9.8 KiB
HTML
{include file=$header meta='<meta name="robots" content="noindex,nofollow">' title="Личный кабинет"}
|
|
|
|
<!--start breadcrumb-->
|
|
<section class="py-3 border-bottom border-top d-none d-md-flex bg-light">
|
|
<div class="container">
|
|
<div class="page-breadcrumb d-flex align-items-center">
|
|
<h3 class="breadcrumb-title pe-3">Личный кабинет</h3>
|
|
<div class="ms-auto">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb mb-0 p-0">
|
|
<li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i> Старт</a>
|
|
</li>
|
|
|
|
<li class="breadcrumb-item active" aria-current="page">Личный кабинет</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!--end breadcrumb-->
|
|
<!--start shop cart-->
|
|
<section class="py-4">
|
|
<div class="container">
|
|
<h3 class="d-none">Account</h3>
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-4">
|
|
{include file=$mnulk}
|
|
|
|
<hr style="margin-top: 20px; margin-bottom: 20px;">
|
|
|
|
|
|
<div class="col-md-12">
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input userOption" type="checkbox" name="org" id="org" data-tip="org" {if ($userOption[0].org==1)} checked{/if}>
|
|
<label class="form-check-label" for="org">Включить режим организации</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input userOption" type="checkbox" name="perevozka" id="perevozka" data-tip="perevozka" {if ($userOption[0].perevozka==1)} checked{/if}>
|
|
<label class="form-check-label" for="perevozka">Занимаюсь перевозкой</label>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-12">
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input userOption" type="checkbox" name="remont" id="remont" data-tip="remont" {if ($userOption[0].remont==1)} checked{/if}>
|
|
<label class="form-check-label" for="remont">Занимаюсь ремонтом и строительством</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input userOption" type="checkbox" name="roznica" id="roznica" data-tip="roznica" {if ($userOption[0].roznica==1)} checked{/if}>
|
|
<label class="form-check-label" for="roznica">Занимаюсь розничными продажами</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input userOption" type="checkbox" name="remember" id="flexSwitchCheckChecked" checked>
|
|
<label class="form-check-label" for="flexSwitchCheckChecked">Предлагаю оптовые продажи</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input userOption" type="checkbox" name="remember" id="flexSwitchCheckChecked" checked>
|
|
<label class="form-check-label" for="flexSwitchCheckChecked">Занимаюсь производством</label>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div class="col-lg-8">
|
|
<div class="card shadow-none mb-0">
|
|
<div class="card-body">
|
|
<p>Привет, <strong>{$user_info[0].imya} {$user_info[0].otchestvo}</strong> (<a href="/exit/">Выход</a>)</p>
|
|
<p>Это твой личный кабинет, тут ты можешь изменить свои данные, посомтреть свои заказы, предложить работу или услугу!</p>
|
|
|
|
|
|
|
|
<form class="row g-3">
|
|
<h3>Основные данные:</h3>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Фамилия</label>
|
|
<input type="text" class="form-control" value="{$user_info[0].familiya}" id="familiya">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Имя</label>
|
|
<input type="text" class="form-control" value="{$user_info[0].imya}" id="imya">
|
|
</div>
|
|
<div class="col-6">
|
|
<label class="form-label">Отчество</label>
|
|
<input type="text" class="form-control" value="{$user_info[0].otchestvo}" id="otchestvo">
|
|
</div>
|
|
<div class="col-6">
|
|
<label class="form-label">Телефон</label>
|
|
<input type="email" class="form-control" value="{$user_info[0].tel}" placeholder="+79229992299" id="tel">
|
|
</div>
|
|
<div class="col-12">
|
|
<label class="form-label">Адрес электронной почты</label>
|
|
<input type="email" class="form-control" value="{$user_info[0].email}" id="email">
|
|
</div>
|
|
|
|
<div class="col-3">
|
|
<button type="button" class="btn btn-dark btn-ecomm" id="btnSave-p006">Сохранить</button>
|
|
</div>
|
|
|
|
<div class="col-9">
|
|
<div class="alert alert-primary hidden" role="alert" id="p006-result">
|
|
Данные успешно сохранены
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<hr>
|
|
|
|
|
|
<form class="row g-3">
|
|
{if ($user_info[0].city && $user_info[0].region)}
|
|
|
|
<h3>Предпочтительный город поиска:</h3>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Регион</label>
|
|
<select class="form-control mt-2 mb-2" name="parent" id="sel-parent-region">
|
|
{section name=customer loop=$region} {if $region[customer].id}
|
|
<option value="{$region[customer].id}" {if ($user_info["0"].region == $region[customer].id)} selected {/if}>{$region[customer].txt}</option>
|
|
{/if} {/section}
|
|
</select>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Город</label>
|
|
<select class="form-control mt-2 mb-2" name="parent" id="sel-children-city">
|
|
{section name=customer loop=$city} {if $city[customer].id}
|
|
<option value="{$city[customer].id}" data-chained="{$city[customer].region_id}" {if ($user_info['0'].city==$city[customer].id)} selected{/if}>{$city[customer].txt}</option>
|
|
{/if} {/section}
|
|
</select>
|
|
</div>
|
|
|
|
{else}
|
|
|
|
<h3>Предпочтительный город поиска:</h3>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Регион</label>
|
|
<select class="form-control mt-2 mb-2" name="parent" id="sel-parent-region">
|
|
{section name=customer loop=$region} {if $region[customer].id}
|
|
<option value="{$region[customer].id}" {if ($smarty.session.region==$region[customer].id)} selected{/if}>{$region[customer].txt}</option>
|
|
{/if} {/section}
|
|
</select>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Город</label>
|
|
<select class="form-control mt-2 mb-2" name="parent" id="sel-children-city">
|
|
{section name=customer loop=$city} {if $city[customer].id}
|
|
<option value="{$city[customer].id}" data-chained="{$city[customer].region_id}" {if ($smarty.session.city==$city[customer].id)} selected{/if}>{$city[customer].txt}</option>
|
|
{/if} {/section}
|
|
</select>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="col-3">
|
|
<button type="button" class="btn btn-dark btn-ecomm" id="btnSave-p006-city">Сохранить</button>
|
|
</div>
|
|
|
|
<div class="col-9">
|
|
<div class="alert alert-primary hidden" role="alert" id="p006-result-city">
|
|
Данные успешно сохранены
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<hr>
|
|
|
|
<form class="row g-3">
|
|
<h3>Сменить пароль:</h3>
|
|
<div class="col-12">
|
|
<label class="form-label">Старый пароль</label>
|
|
<input type="password" class="form-control">
|
|
</div>
|
|
<div class="col-12">
|
|
<label class="form-label">Новый пароль</label>
|
|
<input type="password" class="form-control">
|
|
</div>
|
|
<div class="col-12">
|
|
<label class="form-label">Повтор</label>
|
|
<input type="password" class="form-control">
|
|
</div>
|
|
<div class="col-12">
|
|
<button type="button" class="btn btn-dark btn-ecomm">Сохранить</button>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--end row-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!--end shop cart-->
|
|
{include file=$footer plugins="<script src='/api/jquery/plugins/jquery_chained/jquery.chained.min.js'></script>"} |