File size: 1.13Kb
{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> | <a href="javascript:refuse({$abuse.id})">Отклонить</a>
</div>
</div>
{/foreach}
<a href="?mode=file">Посмотреть Файлы(<font color="red">+{$count_file}</font>)</a><br />
<a href="?mode=abuse">Посмотреть Жалобы(<font color="red">+{$count_abuse}</font>)</a><br />
{include file="$style/foot.tpl"}