113 lines
3.9 KiB
Smarty
113 lines
3.9 KiB
Smarty
<div class="title"><h5>{#POLL_MODULE_NAME#}</h5></div>
|
|
|
|
<div class="widget" style="margin-top: 0px;">
|
|
<div class="body">
|
|
{#POLL_MODULE_TITLE#}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="breadCrumbHolder module">
|
|
<div class="breadCrumb module">
|
|
<ul>
|
|
<li class="firstB"><a href="index.php" title="{#MAIN_PAGE#}">{#MAIN_PAGE#}</a></li>
|
|
<li><a href="index.php?do=modules&cp={$sess}">{#MODULES_SUB_TITLE#}</a></li>
|
|
<li><a href="index.php?do=modules&action=modedit&mod=poll&moduleaction=1&cp={$sess}">{#POLL_MODULE_NAME#}</a></li>
|
|
<li><strong class="code">{#POLL_MODULE_ALL#}</strong></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="widget first">
|
|
<div class="head">
|
|
<h5 class="iFrames">{#POLL_MODULE_ALL#}</h5>
|
|
<div class="num"><a class="basicNum" href="index.php?do=modules&action=modedit&mod=poll&moduleaction=new&cp={$sess}">{#POLL_NEW_LINK#}</a></div>
|
|
</div>
|
|
|
|
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic mainForm">
|
|
<col width="20">
|
|
<col>
|
|
<col width="160">
|
|
<col width="200">
|
|
<col width="200">
|
|
<col width="150">
|
|
{if $items}
|
|
<thead>
|
|
<tr>
|
|
<td align="center" width="1%"><span class="">[!]</span></td>
|
|
<td>{#POLL_NAME#}</td>
|
|
<td>{#POLL_SYSTEM_TAG#}</td>
|
|
<td>{#POLL_START_END#}</td>
|
|
<td>{#POLL_HITS_CMMENT#}</td>
|
|
<td colspan="3" align="center" width="2%">{#POLL_ACTIONS#}</td>
|
|
</tr>
|
|
</thead>
|
|
|
|
{foreach from=$items item=item}
|
|
<tr>
|
|
<td width="10">
|
|
{if $item->poll_status != '1'}
|
|
<span class="icon_sprite ico_delete_no"></span>
|
|
{else}
|
|
<span class="icon_sprite ico_ok"></span>
|
|
{/if}
|
|
</td>
|
|
|
|
<td>
|
|
<a href="index.php?do=modules&action=modedit&mod=poll&moduleaction=edit&cp={$sess}&id={$item->id}"><strong>{$item->poll_title}</strong></a>
|
|
</td>
|
|
|
|
<td>
|
|
<div style="display: flex; align-items: center; gap: 5px;"><input id="copy_{$item->id}" type="text" value="[mod_poll:{$item->id}]" size="12" readonly>
|
|
<a style="text-align: center; padding: 5px 3px 4px 3px;" class="whiteBtn copyBtn topDir" href="javascript:void(0);" data-clipboard-action="copy" data-clipboard-target="#copy_{$item->id}" title="{#BANNER_SET_COPY#}">
|
|
<img style="margin-top: -3px; position: relative; top: 1px; padding: 0 3px;" class="clippy" src="{$ABS_PATH}admin/templates/images/clippy.svg" width="13"></a>
|
|
</div>
|
|
</td>
|
|
|
|
<td align="center">
|
|
<span class="date_text dgrey">c {$item->poll_start|date_format:$TIME_FORMAT|pretty_date}</span>
|
|
<br />
|
|
<span class="date_text dgrey">по {$item->poll_end|date_format:$TIME_FORMAT|pretty_date}</span>
|
|
</td>
|
|
|
|
<td align="center">
|
|
{if $item->sum_hits == ''} 0 {else} {$item->sum_hits} {/if} / <a href="index.php?do=modules&action=modedit&mod=poll&moduleaction=comments&cp={$sess}&id={$item->id}">{$item->comments}</a>
|
|
</td>
|
|
|
|
<td width="1%" align="center">
|
|
<a title="{#POLL_EDIT_POLL#}" href="index.php?do=modules&action=modedit&mod=poll&moduleaction=edit&cp={$sess}&id={$item->id}"><span class="icon_sprite ico_edit"></span></a>
|
|
</td>
|
|
|
|
<td width="1%" align="center">
|
|
<a title="{#POLL_EDIT_CMMENT#}" href="index.php?do=modules&action=modedit&mod=poll&moduleaction=comments&cp={$sess}&id={$item->id}">
|
|
<span class="icon_sprite ico_comment"></span>
|
|
</a>
|
|
</td>
|
|
|
|
<td width="1%" align="center">
|
|
<a title="{#POLL_DELETE#}" class="ConfirmDelete toprightpDir" dir="{#POLL_DELETE#}" name="{#POLL_DELETE_CONFIRM#}" href="index.php?do=modules&action=modedit&mod=poll&moduleaction=delete&cp={$sess}&id={$item->id}"><span class="icon_sprite ico_delete"></span></a>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
{else}
|
|
<tr>
|
|
<td colspan="7">
|
|
<ul class="messages">
|
|
<li class="highlight yellow">{#POLL_MODULE_NO_ITEMS#}</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
</div>
|
|
|
|
|
|
{if $page_nav}
|
|
<div class="pagination">
|
|
<ul class="pages">
|
|
{$page_nav}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
|
|
<script>var clipboard = new Clipboard('.copyBtn');</script> |