source: branches/2.0/admin/template/goto/rating.tpl @ 3675

Last change on this file since 3675 was 2970, checked in by vdigital, 16 years ago
  • have the thumbnail and results (88/88 3.61 1.51 318) at top of the line
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1{* $Id: rating.tpl 2970 2008-12-14 07:45:21Z vdigital $ *}
2<h2>{'Rating'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2>
3
4<form action="{$F_ACTION}" method="GET" id="update" class="filter">
5  <fieldset>
6    <legend>{'Filter'|@translate}</legend>
7
8    <label>
9      {'Sort by'|@translate}
10      <select name="order_by">
11        {html_options options=$order_by_options selected=$order_by_options_selected}
12      </select>
13    </label>
14
15    <label>
16      {'Users'|@translate}
17      <select name="users">
18        {html_options options=$user_options selected=$user_options_selected}
19      </select>
20    </label>
21
22    <label>
23      {'Number of items'|@translate}
24      <input type="text" name="display" size="2" value="{$DISPLAY}">
25    </label>
26
27    <label>
28      &nbsp;
29    <input class="submit" type="submit" name="submit_filter" value="{'Submit'|@translate}" />
30    </label>
31    <input type="hidden" name="page" value="rating" />
32  </fieldset>
33</form>
34
35<div class="navigationBar">{$NAVBAR}</div>
36<table width="99%">
37<tr class="throw">
38  <td>{'File'|@translate}</td>
39  <td>{'Number of rates'|@translate}</td>
40  <td>{'Average rate'|@translate}</td>
41  <td>{'Controversy'|@translate}</td>
42  <td>{'Sum of rates'|@translate}</td>
43  <td>{'Rate'|@translate}</td>
44  <td>{'Username'|@translate}</td>
45  <td>{'Rate date'|@translate}</td>
46  <td></td>
47</tr>
48{foreach from=$images item=image name=image}
49<tr valign="top" class="{if $smarty.foreach.image.index is odd}row1{else}row2{/if}">
50  <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>
51  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td>
52  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td>
53  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.STD_RATE}</strong></td>
54  <td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td>
55</tr>
56{foreach from=$image.rates item=rate name=rate}
57<tr class="{if ($smarty.foreach.image.index+$smarty.foreach.rate.index) is odd}row1{else}row2{/if}">
58    <td>{$rate.RATE}</td>
59    <td><b>{$rate.USER}</b></td>
60    <td><span class="date">{$rate.DATE}</span></td>
61    <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>
62</tr>
63{/foreach} {*rates*}
64{/foreach} {*images*}
65</table>
66
67<div class="navigationBar">{$NAVBAR}</div>
Note: See TracBrowser for help on using the repository browser.