aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/rating.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
committerplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
commit14778ce673277f2df41f963aa70df1cbed427294 (patch)
tree8c723d4d9827876dbf19d2bd581405fc50910860 /admin/themes/default/template/rating.tpl
parentc396f08708d431c6f7e8656eaca4fd8e440fdd39 (diff)
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/rating.tpl')
-rw-r--r--admin/themes/default/template/rating.tpl67
1 files changed, 67 insertions, 0 deletions
diff --git a/admin/themes/default/template/rating.tpl b/admin/themes/default/template/rating.tpl
new file mode 100644
index 000000000..d7d3a85c9
--- /dev/null
+++ b/admin/themes/default/template/rating.tpl
@@ -0,0 +1,67 @@
+<h2>{'elements'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2>
+
+<form action="{$F_ACTION}" method="GET" id="update" class="filter">
+ <fieldset>
+ <legend>{'Filter'|@translate}</legend>
+
+ <label>
+ {'Sort by'|@translate}
+ <select name="order_by">
+ {html_options options=$order_by_options selected=$order_by_options_selected}
+ </select>
+ </label>
+
+ <label>
+ {'Users'|@translate}
+ <select name="users">
+ {html_options options=$user_options selected=$user_options_selected}
+ </select>
+ </label>
+
+ <label>
+ {'Number of items'|@translate}
+ <input type="text" name="display" size="2" value="{$DISPLAY}">
+ </label>
+
+ <label>
+ &nbsp;
+ <input class="submit" type="submit" name="submit_filter" value="{'Submit'|@translate}">
+ </label>
+ <input type="hidden" name="page" value="rating">
+ </fieldset>
+</form>
+
+{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
+
+<table width="99%">
+<tr class="throw">
+ <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>
+{foreach from=$images item=image name=image}
+<tr valign="top" 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 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>
+ <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>
+</tr>
+{/foreach} {*rates*}
+{/foreach} {*images*}
+</table>
+
+{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}