222 lines
9.6 KiB
HTML
Executable File
222 lines
9.6 KiB
HTML
Executable File
{$smarty.post.mod}
|
||
{if $smarty.post.mod=='mini'}
|
||
|
||
{if ($content.content_type=='tovar_category')}
|
||
<section class="container-fluid">
|
||
{include file='api/modules/content/tovar_list.html' list=$tovar}
|
||
</section>
|
||
{/if}
|
||
|
||
|
||
{else}
|
||
{include file=$header title="{$content.title}" keywords="{$content.massiv.keywords}"
|
||
description="{$content.massiv.description}"}
|
||
<section class="container-fluid">
|
||
<nav aria-label="breadcrumb">
|
||
<ol class="breadcrumb">
|
||
<li class="breadcrumb-item"><a href="/">Главная</a></li>
|
||
{section name=customer loop=$breadcrumb}{if ($breadcrumb[customer].parent != 0)}
|
||
<li class="breadcrumb-item"><a href="/cat/{$breadcrumb[customer].id}">{$breadcrumb[customer].title}</a></li>
|
||
{/if}{/section}
|
||
<li class="breadcrumb-item active" aria-current="page">{$page[0].title}</li>
|
||
</ol>
|
||
</nav>
|
||
</section>
|
||
|
||
<section class="container-fluid"
|
||
style="background-color: #DDDDDD; padding-top: 17px; padding-bottom: 15px; margin-bottom: 20px;">
|
||
<h1 style="font-size: 16pt;">{$content.title} {$content.count_tovar}</h1>
|
||
</section>
|
||
|
||
{if ($content.content_type=='tovar_category')}
|
||
|
||
{if $smarty.session.dostup=='a'}
|
||
<section class='container-fluid admin' style="background-color: #ccc;">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
Переместить категорию в:
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
<select class="form-control move-tovar" name="category">
|
||
<option value="0">Нет</option>
|
||
{section name=customer loop=$all_cats}
|
||
<option value="{$all_cats[customer].id}">{$all_cats[customer].title} - {$all_cats[customer].id}</option>
|
||
{/section}
|
||
</select>
|
||
</div>
|
||
<div class="col-md-6">
|
||
Переместить товар из этой категории в:
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
<select class="form-control move-tovar" name="category">
|
||
<option value="0">Нет</option>
|
||
{section name=customer loop=$all_cats}
|
||
<option value="{$all_cats[customer].id}">{$all_cats[customer].title} - {$all_cats[customer].id}</option>
|
||
{/section}
|
||
</select>
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
Список категорий с таким же названием:
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
<ul>
|
||
{section name=customer loop=$duble_cats}
|
||
<li><a href="/content/{$duble_cats[customer].id}" target="_blank">{$duble_cats[customer].title} - {$duble_cats[customer].id} - {$duble_cats[customer].status}</a></li>
|
||
{/section}
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
Перемещать сюда товары:
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
|
||
{/if}
|
||
|
||
<section class="container">
|
||
{include file='api/modules/content/tovar_category.html' list=$tovar_category}
|
||
</section>
|
||
|
||
<section class="container-fluid">
|
||
{include file='api/modules/content/tovar_list.html' list=$tovar}
|
||
</section>
|
||
{/if}
|
||
|
||
|
||
|
||
{if $content.content_type=='tovar'}
|
||
{include file='api/modules/content/tovar_cart.html' list=$content}
|
||
|
||
{/if}
|
||
|
||
|
||
|
||
|
||
{if $content.content_type=='page'}
|
||
<section class="container">
|
||
{$content.txt}
|
||
</section>
|
||
|
||
|
||
<section class="container">
|
||
<i class="fa-solid fa-eye" style="margin-right: 20px;"></i> {$content.see}
|
||
<i class="fa-solid fa-thumbs-up" style="margin-right: 20px; margin-left: 20px; cursor: pointer;" title="Понравилось? Нажмите, нам будет приятно =)"></i><span>{$content.reyt}</span>
|
||
</section>
|
||
|
||
<section class="container">
|
||
|
||
|
||
|
||
<div id="tabs">
|
||
<!-- Кнопки -->
|
||
<ul class="tabs-nav">
|
||
<li><a href="#tab-1">Комментарии</a></li>
|
||
<li><a href="#tab-2">Об авторе</a></li>
|
||
<li><a href="#tab-3">Отблагодарить</a></li>
|
||
</ul>
|
||
<!-- Контент -->
|
||
<div class="tabs-items">
|
||
<div class="tabs-item" id="tab-1">
|
||
<form class="form_comment" action="" method="post">
|
||
<input type="text" name="fio" placeholder="Представьтесь пожалуйста" class="form-control mt-1">
|
||
<input type="text" name="email" placeholder="E-mail" class="form-control mt-1">
|
||
<textarea class="form-control mt-1" style="height: 300px;" name="txt"></textarea>
|
||
<div class="alert alert-secondary hidden mt-1" role="alert">
|
||
Комментарий отправлен на модерацию!
|
||
</div>
|
||
<input type="hidden" name="act" value="add_comment">
|
||
<input type="hidden" name="content_id" value="{$content.id}">
|
||
<input class="btn btn-secondary mt-1" type="submit" name="ok" value="Отправить коментарий">
|
||
</form>
|
||
<hr>
|
||
<h5>Комментарии:</h5>
|
||
<div class="row mt-3 pt-3" style="border: 1px solid lightgray; border-radius: 5px; width: 100%;">
|
||
{section name=customer loop=$comments}
|
||
<div class="col-md-2" style="text-align: center;">
|
||
<img src="/img/yurecnt.ru/ava/ava.webp" style="width: 100%; border-radius: 5px;">
|
||
<p>{$comments[customer].fio}</p>
|
||
<p>{$comments[customer].time|t}</p>
|
||
</div>
|
||
<div class="col-md-10">
|
||
<div>{$comments[customer].txt|br}</div>
|
||
|
||
<button type="button" class="btn btn-secondary btn-otvet" data-bs-toggle="modal" data-bs-target="#modalOtvet" data-id="{$comments[customer].id}">
|
||
Ответить
|
||
</button>
|
||
|
||
|
||
|
||
{assign var=otvet value=$comments[customer].otvet}
|
||
{if ($comments[customer].otvet)}
|
||
<div class="row mt-3 pt-3" style="border: 1px solid lightgray; border-radius: 5px;">
|
||
{section name=customer2 loop=$otvet}
|
||
<div class="col-md-2" style="text-align: center;">
|
||
<img src="/img/yurecnt.ru/ava/ava.webp" style="width: 100%; border-radius: 5px;">
|
||
<p>{$otvet[customer2].fio}</p>
|
||
<p>{$otvet[customer2].time|t}</p>
|
||
</div>
|
||
<div class="col-md-10">
|
||
<div>{$otvet[customer2].txt|br}</div>
|
||
</div>
|
||
|
||
|
||
{/section}
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
{/section}
|
||
</div>
|
||
<!-- Модальное окно -->
|
||
<div class="modal fade" id="modalOtvet" tabindex="-1" aria-labelledby="exampleModalLabel"
|
||
aria-hidden="true">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h1 class="modal-title fs-5" id="exampleModalLabel">Ответить</h1>
|
||
<button type="button" class="btn-close" data-bs-dismiss="modal"
|
||
aria-label="Закрыть"></button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<form class="form_comment" action="" method="post">
|
||
<input type="text" name="fio" placeholder="Представьтесь пожалуйста" class="form-control mt-1">
|
||
<input type="text" name="email" placeholder="E-mail" class="form-control mt-1">
|
||
<textarea class="form-control mt-1" style="height: 300px;" name="txt"></textarea>
|
||
<div class="alert alert-secondary hidden mt-1" role="alert">
|
||
Комментарий отправлен на модерацию!
|
||
</div>
|
||
<input type="hidden" name="act" value="add_comment">
|
||
<input type="hidden" name="content_id" value="" id="idInModal">
|
||
<input class="btn btn-secondary mt-1" type="submit" name="ok" value="Отправить коментарий">
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="tabs-item" id="tab-2">
|
||
</div>
|
||
<div class="tabs-item" id="tab-3">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
{/if}
|
||
{include file=$footer plugins='
|
||
<link rel="stylesheet" href="/api/jquery/plugins/tabs/css.css" type="text/css" media="all">
|
||
<script src="/api/jquery/plugins/tabs/js.js"></script>'}
|
||
|
||
{/if} |