Added date to cache reports list; reverse order of cache reports list
This commit is contained in:
@@ -113,13 +113,14 @@
|
|||||||
$rs = sql("SELECT `cr`.`id`,
|
$rs = sql("SELECT `cr`.`id`,
|
||||||
IF(`cr`.`status`=1,'(*) ', '') AS `new`,
|
IF(`cr`.`status`=1,'(*) ', '') AS `new`,
|
||||||
`c`.`name`,
|
`c`.`name`,
|
||||||
`u`.`username`
|
`u`.`username`,
|
||||||
|
`cr`.`lastmodified`
|
||||||
FROM `cache_reports` `cr`
|
FROM `cache_reports` `cr`
|
||||||
INNER JOIN `caches` `c` ON `c`.`cache_id` = `cr`.`cacheid`
|
INNER JOIN `caches` `c` ON `c`.`cache_id` = `cr`.`cacheid`
|
||||||
INNER JOIN `user` `u` ON `u`.`user_id` = `cr`.`userid`
|
INNER JOIN `user` `u` ON `u`.`user_id` = `cr`.`userid`
|
||||||
WHERE `cr`.`status` < 3
|
WHERE `cr`.`status` < 3
|
||||||
AND (`cr`.`adminid` IS NULL OR `cr`.`adminid`=&1)
|
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);
|
$login->userid);
|
||||||
|
|
||||||
$tpl->assign_rs('reportedcaches', $rs);
|
$tpl->assign_rs('reportedcaches', $rs);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
{if $list == true}
|
{if $list == true}
|
||||||
<ul>
|
<ul>
|
||||||
{foreach from=$reportedcaches item=rc}
|
{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}
|
{foreachelse}
|
||||||
<li>{t}No reported caches{/t}</li>
|
<li>{t}No reported caches{/t}</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
@@ -63,4 +63,4 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
{/strip}
|
{/strip}
|
||||||
|
|||||||
Reference in New Issue
Block a user