File: /var/www/ilya/data/www/irk2.ru/templates/skin/new/actions/ActionPage/admin.tpl
{include file='header.tpl'}
<div class=topic>
<h2>{$aLang.page_admin}</h2>
<br>
{if $aParams.0=='new'}
<h4>{$aLang.page_create}</h4>
{include file='actions/ActionPage/add.tpl'}
{elseif $aParams.0=='edit'}
<h4>{$aLang.page_edit} «{$oPageEdit->getTitle()}»</h4>
{include file='actions/ActionPage/add.tpl'}
{else}
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PAGE}/admin/new/">{$aLang.page_new}</a>
{/if}
<table width="100%" cellspacing="0" class="admin_page">
<tr>
<th align="left">{$aLang.page_admin_title}</th>
<th align="center" width="250px">{$aLang.page_admin_url}</th>
<th align="center" width="50px">{$aLang.page_admin_active}</th>
<th align="center" width="80px">{$aLang.page_admin_action}</th>
</tr>
{foreach from=$aPages item=oPage name=el2}
{if $smarty.foreach.el2.iteration % 2 == 0}
{assign var=className value=''}
{else}
{assign var=className value='colored'}
{/if}
<tr class="{$className}" onmouseover="this.className='colored_sel';" onmouseout="this.className='{$className}';">
<td align="left" valign="middle">
<img src="{$DIR_STATIC_SKIN}/images/{if $oPage->getLevel()==0}folder{else}new{/if}_16x16.gif" alt="" title="" border="0" style="margin-left: {$oPage->getLevel()*20}px;"/>
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PAGE}/{$oPage->getUrlFull()}/">{$oPage->getTitle()}</a>
</td>
<td align="left">
/{$oPage->getUrlFull()}/
</td>
<td align="center">
{if $oPage->getActive()}
{$aLang.page_admin_active_yes}
{else}
{$aLang.page_admin_active_no}
{/if}
</td>
<td align="center">
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PAGE}/admin/edit/{$oPage->getId()}/"><img src="{$DIR_STATIC_SKIN}/images/edit.gif" alt="{$aLang.page_admin_action_edit}" title="{$aLang.page_admin_action_edit}" border="0"/></a>
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PAGE}/admin/delete/{$oPage->getId()}/" onclick="return confirm('«{$oPage->getTitle()}»: {$aLang.page_admin_action_delete_confirm}');"><img src="{$DIR_STATIC_SKIN}/images/delete.gif" alt="{$aLang.page_admin_action_delete}" title="{$aLang.page_admin_action_delete}" border="0"/></a>
</td>
</tr>
{/foreach}
</table>
</div>
{include file='footer.tpl'}