Модуль Баннер v2.26.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
3.6 KiB

9 years ago
<div class="title">
<h5>{#BANNER_MODULE_NAME#}</h5>
</div>
<div class="widget">
<div class="body">
<strong>{#BANNER_MOD_ALLOWS#}</strong>
<ul style="list-style: square; margin-left:15px;">
<li>{#BANNER_MOD_ALLOWS_A#}</li>
<li>{#BANNER_MOD_ALLOWS_B#}</li>
<li>{#BANNER_MOD_ALLOWS_C#}</li>
</ul>
</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&amp;cp={$sess}">{#MODULES_SUB_TITLE#}</a></li>
<li><strong class="code">{#BANNER_BANNER#}</strong></li>
</ul>
</div>
</div>
<div class="widget">
<div class="head">
<h5>{#BANNER_SHOW_ALL#} |&nbsp;
<a href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=newbanner&cp={$sess}&pop=1&onlycontent=1" data-height="650" data-width="950" data-modal="true" class="openDialog">{#BANNER_NEW_LINK#}</a> |&nbsp;
<a href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=kategs&cp={$sess}">{#BANNER_CATEG_LINK#}</a></h5>
</div>
</div>
<table width="100%" border="0" cellpadding="8" cellspacing="1" class="tableStatic mainForm">
<tr class="tableheader">
<td width="10">&nbsp;</td>
<td>{#BANNER_NAME_TABLE#} </td>
<td>{#BANNER_FILE_TABLE#}</td>
<td>{#BANNER_INCATEG_TABLE#}</td>
<td>{#BANNER_SHOW_TABLE#}</td>
<td>{#BANNER_HITS_TABLE#}</td>
<td>{#BANNER_VIEWS_TABLE#}</td>
<td colspan="2">{#BANNER_ACTIONS#}</td>
</tr>
{foreach from=$items item=item}
{if ($item->Aktiv != 1) || ($item->Bannertags=='') || ($item->Klicks >= $item->MaxKlicks && $item->MaxKlicks != 0) || ($item->Views >= $item->MaxViews && $item->MaxViews != 0)}
{assign var=active value=0}
{else}
{assign var=active value=1}
{/if}
<tr id="table_rows">
<td width="10">
{if $active!=1}
<span class="toprightDir icon_sprite ico_lock" title="{#BANNER_NOT_ACTIVE#}">&nbsp;</span>
{else}
<span class="toprightDir icon_sprite ico_unlock" title="{#BANNER_IS_ACTIVE#}">&nbsp;</span>
{/if}
</td>
<td><a href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=editbanner&cp={$sess}&id={$item->Id}&pop=1&onlycontent=1" data-height="650" data-width="950" data-modal="true" class="openDialog" title="{#BANNER_EDIT_LINK#}">{$item->Bannername}</a></td>
<td><a class="fancy preview" href="../modules/{$mod_path}/files/{$item->Bannertags}" title="{#BANNER_VIEW_LINK#}" target="_blank">{$item->Bannertags}</a></td>
<td>
{foreach from=$kategs item=k}
{if $k->Id==$item->KatId}{$k->KatName}{/if}
{/foreach}
</td>
<td align="center">{if $item->ZStart<10}0{/if}{$item->ZStart}:00 - {if $item->ZEnde<10}0{/if}{$item->ZEnde}:00</td>
<td align="center">{$item->Klicks} / {if $item->MaxKlicks==0}~{else}{$item->MaxKlicks}{/if}</td>
<td align="center">{$item->Views} / {if $item->MaxViews==0}~{else}{$item->MaxViews}{/if}</td>
<td width="1%" align="center">
<a class="topleftDir icon_sprite ico_edit openDialog" title="{#BANNER_EDIT_LINK#}" href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=editbanner&cp={$sess}&id={$item->Id}&pop=1&onlycontent=1" data-height="650" data-width="950" data-modal="true">&nbsp;</a>
</td>
<td width="1%" align="center">
<a class="topleftDir icon_sprite ico_delete ConfirmDelete" title="{#BANNER_DELETE_LINK#}" dir="Удалить" name="{#BANNER_DELETE_CONFIRM#}" href="index.php?do=modules&action=modedit&mod={$mod_path}&moduleaction=delbanner&cp={$sess}&id={$item->Id}">&nbsp;</a>
</td>
</tr>
{/foreach}
</table><br />
{if $page_nav}<div class="infobox">{$page_nav}</div>{/if}