View file www/style/web/admin_abuse.tpl

File size: 1.05Kb
{include file="$style/head.tpl"}
{literal}
<script>
function refuse(id)
{
    $('#content'+id).html('<img src="/style/web/loader.gif">');	
	$.ajax({
		type: "POST",
        {/literal}
        
		url: '{$server}/admin_ka?mode=abuse&refuse='+id,
        {literal}
       	dataType: "html",
		success: function(msg){
$('#content'+id).html(msg);	
		}
		
	});
}
</script>
      {/literal}
{foreach from=$abuse item=abuse}
<div class="{cycle values='div1,div2'}" id="content{$abuse.id}">
IP: {$abuse.ip}<br />
Дата: {$abuse.time|itime}<br />
<a href="javascript:show_hide('#abuse{$abuse.id}')">Показать</a>
<div id="abuse{$abuse.id}" style="display:none">
{$abuse.text|output}<br />
<a href="?mode=file&id={$abuse.file}">Перейти к файлу "{$abuse.name_file|output}"</a> | {if $abuse.active==1}<a href="javascript:refuse({$abuse.id})">Отклонить</a>{else}Жалоба уже была отклонена{/if}
</div>
</div>
{/foreach}
<a href="{$server}/admin_ka">В админку</a>
{include file="$style/foot.tpl"}