source: extensions/AStat/admin/astat_by_category.tpl @ 3631

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

Add plugin AStat 2.0.4

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