Файл: plugins/advertisement/views/controllers/admin_index.html
Строк: 106
<?php
{style}
{literal}
.peep_banner_list tr{
border-top:1px solid #ccc;
}
.peep_banner_controls{
display:block;
}
.banner_label{
padding-bottom:5px;
font-weight:bold;
}
.banner_locations{
font-size:11px;
padding-top:10px;
}
.banner_code{
width:100%;
overflow:hidden;
}
{/literal}
{/style}
{$menu}
<div>
<div class="peep_stdmargin" style="text-align: right;">{decorator name='button' langLabel='ads+ads_add_banner' extraString=" onclick="window.location='`$addUrl`'""}</div>
{block_decorator name='box' type='empty' addClass='peep_stdmargin' iconClass='peep_ic_files' langLabel='ads+ads_index_list_box_cap_label'}
<table class="peep_banner_list" style="width:100%;">
{foreach from=$banners item='banner'}
<tr class="peep_high1 {if $smarty.foreach.banner.first}peep_tr_first{/if} {if $smarty.foreach.banner.last}peep_tr_last{/if}">
<td class="peep_small" style="text-align:right;width:12%;vertical-align:top;">
<span class="peep_banner_controls">
<a href="{$banner.editUrl}"><div class="banner_edit" style="width:100%; height:30px; line-height:30px; font-size:14px; text-align:center; margin-bottom:5px; background:green; color:#fff; ">{text key='ads+ads_edit_banner_button_label'}</div></a>
<a onclick="return confirm('{text key='ads+ads_delete_banner_confirm_message'}');" href="{$banner.deleteUrl}"><div class="banner_delete" style="width:100%; height:30px; line-height:30px; font-size:14px; text-align:center; margin-bottom:5px; background:red; color:#fff; ">{text key='ads+ads_delete_button_label'}</div></a>
</span>
</td>
<td style="padding: 10px 15px; width: 68%; border-right:1px solid rgba(0,0,0,0.12); border-left:1px solid rgba(0,0,0,0.12);">
<div class="banner_label">{$banner.label}</div>
<div class="banner_code">{$banner.code}</div>
</td>
<td style="width: 20%;">
<h3 style="font-size:12px; border-bottom:1px solid rgba(0,0,0,0.15); padding: 10px 0;">{text key='ads+selected_loc_title'}</h3>
<div class="banner_locations">
{if empty($banner.location)}
{text key='ads+all_world_loc'}
{else}
<ul>
{foreach from=$banner.location item='loc'}
<li style="background:#ccc; margin:2px 0; padding:3px 5px;">{$loc}</li>
{/foreach}
</ul>
{/if}
</div>
</td>
</tr>
{/foreach}
</table>
{/block_decorator}
</div>
?>