source: extensions/AStat/admin/astat_by_image.tpl @ 17378

Last change on this file since 17378 was 3394, checked in by grum, 15 years ago

Add plugin AStat 2.0.4

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1{literal}
2<script type="text/javascript">
3
4 var mouseX, mouseY;
5
6 window.onmousemove = function (evt)
7 {
8        mouseX = evt.clientX;
9        mouseY = evt.clientY;
10 }
11
12 function load_thumb(thumbjpg)
13 {
14        var thumbobj = document.getElementById('thumb_view');
15
16        if(thumbjpg!='')
17        { thumbobj.innerHTML = "<img class='img_thumb' src='"+thumbjpg+"'/>";
18          thumbobj.style.visibility = 'visible'; }
19 }
20
21
22 function display_thumb()
23 {
24        var thumbobj = document.getElementById('thumb_view');
25
26        thumbobj.style.left = (mouseX + 15 + window.pageXOffset)+"px";
27        thumbobj.style.top = (mouseY + 5 + window.pageYOffset)+"px";
28 }
29
30 function unload_thumb()
31 {
32        var thumbobj = document.getElementById('thumb_view');
33
34        thumbobj.style.visibility = 'hidden';
35 }
36</script>
37{/literal}
38
39<div class="window_thumb" id="thumb_view"></div>
40{$datas.ASTAT_SORT_LABEL}
41<table class="table2 littlefont" id="dailyStats">
42  <tr class="throw">
43    <th>{$datas.ASTAT_LABEL_AStat_RefImageLabel}</th>
44    <th>{$datas.ASTAT_LABEL_Pictures_seen}<span class="MiniSquare1">&nbsp;&diams;</span></th>
45    <th>{$datas.ASTAT_LABEL_pct_Pictures_seen}<span class="MiniSquare2">&nbsp;&diams;</span></th>
46    <th>&nbsp;</th>
47  </tr>
48  {if isset($datarows) and count($datarows)}
49    {foreach from=$datarows key=name item=data}
50      <tr class="StatTableRow" onmouseover="load_thumb('{$data.THUMBJPG}')" onmousemove="display_thumb()" onmouseout="unload_thumb()">
51        <td style="white-space: nowrap"  >{$data.IMAGE}</td>
52        <td class="number">{$data.NBPICTURES}</td>
53        <td class="number">{$data.PCTPICTURES}</td>
54        <td>
55          <div class="AStatBarX" style="width:{$datas.MAX_WIDTH}px" />
56          <div class="AStatBar1" style="width:{$data.WIDTH2}px" />
57          <div class="AStatBar2" style="width:{$data.WIDTH1}px" />
58        </td>
59      </tr>
60    {/foreach}
61  {/if}
62</table>
63
64{$datas.NB_TOTAL_IMAGE}
65
66{if isset($datas.ASTAT_TIME_REQUEST)}
67  <div class='time_request'>{$datas.ASTAT_TIME_REQUEST}</div>
68{/if}
69
70{if isset($datas.PAGES_LINKS)}
71  <h3>{$datas.PAGES_LINKS}</h3>
72{/if}
73
74
Note: See TracBrowser for help on using the repository browser.