Ignore:
Timestamp:
Oct 28, 2011, 9:35:45 PM (13 years ago)
Author:
rvelices
Message:

feature 2477: remove unnecesary admin css rules / html elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/rating.php

    r12255 r12528  
    132132$available_order_by= array(
    133133    array(l10n('Rate date'), 'recently_rated DESC'),
    134                 array(l10n('Rating score'), 'score DESC'),
     134    array(l10n('Rating score'), 'score DESC'),
    135135    array(l10n('Average rate'), 'avg_rates DESC'),
    136136    array(l10n('Number of rates'), 'nb_rates DESC'),
     
    163163$query = '
    164164SELECT i.id,
    165        i.path,
    166        i.file,
    167        i.tn_ext,
    168        i.rating_score                           AS score,
    169        MAX(r.date)          AS recently_rated,
    170                         ROUND(AVG(r.rate),2) AS avg_rates,
    171        COUNT(r.rate)        AS nb_rates,
    172        SUM(r.rate)          AS sum_rates
     165    i.path,
     166    i.file,
     167    i.tn_ext,
     168    i.rating_score       AS score,
     169    MAX(r.date)          AS recently_rated,
     170    ROUND(AVG(r.rate),2) AS avg_rates,
     171    COUNT(r.rate)        AS nb_rates,
     172    SUM(r.rate)          AS sum_rates
    173173  FROM '.RATE_TABLE.' AS r
    174174    LEFT JOIN '.IMAGES_TABLE.' AS i ON r.element_id = i.id
     
    246246    $tpl_image['rates'][] =
    247247       array(
    248          'DATE' => format_date($row['date']),
     248         'DATE' => /*format_date*/($row['date']),
    249249         'RATE' => $row['rate'],
    250250         'USER' => $user_rate,
Note: See TracChangeset for help on using the changeset viewer.