aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/rating.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'admin/template/goto/rating.tpl')
-rw-r--r--admin/template/goto/rating.tpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/template/goto/rating.tpl b/admin/template/goto/rating.tpl
index 442673a78..ac5d2f262 100644
--- a/admin/template/goto/rating.tpl
+++ b/admin/template/goto/rating.tpl
@@ -42,16 +42,16 @@
<td>{'Rate date'|@translate}</td>
<td></td>
</tr>
-{foreach from=$images item=image}
-<tr valign="bottom">
+{foreach from=$images item=image name=image}
+<tr valign="bottom" class="{if $smarty.foreach.image.index is odd}row1{else}row2{/if}">
<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>
-{foreach from=$image.rates item=rate}
-<tr>
+{foreach from=$image.rates item=rate name=rate}
+<tr class="{if ($smarty.foreach.image.index+$smarty.foreach.rate.index) is odd}row1{else}row2{/if}">
<td>{$rate.RATE}</td>
<td><b>{$rate.USER}</b></td>
<td><span class="date">{$rate.DATE}</span></td>