source: extensions/whois_online/report.tpl @ 31965

Last change on this file since 31965 was 16631, checked in by plg, 12 years ago

compatibility with Piwigo 2.4

rel!"nofollow" on gallery links to "recently viewed photos" to avoid generating a huge amount of visits by robots.

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