| 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 | |
|---|
| 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>{'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 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
|---|