diff options
author | plegall <plg@piwigo.org> | 2005-10-22 13:42:23 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-10-22 13:42:23 +0000 |
commit | fdd92368c3d034f4152ca0dc738cfe8878d9d7fe (patch) | |
tree | cb910735c25da04caea044923e1063b7a992e57e /admin | |
parent | bd5d03a2a7d0172b8bbfd1d5fa9c659175f6db77 (diff) |
- bug fixed: link on a single day in Administration>General>History was
missing
git-svn-id: http://piwigo.org/svn/trunk@909 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/stats.php | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/admin/stats.php b/admin/stats.php index 252cb86ba..da85f0354 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -64,7 +64,7 @@ if (isset($_GET['day']) && isset($_GET['month']) && isset($_GET['year']) ) $url_back = PHPWG_ROOT_PATH."admin.php?page=stats"; $url_back = add_session_id($url_back); $title_details='<a href='.$url_back.'>'.$lang['stats_day_title'].'</a>'; - $title_day=$lang['stats_day_details_title']." ".$date_of_day; + $title_day = $date_of_day; } elseif ( isset($_GET['month']) && isset($_GET['year']) ) { @@ -129,8 +129,21 @@ while ( $row = mysql_fetch_array( $result ) ) $where_clause = 'DAYOFMONTH(date) = '.$row['d'].' AND MONTH(date) = '.$row['m'].' AND YEAR(date) = '.$row['y']; - $week_day = $lang['day'][date('w', mktime(12,0,0,$row['m'],$row['d'],$row['y']))]; - $value = $row['d'].' ('.$week_day.')'; + + $week_day = + $lang['day'][date('w', mktime(12,0,0,$row['m'],$row['d'],$row['y']))]; + + $url = + PHPWG_ROOT_PATH.'admin.php' + .'?page=stats' + .'&year='.$row['y'] + .'&month='.$row['m'] + .'&day='.$row['d'] + ; + + $value = '<a href="'.add_session_id($url).'">'; + $value.= $row['d'].' ('.$week_day.')'; + $value.= "</a>"; } else { @@ -276,6 +289,7 @@ $query = ' $url = $_SERVER['PHP_SELF'].'?page=stats'; $url.= isset($_GET['year']) ? '&year='.$_GET['year'] : ''; $url.= isset($_GET['month']) ? '&month='.$_GET['month'] : ''; +$url.= isset($_GET['day']) ? '&day='.$_GET['day'] : ''; $page['navigation_bar'] = create_navigation_bar( |