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

Revision 12528, 2.4 KB checked in by rvelices, 8 years ago (diff)

feature 2477: remove unnecesary admin css rules / html elements

  • Property svn:eol-style set to LF
Line 
1<h2>{$NB_ELEMENTS} {'Photos'|@translate}</h2>
2
3<form action="{$F_ACTION}" method="GET" 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" 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>{'Rating score'|@translate}</td>
41  <td>{'Average rate'|@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.SCORE_RATE}</strong></td>
53        <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_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>{$rate.DATE}</td>
61        <td><a href="{$rate.U_DELETE}"><img src="{$themeconf.admin_icon_dir}/delete.png" alt="[{'Delete'|@translate}]"></a></td>
62</tr>
63{/foreach} {*rates*}
64{/foreach} {*images*}
65</table>
66
67{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
Note: See TracBrowser for help on using the repository browser.