From 78fa77f2ef911ea6281f3874318895eeb3c1e0f0 Mon Sep 17 00:00:00 2001 From: Slini11 Date: Mon, 17 Aug 2015 21:09:52 +0200 Subject: [PATCH] added recommendation column and changed foundit column --- htdocs/myhome.php | 2 +- htdocs/templates2/ocstyle/myhome.tpl | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/myhome.php b/htdocs/myhome.php index bf89e839b..b0b9ad3b6 100644 --- a/htdocs/myhome.php +++ b/htdocs/myhome.php @@ -46,7 +46,7 @@ //get last hidden caches $tpl->assign_rs('caches', sql("SELECT `caches`.`cache_id`, `caches`.`name`, `caches`.`type`, `caches`.`date_hidden`, `caches`.`status`, `caches`.`wp_oc`, - `found`, + `found`,`stat_caches`.`toprating`, `ca`.`attrib_id` IS NOT NULL AS `oconly`, MAX(`cache_logs`.`date`) AS `lastlog`, (SELECT `type` FROM `cache_logs` `cl2` diff --git a/htdocs/templates2/ocstyle/myhome.tpl b/htdocs/templates2/ocstyle/myhome.tpl index d02ee950d..d1ff0dbb5 100644 --- a/htdocs/templates2/ocstyle/myhome.tpl +++ b/htdocs/templates2/ocstyle/myhome.tpl @@ -140,7 +140,9 @@ function myHomeLoad() {/foreach} {t}Your geocaches hidden{/t}: - {t}Finds{/t} / {t}Last log{/t} + + {t}Found{/t} + {t}Last log{/t} {foreach from=$caches item=cacheItem} {if $dotfill == ''} @@ -153,7 +155,9 @@ function myHomeLoad() {$cacheItem.date_hidden|date_format:$opt.format.datelong}  {include file="res_cachestatus.tpl" status=$cacheItem.status} {$cacheItem.name|escape}{if strlen($cacheItem.name) < 45}    {$dotfill}{/if} -   {if $cacheItem.found>0}{$cacheItem.found}{/if}    {$cacheItem.lastlog|date_format:$opt.format.date}  {include file="res_logtype.tpl" type=$cacheItem.lastlog_type} + {if $cacheItem.found>0}{$cacheItem.toprating}{/if} + {if $cacheItem.found>0}{$cacheItem.found}{/if} + {$cacheItem.lastlog|date_format:$opt.format.date}  {include file="res_logtype.tpl" type=$cacheItem.lastlog_type} {/foreach}