- Timestamp:
- May 8, 2010, 8:43:50 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/rating.php
r5196 r6125 170 170 MAX(r.date) AS recently_rated, 171 171 COUNT(r.rate) AS nb_rates, 172 SUM(r.rate) AS sum_rates, 173 ROUND(STD(r.rate),2) AS std_rates 172 SUM(r.rate) AS sum_rates 174 173 FROM '.RATE_TABLE.' AS r 175 174 LEFT JOIN '.IMAGES_TABLE.' AS i ON r.element_id = i.id … … 207 206 'U_URL' => $image_url, 208 207 'AVG_RATE' => $image['average_rate'], 209 'STD_RATE' => $image['std_rates'],210 208 'SUM_RATE' => $image['sum_rates'], 211 209 'NB_RATES' => (int)$image['nb_rates'], -
trunk/admin/themes/default/template/rating.tpl
r5207 r6125 39 39 <td>{'Number of rates'|@translate}</td> 40 40 <td>{'Average rate'|@translate}</td> 41 <td>{'Controversy'|@translate}</td>42 41 <td>{'Sum of rates'|@translate}</td> 43 42 <td>{'Rate'|@translate}</td> … … 51 50 <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td> 52 51 <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 52 <td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td> 55 53 </tr> -
trunk/include/functions_rate.inc.php
r5196 r6125 121 121 SELECT COUNT(rate) AS count 122 122 , ROUND(AVG(rate),2) AS average 123 , ROUND(STD(rate),2) AS stdev124 123 FROM '.RATE_TABLE.' 125 124 WHERE element_id = '.$image_id.' -
trunk/include/ws_functions.inc.php
r6051 r6125 677 677 SELECT COUNT(rate) AS count 678 678 , ROUND(AVG(rate),2) AS average 679 , ROUND(STD(rate),2) AS stdev680 679 FROM '.RATE_TABLE.' 681 680 WHERE element_id = '.$image_row['id'].'
Note: See TracChangeset
for help on using the changeset viewer.