{*{include file="$admingentemplates/admin_top.tpl"}
<font class=red_header>{$lang.addition.razdel_name}</font><font class=red_sub_header>&nbsp;|&nbsp;{$lang.faq.adv_list}&nbsp;|&nbsp;{$form.category}</font>
<div class="help_text">
    <div class="close_help">
        <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
    </div>
    <div class="help_body">
        <span class="help_title">{$lang.help}:</span>{$lang.admin_help.area_faq}
    </div>
</div>*}
	
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
		<tr class="table_header">
			<td align="center" width="5%" >{$lang.faq.number}</td>
			<td align="left" width="30%" >{$lang.faq.advice}</td>
			<td align="left" width="45%" >{$lang.faq.adv_descr}</td>
			<td align="right" width="20%" >{$lang.button.action}</td>
		</tr>
		{if $adv_list}
		{section name=a loop=$adv_list}
			<tr {if $smarty.section.a.index mod 2 eq 1}class="table_row even"{else}class="table_row odd"{/if}>
				<td align="center" valign="top">{$smarty.section.a.iteration}</td>
				<td align="left"   valign="top">{$adv_list[a].title}</td>
				<td align="left"   valign="top">{$adv_list[a].body}</td>
				<td align="right" valign="top">
{*					<a class="admin_button" onclick="ShowBlock('show_block','{$adv_list[a].edit_link}')">{$lang.button.edit}<span>&nbsp;</span></a>
					<a class="admin_button" onclick="ShowBlock('show_block','{$adv_list[a].del_link}')">{$lang.button.delete}<span>&nbsp;</span></a>
*}					<div class="block_action fr" style="display: none;">
						<div class="action_del" style="display: block;">
							<img width="16" alt="" src="{$site_root}{$template_root}/images/photo_delete.png" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.delete}');return false" onclick="ShowBlock('show_block','{$adv_list[a].del_link}')">
						</div>
					</div>			
					<div style="width:10px;float:right;" class="fl">&nbsp;</div>
					<div class="block_action fr" style="display: none;">
						<div class="action_del" style="display: block;">
							<img width="16" alt="" src="{$site_root}{$template_root}/images/edit.png" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.edit}');return false" onclick="ShowBlock('show_block','{$adv_list[a].edit_link}')">
						</div>
					</div>										
				</td>
			</tr>
		{/section}
		{else}
		<tr height="40">
			<td class="main_error_text" align="center" colspan="5">{$lang.faq.empty}</td>
		</tr>
		{/if}
		<tr class="table_header">
			<td colspan="7">
				&nbsp;
			</td>
		</tr>
	</table>
	<table style="margin-top:15px;">
		<tr height="40">
			<td>
				<a class="admin_button_major" onclick="ShowBlock('show_block','{$form.add_link}')">{$lang.faq.adv_add}<span>&nbsp;</span></a>
			</td>
			<td>
				<a class="admin_button_cancel" onclick="ShowBlock('show_block','{$form.back_link}')">{$lang.button.vip_cancel}<span>&nbsp;</span></a>
			</td>
		</tr>
	</table>
<script type="text/javascript">
	tab_link = '{$form.back_link}';
</script>
{*
{include file="$admingentemplates/admin_bottom.tpl"}
*}