85 lines
1.7 KiB
HTML
Executable File
85 lines
1.7 KiB
HTML
Executable File
{include file=$header title="Опросы" h1="Опросы"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- page header -->
|
|
<section class="container-xl page-header">
|
|
<div class="container-xl">
|
|
<div class="text-center">
|
|
<h1 class="mt-0 mb-2">{$page.title}</h1>
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb justify-content-center mb-0">
|
|
<li class="breadcrumb-item"><a href="/">Главная</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
<li class="breadcrumb-item active" aria-current="page">Опросы</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
<section class="main-content" style="margin-top: 0px;">
|
|
<div class="container-xl" style="background-color: #fff;">
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-8">
|
|
|
|
<div class="page-content bordered rounded padding-30">
|
|
|
|
|
|
|
|
{if $smarty.get.id}
|
|
<h1>{$h1}</h1>
|
|
|
|
<form id="Golos" action="/act/opros">
|
|
<input type="hidden" name="act" value="golos">
|
|
{section name=customer loop=$list}
|
|
<div class="mb-3">
|
|
<input type="radio" name="drone" value="{$list[customer].id}" checked />
|
|
<label for="huey">{$list[customer].txt}</label>
|
|
</div>
|
|
{/section}
|
|
<button class="btn btn-info mb-3" data-id="{$smarty.get.id}">Проголосовать</button>
|
|
</form>
|
|
|
|
|
|
<div class="alert alert-success hidden" role="alert" id="divres">
|
|
Спасибо за ваш голос!
|
|
</div>
|
|
|
|
|
|
<a href="/opros/">Другие опросы</a>
|
|
|
|
{else}
|
|
<ul>
|
|
{section name=customer loop=$list}
|
|
<li><a href="/opros/{$list[customer].id}">{$list[customer].txt}</a></li>
|
|
{/section}
|
|
</ul>
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</section>
|
|
|
|
|
|
|
|
|
|
{include file=$footer} |