aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-26 20:00:25 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-26 20:00:25 +0000
commit96d151665a39524b8b095aa41c6ab45733946759 (patch)
treed01b83c61e1e069c3eaa2c8d9df2604a42d81f79
parentd6f54c7516a5d4fb169fe95455535cd9ebfa5f29 (diff)
Menu entries are displayed in a single line at the top of the admin panel
git-svn-id: http://piwigo.org/svn/trunk@216 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/admin.php23
-rw-r--r--template/default/admin/admin.vtp26
2 files changed, 20 insertions, 29 deletions
diff --git a/admin/admin.php b/admin/admin.php
index 66608a74d..29e622c5c 100644
--- a/admin/admin.php
+++ b/admin/admin.php
@@ -23,9 +23,8 @@ include_once( './include/isadmin.inc.php' );
$vtp = new VTemplate;
$handle = $vtp->Open( '../template/'.$user['template'].'/admin/admin.vtp' );
// language
-$tpl = array( 'menu_title','title_default','charset','install_warning' );
+$tpl = array( 'title_default','charset','install_warning' );
templatize_array( $tpl, 'lang', $handle );
-$vtp->setGlobalVar( $handle, 'user_template', $user['template'] );
//-------------------------------------------------- install.php still exists ?
if ( is_file( './install.php' ) )
{
@@ -155,27 +154,27 @@ $vtp->setVar( $handle, 'summary.name', $lang['menu_config'] );
$vtp->closeSession( $handle, 'summary' );
// users
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'user_list' ) );
$vtp->setVar( $handle, 'summary.name', $lang['menu_users'] );
$vtp->closeSession( $handle, 'summary' );
// groups
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'group_list' ) );
$vtp->setVar( $handle, 'summary.name', $lang['menu_groups'] );
$vtp->closeSession( $handle, 'summary' );
// categories
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',add_session_id( $link_start.'cat_list'));
$vtp->setVar( $handle, 'summary.name', $lang['menu_categories'] );
$vtp->closeSession( $handle, 'summary' );
// waiting
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'waiting' ) );
$query = 'SELECT id';
@@ -192,7 +191,7 @@ $vtp->setVar( $handle, 'summary.name', $lang['menu_waiting'].$nb_waiting );
$vtp->closeSession( $handle, 'summary' );
// comments
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'comments' ) );
$query = 'SELECT id';
@@ -209,35 +208,35 @@ $vtp->setVar( $handle, 'summary.name', $lang['menu_comments'].$nb_waiting );
$vtp->closeSession( $handle, 'summary' );
// update
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'update' ) );
$vtp->setVar( $handle, 'summary.name', $lang['menu_update'] );
$vtp->closeSession( $handle, 'summary' );
// thumbnails
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'thumbnail' ) );
$vtp->setVar( $handle, 'summary.name', $lang['menu_thumbnails'] );
$vtp->closeSession( $handle, 'summary' );
// history
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'stats' ) );
$vtp->setVar( $handle, 'summary.name', $lang['menu_history'] );
$vtp->closeSession( $handle, 'summary' );
// instructions
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link',
add_session_id( $link_start.'help' ) );
$vtp->setVar( $handle, 'summary.name', $lang['menu_instructions'] );
$vtp->closeSession( $handle, 'summary' );
// back to thumbnails page
$vtp->addSession( $handle, 'summary' );
-$vtp->setVar( $handle, 'summary.indent', '' );
+$vtp->setVar( $handle, 'summary.indent', '| ' );
$vtp->setVar( $handle, 'summary.link', add_session_id( '../category.php' ) );
$vtp->setVar( $handle, 'summary.name', $lang['menu_back'] );
$vtp->closeSession( $handle, 'summary' );
diff --git a/template/default/admin/admin.vtp b/template/default/admin/admin.vtp
index 2729d9cdc..c17cd7f05 100644
--- a/template/default/admin/admin.vtp
+++ b/template/default/admin/admin.vtp
@@ -68,7 +68,8 @@
td.row4 {
background-color:#cccccc;
}
- .cat_plan {
+ .summary {
+ text-align:center;
font-weight:bold;
}
.retrait {
@@ -192,24 +193,15 @@
</head>
<body>
<!--VTP_install_warning--><div class="install_warning">{#install_warning}</div><!--/VTP_install_warning-->
- <table>
+ <table width="100%">
<tr>
- <td width="1%" valign="top">
- <table class="table1">
- <tr>
- <td class="titretable1">{#menu_title}</td>
- </tr>
- <tr>
- <td class="contenucellule">
- <div class="plan">
- <!--VTP_summary-->
- {#indent}<img src="../template/{#user_template}/admin/images/puce.gif" alt="&gt; "><a href="{#link}" class="cat_plan">{#name}</a><br />
- <!--/VTP_summary-->
- </div>
- </td>
- </tr>
- </table>
+ <td class="summary">
+ <!--VTP_summary-->
+ {#indent}<a href="{#link}">{#name}</a>
+ <!--/VTP_summary-->
</td>
+ </tr>
+ <tr>
<td align="center" valign="top">
<div class="grostitre">{#title}</div>
<br />