improved user profile statistics layout

This commit is contained in:
following
2013-08-04 10:21:50 +02:00
parent 584c7d963e
commit 17054960d4
3 changed files with 54 additions and 55 deletions
+4
View File
@@ -2569,6 +2569,8 @@ INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2143', '<b>OCon
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2144', 'Participants', '2010-09-07 20:19:07');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2146', 'Statistics', '2010-09-07 20:19:07');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2147', 'Overall terrain and difficulty distribution of active OConly caches:', '2010-09-07 20:19:07');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2148', '... by cache type', '2010-09-07 20:19:07');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2149', '... by region', '2010-09-07 20:19:07');
-- Table sys_trans_ref
SET NAMES 'utf8';
@@ -6594,6 +6596,8 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2144', 'DE', ' Teilnehmer', '2010-09-07 20:19:07');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2146', 'DE', 'Statistik', '2010-09-07 20:19:07');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2147', 'DE', 'Gelände- und Schwierigkeitsverteilung aller OConly-Caches:', '2010-09-07 20:19:07');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2148', 'DE', '... nach Cachetyp', '2010-09-07 20:19:07');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2149', 'DE', '... nach Region', '2010-09-07 20:19:07');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1', 'EN', 'Reorder IDs', '2010-09-02 00:15:30');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2', 'EN', 'The database could not be reconnected.', '2010-08-28 11:48:07');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('3', 'EN', 'Testing please do not login', '2010-08-28 11:48:07');
+47 -52
View File
@@ -9,13 +9,13 @@
<td valign="middle" class="header-small" style="padding-top:5px;padding-bottom:5px;white-space:nowrap" width="1%">
<img src="resource2/{$opt.template.style}/images/cacheicon/22x22-traditional.gif" width="22" height="22" align="middle" border="0" style="padding-right:2px" />&nbsp;<b>{t}Hidden caches{/t}:</b></td>
<td class="header-small">{$hidden}
{if $hidden>0}[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show all{/t}</a>]{if $hidden_active<$hidden}, {t 1=$hidden_active}%1 of these are active{/t} {if $hidden_active>0}[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=1&amp;output=HTML&amp;sort=byname&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{/if}{/if}{/if}
{if $hidden>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{if $hidden_active<$hidden}, &nbsp;{t 1=$hidden_active}%1 of these are active{/t} {if $hidden_active>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=1&amp;output=HTML&amp;sort=byname&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{/if}{/if}{/if}
</td>
</tr>
{if $show_statistics==true}
<tr>
<td></td>
<td style="padding-left:34px; vertical-align:top; line-height:1.8em">{t}... by cache type{/t}:</td>
<td>
<div style="padding-left:2px">
{include file="res_cachetypestats.tpl" stat=$hidden_by_cachetype total=$hidden logs=false oconly=true}
@@ -32,69 +32,23 @@
</td>
<td class="header-small">
{$found}
{if $found>0}[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=1,7&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show all{/t}</a>]{/if}
{if $found>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=1,7&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{/if}
</td>
</tr>
{if $show_statistics==true}
<tr>
<td></td>
<td style="padding-left:34px; vertical-align:top; line-height:1.8em">{t}... by cache type{/t}:</td>
<td>
<div style="padding-left:2px">
{include file="res_cachetypestats.tpl" stat=$found_by_cachetype total=$found logs=true oconly=true}
</div>
</td>
</tr>
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td valign="middle" class="header-small" style="padding-top:5px;padding-bottom:5px;white-space:nowrap">
<img src="resource2/ocstyle/images/log/16x16-dnf.png" />&nbsp;&nbsp;&nbsp;<b>{t}Not found{/t}:</b></td>
<td class="header-small" >{$dnf}
{if $dnf > 0}[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=2&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show all{/t}</a>]{/if}
</td>
</tr>
<tr>
<td valign="middle" class="header-small" style="padding-bottom:5px;white-space:nowrap">
<img src="resource2/ocstyle/images/log/16x16-note.png" />&nbsp;&nbsp;&nbsp;<b>{t}Notes{/t}:</b></td>
<td class="header-small" >{$notes}
{if $notes>0}[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=3&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show all{/t}</a>]{/if}
</td>
</tr>
{if $maintainence > 0}
<tr>
<td valign="middle" class="header-small" style="padding-bottom:5px;white-space:nowrap">
<img src="resource2/ocstyle/images/viewcache/16x16-maintenance.png" />&nbsp;&nbsp;&nbsp;<b>{t}Maintenance logs{/t}:</b></td>
<td class="header-small" >{$maintainence}
[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=9,10,11,13,14&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show all{/t}</a>]
</td>
</tr>
{/if}
{/if}
<tr>
<td valign="middle" class="header-small" style="padding-bottom:5px;white-space:nowrap">
<img src="resource2/{$opt.template.style}/images/viewcache/rating-star.gif" align="middle" border="0" style="padding-right:2px" />&nbsp;&nbsp;<b>{t}Recommendations{/t}:</b></td>
<td class="header-small" >{if $maxrecommended !== null}{t 1=$recommended 2=$maxrecommended}%1 of %2 possibles{/t}{else}{$recommended}{/if} {if $recommended>0}[<a href="usertops.php?userid={$userid}{if $oconly}&oconly=1{/if}">{t}Show all{/t}</a>]{/if}
</td>
</tr>
{if $show_picstat && $logpics !== null}
<tr>
<td class="header-small">
<img src="resource2/{$opt.template.style}/images/action/16x16-addimage.png" align="middle" border="0" />&nbsp;&nbsp;&nbsp;<b>{t}Log pictures{/t}:</b></td>
<td class="header-small" >{$logpics} {if $logpics>0}[<a href="viewprofile.php?userid={$userid}&allpics=1">{t}Show all{/t}</a>]{/if}
</td>
</tr>
{/if}
{if $show_statistics==true}
<tr><td class="spacer" colspan="2"></td></tr>
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td valign="top">
<img src="resource2/ocstyle/images/log/16x16-found.png" style="padding-right:2px" />
&nbsp;<b>{t}Finds by region{/t}:</b>
<td valign="top" style="padding-left:34px">
{t}... by region{/t}:
</td>
<td>
<table cellspacing="0" cellpadding="0">
@@ -113,4 +67,45 @@
</table>
</td>
</tr>
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td valign="middle" class="header-small" style="padding-top:5px;padding-bottom:5px;white-space:nowrap">
<img src="resource2/ocstyle/images/log/16x16-dnf.png" />&nbsp;&nbsp;&nbsp;<b>{t}Not found{/t}:</b></td>
<td class="header-small" >{$dnf}
{if $dnf > 0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=2&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{/if}
</td>
</tr>
<tr>
<td valign="middle" class="header-small" style="padding-bottom:5px;white-space:nowrap">
<img src="resource2/ocstyle/images/log/16x16-note.png" />&nbsp;&nbsp;&nbsp;<b>{t}Notes{/t}:</b></td>
<td class="header-small" >{$notes}
{if $notes>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=3&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{/if}
</td>
</tr>
{if $maintainence > 0}
<tr>
<td valign="middle" class="header-small" style="padding-bottom:5px;white-space:nowrap">
<img src="resource2/ocstyle/images/viewcache/16x16-maintenance.png" />&nbsp;&nbsp;&nbsp;<b>{t}Maintenance logs{/t}:</b></td>
<td class="header-small" >{$maintainence}
&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;finderid={$userid}&amp;searchbyfinder=&amp;logtype=9,10,11,13,14&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]
</td>
</tr>
{/if}
{/if}
<tr>
<td valign="middle" class="header-small" style="padding-bottom:5px;white-space:nowrap">
<img src="resource2/{$opt.template.style}/images/viewcache/rating-star.gif" align="middle" border="0" style="padding-right:2px" />&nbsp;&nbsp;<b>{t}Recommendations{/t}:</b></td>
<td class="header-small" >{if $maxrecommended !== null}{t 1=$recommended 2=$maxrecommended}%1 of %2 possibles{/t}{else}{$recommended}{/if} {if $recommended>0}&nbsp;[<a href="usertops.php?userid={$userid}{if $oconly}&oconly=1{/if}">{t}Show{/t}</a>]{/if}
</td>
</tr>
{if $show_picstat && $logpics !== null}
<tr>
<td class="header-small">
<img src="resource2/{$opt.template.style}/images/action/16x16-addimage.png" align="middle" border="0" />&nbsp;&nbsp;&nbsp;<b>{t}Log pictures{/t}:</b></td>
<td class="header-small" >{$logpics} {if $logpics>0}&nbsp;[<a href="viewprofile.php?userid={$userid}&allpics=1">{t}Show{/t}</a>]{/if}
</td>
</tr>
{/if}
+3 -3
View File
@@ -80,7 +80,7 @@
</tr>
{/if}
<tr><td><td class="spacer"> </td></tr>
<tr><td><td class="spacer"></td></tr>
</table>
{* description *}
@@ -90,8 +90,8 @@
<div class="table-like-font" style="margin-left:6px">
{$description}
</div>
<div>&nbsp;</div>
{/if}
<div>&nbsp;</div>
{* all-caches statistics *}
<div class="content2-container bg-blue02">
@@ -161,7 +161,7 @@
<tr>
<td valign="middle" class="header-small" style="white-space:nowrap" width="1%">
<img src="resource2/ocstyle/images/log/16x16-found.png" style="padding-right:2px" />
<b>{t}OConly-81 statistics{/t}:</b>
&nbsp;<b>{t}OConly-81 statistics{/t}:</b>
</td>
<td valign="middle">
{t}inactive{/t} (<a href="oconly81.php">{t}Info{/t}</a>)