From 3013832c4bf10812ab1a16379eb37148a987ef9a Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 28 Sep 2007 02:22:57 +0000 Subject: - remove unused css for IE7 - fix admin view plugin (due to a recent change elsewhere) - remove an echo from admin/stats.php git-svn-id: http://piwigo.org/svn/trunk@2108 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/stats.php | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'admin/stats.php') diff --git a/admin/stats.php b/admin/stats.php index 707ed83d8..b06cdba16 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -4,7 +4,6 @@ // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) // | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ @@ -47,7 +46,7 @@ SELECT hour, nb_pages FROM '.HISTORY_SUMMARY_TABLE; - + if (isset($day)) { $query.= ' @@ -84,7 +83,7 @@ SELECT ORDER BY year ASC, month ASC -;'; +;'; } else { @@ -93,7 +92,7 @@ SELECT AND month IS NULL ORDER BY year ASC -;'; +;'; } $result = pwg_query($query); @@ -210,7 +209,7 @@ if (isset($first_time_key)) sprintf('%4u.%02u.%02u', $year, $month, $day), sprintf('%4u.%02u.%02u.%02u', $year, $month, $day, $hour), ); - + $query = ' SELECT id, @@ -369,13 +368,13 @@ if (isset($page['day'])) $url.= '&day='.$page['day']; $time = mktime(12, 0, 0, $page['month'], $page['day'], $page['year']); - + $day_title = sprintf( '%u (%s)', $page['day'], $lang['day'][date('w', $time)] ); - + array_push( $title_parts, ''.$day_title.'' @@ -455,9 +454,9 @@ if (count($datas) > 0) { $datas[$i] = 0; } - + $url = null; - + if (isset($page['day'])) { $value = sprintf('%02u', $i); @@ -471,9 +470,9 @@ if (count($datas) > 0) .'&month='.$page['month'] .'&day='.$i ; - + $time = mktime(12, 0, 0, $page['month'], $i, $page['year']); - + $value = $i.' ('.$lang['day'][date('w', $time)].')'; } else if (isset($page['year'])) @@ -484,7 +483,7 @@ if (count($datas) > 0) .'&year='.$page['year'] .'&month='.$i ; - + $value = $lang['month'][$i]; } else @@ -495,15 +494,15 @@ if (count($datas) > 0) .'?page=stats' .'&year='.$i ; - + $value = $i; } - + if ($datas[$i] != 0 and isset($url)) { $value = ''.$value.''; } - + $template->assign_block_vars( 'statrow', array( @@ -520,5 +519,4 @@ if (count($datas) > 0) // +-----------------------------------------------------------------------+ $template->assign_var_from_handle('ADMIN_CONTENT', 'stats'); -?> - +?> \ No newline at end of file -- cgit v1.2.3