diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-10-11 14:16:21 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-10-11 14:16:21 +0000 |
commit | 2341e82094004071fbfa29fa6fff6b05e3684868 (patch) | |
tree | e35754b41b547db0eef0089e55fb5c7e71747982 | |
parent | 37deeb17a6a092d03850abe30d5339e37be3f275 (diff) |
Show a link to open or close a day details (only the arrow at the beginning
of the line was not enough).
git-svn-id: http://piwigo.org/svn/trunk@195 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | admin/stats.php | 2 | ||||
-rw-r--r-- | template/default/admin/stats.vtp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/admin/stats.php b/admin/stats.php index 26dee15f1..345d4c669 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -89,12 +89,14 @@ for ( $i = 0; $i <= MAX_DAYS; $i++ ) { $vtp->addSession( $sub, 'expanded' ); $vtp->closeSession( $sub, 'expanded' ); + $vtp->setVar( $sub, 'day.open_or_close', $lang['close'] ); $local_expand = array_remove( $local_expand, $i ); } else { $vtp->addSession( $sub, 'collapsed' ); $vtp->closeSession( $sub, 'collapsed' ); + $vtp->setVar( $sub, 'day.open_or_close', $lang['open'] ); array_push( $local_expand, $i ); } $url = './admin.php?page=stats&last_days='.$_GET['last_days']; diff --git a/template/default/admin/stats.vtp b/template/default/admin/stats.vtp index c5ad4fb30..74b3ef69c 100644 --- a/template/default/admin/stats.vtp +++ b/template/default/admin/stats.vtp @@ -65,6 +65,7 @@ <td colspan="6"> <a href="{#url}"><!--VTP_collapsed--><img src="../template/{#user_template}/admin/images/collapsed.gif" style="border:none;" /><!--/VTP_collapsed--><!--VTP_expanded--><img src="../template/{#user_template}/admin/images/expanded.gif" style="border:none;" /><!--/VTP_expanded--></a> <span style="font-weight:bold;">{#name}</span> [ {#nb_pages} {#stats_pages_seen} - {#nb_visitors} {#stats_visitors} ] + [ <a href="{#url}">{#open_or_close}</a> ] </td> </tr> <!--VTP_line--> |