source: trunk/admin/themes/default/template/rating.tpl @ 6323

Revision 6125, 2.4 KB checked in by nikrou, 9 years ago (diff)

Amend bug 1559. standard deviation was not removed in some places.
So, sqlite crashed because std function has been removed.

  • Property svn:eol-style set to LF
Line 
1<h2>{'elements'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2>
2
3<form action="{$F_ACTION}" method="GET" id="update" class="filter">
4  <fieldset>
5    <legend>{'Filter'|@translate}</legend>
6
7    <label>
8      {'Sort by'|@translate}
9      <select name="order_by">
10        {html_options options=$order_by_options selected=$order_by_options_selected}
11      </select>
12    </label>
13
14    <label>
15      {'Users'|@translate}
16      <select name="users">
17        {html_options options=$user_options selected=$user_options_selected}
18      </select>
19    </label>
20
21    <label>
22      {'Number of items'|@translate}
23      <input type="text" name="display" size="2" value="{$DISPLAY}">
24    </label>
25
26    <label>
27      &nbsp;
28    <input class="submit" type="submit" name="submit_filter" value="{'Submit'|@translate}">
29    </label>
30    <input type="hidden" name="page" value="rating">
31  </fieldset>
32</form>
33
34{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
35
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>{'Sum of rates'|@translate}</td>
42  <td>{'Rate'|@translate}</td>
43  <td>{'Username'|@translate}</td>
44  <td>{'Rate date'|@translate}</td>
45  <td></td>
46</tr>
47{foreach from=$images item=image name=image}
48<tr valign="top" class="{if $smarty.foreach.image.index is odd}row1{else}row2{/if}">
49  <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>
50  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td>
51  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td>
52  <td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td>
53</tr>
54{foreach from=$image.rates item=rate name=rate}
55<tr class="{if ($smarty.foreach.image.index+$smarty.foreach.rate.index) is odd}row1{else}row2{/if}">
56    <td>{$rate.RATE}</td>
57    <td><b>{$rate.USER}</b></td>
58    <td><span class="date">{$rate.DATE}</span></td>
59    <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>
60</tr>
61{/foreach} {*rates*}
62{/foreach} {*images*}
63</table>
64
65{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
Note: See TracBrowser for help on using the repository browser.