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
This commit is contained in:
z0rglub
2003-10-11 14:16:21 +00:00
parent 37deeb17a6
commit 2341e82094
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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&amp;last_days='.$_GET['last_days'];
+1
View File
@@ -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-->