source: extensions/whois_online/report.tpl @ 6193

Last change on this file since 6193 was 6193, checked in by vdigital, 14 years ago

New: Piwigo 2.1 support
Fix: Flags could be based on Languages if api calls are forbidden by a provider.
Part of a code review.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 6.2 KB
RevLine 
[6193]1{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"plugins/whois_online/jquery/cluetip/jquery.cluetip.min.js" }
[3319]2<table class="table2" id="detailedStats">
3<thead> 
4<tr class="throw">
5  <th>{'users'|@translate} &nbsp; &nbsp;</th>
6  <th class="ns">&nbsp;</th>
7  <th>{'First access'|@translate} &nbsp; &nbsp;</th>
8  <th>{'Level'|@translate} &nbsp;</th>
9  <th class="ns">{'Images (Modify)'|@translate}</th>
10  <th>{'Last access'|@translate} &nbsp;</th>
11</tr>
12</thead>
13<tbody> 
14{foreach from=$search_results item=detail name=res_loop}
15<tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}">
16  <td><a href={if isset($detail.url_user)}"{$detail.url_user}" onclick="window.open(this.href); return false;"{else}"#"{/if} class="cluetip{if ($detail.guest)} other{/if}"
17                title="{'User:'|@translate} {$detail.username}|
18                        <table>
19                                <tr><td class=&#34;right&#34;><b><i>IP:</i></b></td><td colspan=&#34;3&#34;>{$detail.IP}
20                                {if ($detail.hidden_IP== 'true')}{'(Multiple IP)'|@translate}{/if}</td></tr>
21                                {if (substr($detail.user.registration_date,0,4)!='0000')}
22                                <tr><td class=&#34;right&#34;><b><i>{'Registered since'|@translate}</i></b></td><td colspan=&#34;3&#34;>{$detail.user.registration_date|@substr:0:10}</td></tr>
23                                {/if}
24                                <tr><td class=&#34;right&#34;><b><i>User_id</i></b></td><td>{$detail.user_id}</td>
25                                <td class=&#34;right&#34;><b><i>{'Status'|@translate}</i></b></td><td>{$detail.user.status|@translate|ucfirst} ({$detail.user.status})</td></tr>
26                                <tr><td class=&#34;right&#34;><b><i>{'language'|@translate}</i></b></td><td>{$detail.Language}</td></tr>
27                                <tr><td class=&#34;right&#34; colspan=&#34;2&#34;>{$detail.Country.Name}</td><td colspan=&#34;2&#34;> / {$detail.Country.City}</td></tr>
28                                <tr><td colspan=&#34;4&#34;>&nbsp;</td></tr>
29                                <tr><td class=&#34;right&#34;><b><i>{'Hits since'|@translate}</i></b></td><td colspan=&#34;3&#34;>{$detail.first_access_date}</td></tr>
30                                <tr><td class=&#34;right&#34;><b><i>{'on pictures'|@translate}</i></b></td><td>{$detail.elm_hits}</td>
31                                <td class=&#34;right&#34;><b><i>{'on pages'|@translate}</i></b></td><td>{$detail.pag_hits}</td></tr>
32                        </table>">{$detail.username}</a>
[6193]33                                <a href="./admin.php?page=profile&amp;user_id={$detail.user_id}" title="{'Profile'|@translate}"
[3319]34                                onclick="window.open(this.href); return false;">[{$detail.lang}]</a>
35        </td>
36        <td>
37                {if ($detail.user_id == '1')}<a class="external" href="{'http:hostip'|@translate}" title="{':hostip:title'|@translate}">
[6193]38                        <img src="{$detail.Flag}" alt="{$detail.IP} - {'language'|@translate}: {$detail.Language}" width="24" height="16">
[3319]39                </a>
40                {else}<a class="external" href="{'http:geoiptool'|@translate}{$detail.IP}" title="{':geoiptool:title'|@translate}">
[6193]41                        <img src="{$detail.Flag}" alt="{$detail.IP} - {'language'|@translate}: {$detail.Language}" width="24" height="16">
[3319]42                </a>
43                {/if}
44        </td>
[3695]45  <td>{$detail.first_access_date} {if ($detail.Bot!==false and $detail.Allowed_SE)}<a class="other" href="#" title="{'Allowed Search engine: '|@translate}{$detail.Bot} - ({$detail.user_agent})"><sub>SE</sub></a>{/if}
46        {if ($detail.Bot!==false and !$detail.Allowed_SE and !$detail.Banned_SE)}<a href="#" title="{'Possible Banned Search engine: '|@translate}{$detail.Bot} - ({$detail.user_agent})"><sub>SE</sub></a>{/if}
47        {if ($detail.Bot!==false and $detail.Banned_SE)}<a class="external" href="#" title="{'Banned Search engine: '|@translate}{$detail.Bot} - ({$detail.user_agent})"><sub>SE</sub></a>{/if}
48        </td>
[3319]49  <td>
50                <a href="./admin.php?page=user_perm&amp;user_id={$detail.user_id}" onclick="window.open(this.href); return false;" title="{'permissions'|@translate}">
51                {'Level %d'|@sprintf:$detail.user.level|@translate}</a> ({$detail.user.level})
52        </td>
53  <td>
54        {foreach from=$detail.images key=id item=image name=elm_loop}
55                {if ($id > 0)}&nbsp;
56                        {if (isset($image.path))}
57                                <a class="cluetip {if $smarty.foreach.res_loop.index is odd}ws1{else}ws2{/if} {$image.ws_level}"
58                                  href="{$image.url_modify}" title="<div style=&#34;text-align:center;&#34;>
59                                <img src=&#34;{$image.tn_url}&#34;></div>|
60                                        Image ID: {$id} <br />
61                                        {'Privacy level'|@translate}: {'Level %d'|@sprintf:$image.level|@translate} ({$image.level}) <br />
62                                        {if ($image.ws_level=='ws')}{'Image privacy level is higher than the user privacy level (Any change of one of them?)'|@translate} {/if}
63                                        Path: {$image.path}<br />
64                                        <hr>
65                                        Filesize: {$image.filesize} Kb <br />
66                                        Width x Height: {$image.width} x {$image.height} px<br />
67                                        <hr>
68                                        {if (is_null($image.high_filesize))}High Resolution: {if ($image.has_high == 'true')}Yes{else}No{/if}<br />{/if}
69                                        {if (!is_null($image.high_filesize))}High Filesize: {$image.high_filesize} Kb <br />{/if}
70                                        {if (!is_null($image.md5sum))}pLoader (Dynamic upload): Yes <br />{/if}
71                                        Posted on: {$image.date_available} <br />
72                                        {if (!is_null($image.date_creation))}Created on: {$image.date_creation} <br />{/if}
73                                        <hr>
74                                        Hits on: {$image.hit}<br />">{$id}</a>
75                                {else}<a class="{if $smarty.foreach.res_loop.index is odd}ws1{else}ws2{/if}"
76                                  href="{$image.url_modify}" title="{$id}{' - Over the radar limit => No level control'|@translate}">{$id}</a>
77                        {/if}
78                {/if}
79        {/foreach}
80        </td>
81  <td>{if (strlen($detail.last_dates) > 10)}<a href="#" class="cluetip"
82                title="{'Previous connection dates'|@translate}|
83                        {$detail.last_dates|@substr:11|@explode:' '|@implode:'<br />'}">{$detail.db_timestamp}</a>{else}{$detail.db_timestamp}{/if}</td>
84</tr>
85{/foreach}
[6193]86</tbody>
[3319]87</table>
[6193]88<p><a class="external" href="{'http:hostip'|@translate}" title="{':hostip:title'|@translate}">hostip.info</a>{
89 ': provides newcomers\' localization and possibly new country flags, thanks to them.'|@translate}</p>
90<p><a class="external" href="{'http:geoiptool'|@translate}" title="{':geoiptool:title'|@translate}">geoiptool.com</a>{
91 ': provides IP geolocalization on request (link on flag). Useful for unknown countries.'|@translate}</p>
[3319]92{literal}
93<script type="text/javascript">// <![CDATA[
94$(document).ready(function(){
95  $("#detailedStats").tablesorter( {sortList: [[5,1]]} );}
96);
97jQuery().ready(function(){
98  jQuery('.cluetip').cluetip({
99    width: 300,
100    splitTitle: '|'
101  });
102});
103// ]]>
104</script>
105{/literal}
106{if (isset($Case) and $Case > '')}
107<style type="text/css">
108a#{$Case} {ldelim}  color: #ff3333;  border-bottom: 1px solid #ff3363; outline: 0; }
109</style>
110{/if}
Note: See TracBrowser for help on using the repository browser.