From 97898b36858d5f187e9659d723c71eb04b2f0593 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 28 Feb 2006 04:28:06 +0000 Subject: calendar improvements: week on weekly list starts on Monday, ability to show grayed months/weeks/days (without any picture in it), added icons for created/posted fields language uniformization calendar fixes: correct number of pictures in calendar view, code simplification (I hope so) git-svn-id: http://piwigo.org/svn/trunk@1059 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/rating.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'admin') diff --git a/admin/rating.php b/admin/rating.php index 3c30e07b8..6be2dd8ca 100644 --- a/admin/rating.php +++ b/admin/rating.php @@ -114,7 +114,7 @@ while ($row = mysql_fetch_array($result)) } -$query = 'SELECT COUNT(DISTINCT(i.id)) +$query = 'SELECT COUNT(DISTINCT(i.id)) FROM '.RATE_TABLE.' AS r, '.IMAGES_TABLE.' AS i WHERE r.element_id=i.id'. $display_filter . ';'; @@ -146,13 +146,13 @@ $template->assign_vars( $available_order_by= array( array(l10n('Rate date'), 'recently_rated DESC'), - array(l10n('Average rate'), 'average_rate DESC'), - array(l10n('Number of rates'), 'nb_rates DESC'), - array(l10n('Sum of rates'), 'sum_rates DESC'), - array(l10n('Controversy'), 'std_rates DESC'), - array(l10n('File name'), 'file DESC'), + array(l10n('Average rate'), 'average_rate DESC'), + array(l10n('Number of rates'), 'nb_rates DESC'), + array(l10n('Sum of rates'), 'sum_rates DESC'), + array(l10n('Controversy'), 'std_rates DESC'), + array(l10n('File name'), 'file DESC'), array(l10n('Creation date'), 'date_creation DESC'), - array(l10n('Availability date'), 'date_available DESC'), + array(l10n('Post date'), 'date_available DESC'), ); @@ -168,9 +168,9 @@ for ($i=0; $iassign_block_vars('image', + $template->assign_block_vars('image', array( 'U_THUMB' => $thumbnail_src, 'U_URL' => $image_url, @@ -222,11 +222,11 @@ ORDER BY date DESC;'; $url_del = PHPWG_ROOT_PATH.'admin.php'. get_query_string_diff(array('del')); - + $del_param = 'e='.$image['id']. '&u='.$row['user_id']. '&a='.$row['anonymous_id']; - + $url_del .= '&del='.urlencode(urlencode($del_param)); if ( isset($users[$row['user_id']]) ) @@ -241,8 +241,8 @@ ORDER BY date DESC;'; { $user .= '('.$row['anonymous_id'].')'; } - - $template->assign_block_vars('image.rate', + + $template->assign_block_vars('image.rate', array( 'DATE' => format_date($row['date']), 'RATE' => $row['rate'], -- cgit v1.2.3