diff options
Diffstat (limited to 'template/yoga/admin/rating.tpl')
-rwxr-xr-x | template/yoga/admin/rating.tpl | 72 |
1 files changed, 34 insertions, 38 deletions
diff --git a/template/yoga/admin/rating.tpl b/template/yoga/admin/rating.tpl index d10bf57db..aa91892dc 100755 --- a/template/yoga/admin/rating.tpl +++ b/template/yoga/admin/rating.tpl @@ -1,68 +1,64 @@ -<!-- DEV TAG: not smarty migrated --> -<h2>{lang:Rating} [{NB_ELEMENTS} {lang:elements}]</h2> +{* $Id$ *} +<h2>{'Rating'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2> -<form action="{F_ACTION}" method="GET" id="update" class="filter"> +<form action="{$F_ACTION}" method="GET" id="update" class="filter"> <fieldset> - <legend>{lang:Filter}</legend> + <legend>{'Filter'|@translate}</legend> <label> - {lang:Sort by} + {'Sort by'|@translate} <select name="order_by"> - <!-- BEGIN order_by --> - <option value="{order_by.VALUE}" {order_by.SELECTED}>{order_by.CONTENT}</option> - <!-- END order_by --> + {html_options options=$order_by_options selected=$order_by_options_selected} </select> </label> <label> - {lang:Users} + {'Users'|@translate} <select name="users"> - <!-- BEGIN user_option --> - <option value="{user_option.VALUE}" {user_option.SELECTED}>{user_option.CONTENT}</option> - <!-- END user_option --> + {html_options options=$user_options selected=$user_options_selected} </select> </label> <label> - {lang:Number of items} - <input type="text" name="display" size="2" value="{DISPLAY}"> + {'Number of items'|@translate} + <input type="text" name="display" size="2" value="{$DISPLAY}"> </label> - <input class="submit" type="submit" name="submit_filter" value="{lang:Submit}" /> + <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> +<div class="navigationBar">{$NAVBAR}</div> <table width="99%"> <tr class="throw"> - <td>{lang:File}</td> - <td>{lang:Number of rates}</td> - <td>{lang:Average rate}</td> - <td>{lang:Controversy}</td> - <td>{lang:Sum of rates}</td> - <td>{lang:Rate}</td> - <td>{lang:Username}</td> - <td>{lang:Rate date}</td> + <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> -<!-- BEGIN image --> +{foreach from=$images item=image} <tr valign="bottom"> - <td rowspan="{image.NB_RATES_PLUS1}"><a href="{image.U_URL}"><img src="{image.U_THUMB}" alt="{image.FILE}" title="{image.FILE}"></a></td> - <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.NB_RATES}/{image.NB_RATES_TOTAL}</strong></td> - <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.AVG_RATE}</strong></td> - <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.STD_RATE}</strong></td> - <td rowspan="{image.NB_RATES_PLUS1}" style="border-right: 1px solid;" ><strong>{image.SUM_RATE}</strong></td> + <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> -<!-- BEGIN rate --> +{foreach from=$image.rates item=rate} <tr> - <td>{image.rate.RATE}</td> - <td><b>{image.rate.USER}</b></td> - <td><span class="date">{image.rate.DATE}</span></td> - <td><a href="{image.rate.U_DELETE}" {TAG_INPUT_ENABLED}><img src="{themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{lang:delete}]"/></a></td> + <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.icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{'delete'|@translate}]"/></a></td> </tr> -<!-- END rate --> -<!-- END image --> +{/foreach} {*rates*} +{/foreach} {*images*} </table> -<div class="navigationBar">{NAVBAR}</div> +<div class="navigationBar">{$NAVBAR}</div> |