Skip to content
Permalink
Browse files

Added date to cache reports list; reverse order of cache reports list

  • Loading branch information...
flopp authored and following committed Jul 19, 2012
1 parent ea2be4b commit 66869d74ceda2890511fb6bc355a3486af016446
Showing with 5 additions and 4 deletions.
  1. +3 −2 htdocs/adminreports.php
  2. +2 −2 htdocs/templates2/ocstyle/adminreports.tpl
@@ -113,13 +113,14 @@
$rs = sql("SELECT `cr`.`id`,
IF(`cr`.`status`=1,'(*) ', '') AS `new`,
`c`.`name`,
`u`.`username`
`u`.`username`,
`cr`.`lastmodified`
FROM `cache_reports` `cr`
INNER JOIN `caches` `c` ON `c`.`cache_id` = `cr`.`cacheid`
INNER JOIN `user` `u` ON `u`.`user_id` = `cr`.`userid`
WHERE `cr`.`status` < 3
AND (`cr`.`adminid` IS NULL OR `cr`.`adminid`=&1)
ORDER BY `cr`.`status` DESC, `cr`.`lastmodified` DESC",
ORDER BY `cr`.`status` DESC, `cr`.`lastmodified` ASC",
$login->userid);
$tpl->assign_rs('reportedcaches', $rs);
@@ -28,7 +28,7 @@
{if $list == true}
<ul>
{foreach from=$reportedcaches item=rc}
<li><a href="adminreports.php?id={$rc.id}">{$rc.new|escape}{$rc.name|escape} reported by {$rc.username|escape}</a></li>
<li><a href="adminreports.php?id={$rc.id}">{$rc.new|escape}{$rc.name|escape} reported by {$rc.username|escape} ({$rc.lastmodified|date_format:$opt.format.datelong})</a></li>
{foreachelse}
<li>{t}No reported caches{/t}</li>
{/foreach}
@@ -63,4 +63,4 @@
{/if}

</form>
{/strip}
{/strip}

0 comments on commit 66869d7

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