Skip to content
Browse files

Cachemeldungen als HTML-Tabelle

  • Loading branch information...
flopp authored and following committed Aug 12, 2012
1 parent 66869d7 commit e8c5f72a59e0894e96240965a0d80f158a0ce945
Showing with 13 additions and 8 deletions.
  1. +3 −1 htdocs/adminreports.php
  2. +10 −7 htdocs/templates2/ocstyle/adminreports.tpl
@@ -113,11 +113,13 @@
$rs = sql("SELECT `cr`.`id`,
IF(`cr`.`status`=1,'(*) ', '') AS `new`,
`u2`.`username` AS `ownernick`,
FROM `cache_reports` `cr`
INNER JOIN `caches` `c` ON `c`.`cache_id` = `cr`.`cacheid`
INNER JOIN `user` `u` ON `u`.`user_id` = `cr`.`userid`
INNER JOIN `user` AS `u2` ON `u2`.`user_id`=`c`.`user_id`
WHERE `cr`.`status` < 3
AND (`cr`.`adminid` IS NULL OR `cr`.`adminid`=&1)
ORDER BY `cr`.`status` DESC, `cr`.`lastmodified` ASC",
@@ -26,13 +26,16 @@

{if $list == true}
{foreach from=$reportedcaches item=rc}
<li><a href="adminreports.php?id={$}">{$|escape}{$|escape} reported by {$rc.username|escape} ({$rc.lastmodified|date_format:$opt.format.datelong})</a></li>
<li>{t}No reported caches{/t}</li>

{foreach from=$reportedcaches item=rc}
<td><a href="adminreports.php?id={$}">{$}</td><td><a href="adminreports.php?id={$}">{$|escape}{$|escape}</a></td><td>{$rc.ownernick|escape}</td><td>{$rc.username|escape}</td><td>{$rc.lastmodified|date_format:$opt.format.datelong}</td></tr>
<tr><td colspan=5>{t}No reported caches{/t}</td></tr>

{if $reportedcaches != NULL}
<p style="line-height: 1.6em;">{t}(*) New reports{/t}</p>

0 comments on commit e8c5f72

Please sign in to comment.
You can’t perform that action at this time.