aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/rating.tpl
blob: 442673a78372f35c316c3d2cf1ed41414b981bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{* $Id$ *}
<h2>{'Rating'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2>

<form action="{$F_ACTION}" method="GET" id="update" class="filter">
  <fieldset>
    <legend>{'Filter'|@translate}</legend>

    <label>
      {'Sort by'|@translate}
      <select name="order_by">
        {html_options options=$order_by_options selected=$order_by_options_selected}
      </select>
    </label>

    <label>
      {'Users'|@translate}
      <select name="users">
        {html_options options=$user_options selected=$user_options_selected}
      </select>
    </label>

    <label>
      {'Number of items'|@translate}
      <input type="text" name="display" size="2" value="{$DISPLAY}">
    </label>

    <input class="submit" type="submit" name="submit_filter" value="{'Submit'|@translate}" />
    <input type="hidden" name="page" value="rating" />
  </fieldset>
</form>

<div class="navigationBar">{$NAVBAR}</div>
<table width="99%">
<tr class="throw">
  <td>{'File'|@translate}</td>
  <td>{'Number of rates'|@translate}</td>
  <td>{'Average rate'|@translate}</td>
  <td>{'Controversy'|@translate}</td>
  <td>{'Sum of rates'|@translate}</td>
  <td>{'Rate'|@translate}</td>
  <td>{'Username'|@translate}</td>
  <td>{'Rate date'|@translate}</td>
  <td></td>
</tr>
{foreach from=$images item=image}
<tr valign="bottom">
  <td rowspan="{$image.NB_RATES_TOTAL+1}"><a href="{$image.U_URL}"><img src="{$image.U_THUMB}" alt="{$image.FILE}" title="{$image.FILE}"></a></td>
  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td>
  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td>
  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.STD_RATE}</strong></td>
  <td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td>
</tr>
{foreach from=$image.rates item=rate}
<tr>
    <td>{$rate.RATE}</td>
    <td><b>{$rate.USER}</b></td>
    <td><span class="date">{$rate.DATE}</span></td>
    <td><a href="{$rate.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$themeconf.admin_icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{'delete'|@translate}]"/></a></td>
</tr>
{/foreach} {*rates*}
{/foreach} {*images*}
</table>

<div class="navigationBar">{$NAVBAR}</div>