Changeset 216 for trunk


Ignore:
Timestamp:
Oct 26, 2003, 9:00:25 PM (21 years ago)
Author:
z0rglub
Message:

Menu entries are displayed in a single line at the top of the admin panel

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r202 r216  
    2424$handle = $vtp->Open( '../template/'.$user['template'].'/admin/admin.vtp' );
    2525// language
    26 $tpl = array( 'menu_title','title_default','charset','install_warning' );
     26$tpl = array( 'title_default','charset','install_warning' );
    2727templatize_array( $tpl, 'lang', $handle );
    28 $vtp->setGlobalVar( $handle, 'user_template', $user['template'] );
    2928//-------------------------------------------------- install.php still exists ?
    3029if ( is_file( './install.php' ) )
     
    156155// users
    157156$vtp->addSession( $handle, 'summary' );
    158 $vtp->setVar( $handle, 'summary.indent', '' );
     157$vtp->setVar( $handle, 'summary.indent', '| ' );
    159158$vtp->setVar( $handle, 'summary.link',
    160159              add_session_id( $link_start.'user_list' ) );
     
    163162// groups
    164163$vtp->addSession( $handle, 'summary' );
    165 $vtp->setVar( $handle, 'summary.indent', '' );
     164$vtp->setVar( $handle, 'summary.indent', '| ' );
    166165$vtp->setVar( $handle, 'summary.link',
    167166              add_session_id( $link_start.'group_list' ) );
     
    170169// categories
    171170$vtp->addSession( $handle, 'summary' );
    172 $vtp->setVar( $handle, 'summary.indent', '' );
     171$vtp->setVar( $handle, 'summary.indent', '| ' );
    173172$vtp->setVar( $handle, 'summary.link',add_session_id( $link_start.'cat_list'));
    174173$vtp->setVar( $handle, 'summary.name', $lang['menu_categories'] );
     
    176175// waiting
    177176$vtp->addSession( $handle, 'summary' );
    178 $vtp->setVar( $handle, 'summary.indent', '' );
     177$vtp->setVar( $handle, 'summary.indent', '| ' );
    179178$vtp->setVar( $handle, 'summary.link',
    180179              add_session_id( $link_start.'waiting' ) );
     
    193192// comments
    194193$vtp->addSession( $handle, 'summary' );
    195 $vtp->setVar( $handle, 'summary.indent', '' );
     194$vtp->setVar( $handle, 'summary.indent', '| ' );
    196195$vtp->setVar( $handle, 'summary.link',
    197196              add_session_id( $link_start.'comments' ) );
     
    210209// update
    211210$vtp->addSession( $handle, 'summary' );
    212 $vtp->setVar( $handle, 'summary.indent', '' );
     211$vtp->setVar( $handle, 'summary.indent', '| ' );
    213212$vtp->setVar( $handle, 'summary.link',
    214213              add_session_id( $link_start.'update' ) );
     
    217216// thumbnails
    218217$vtp->addSession( $handle, 'summary' );
    219 $vtp->setVar( $handle, 'summary.indent', '' );
     218$vtp->setVar( $handle, 'summary.indent', '| ' );
    220219$vtp->setVar( $handle, 'summary.link',
    221220              add_session_id( $link_start.'thumbnail' ) );
     
    224223// history
    225224$vtp->addSession( $handle, 'summary' );
    226 $vtp->setVar( $handle, 'summary.indent', '' );
     225$vtp->setVar( $handle, 'summary.indent', '| ' );
    227226$vtp->setVar( $handle, 'summary.link',
    228227              add_session_id( $link_start.'stats' ) );
     
    231230// instructions
    232231$vtp->addSession( $handle, 'summary' );
    233 $vtp->setVar( $handle, 'summary.indent', '' );
     232$vtp->setVar( $handle, 'summary.indent', '| ' );
    234233$vtp->setVar( $handle, 'summary.link',
    235234              add_session_id( $link_start.'help' ) );
     
    238237// back to thumbnails page
    239238$vtp->addSession( $handle, 'summary' );
    240 $vtp->setVar( $handle, 'summary.indent', '' );
     239$vtp->setVar( $handle, 'summary.indent', '| ' );
    241240$vtp->setVar( $handle, 'summary.link', add_session_id( '../category.php' ) );
    242241$vtp->setVar( $handle, 'summary.name', $lang['menu_back'] );
  • trunk/template/default/admin/admin.vtp

    r199 r216  
    6969        background-color:#cccccc;
    7070      }
    71       .cat_plan {
     71      .summary {
     72        text-align:center;
    7273        font-weight:bold;
    7374      }
     
    193194  <body>
    194195    <!--VTP_install_warning--><div class="install_warning">{#install_warning}</div><!--/VTP_install_warning-->
    195     <table>
     196    <table width="100%">
    196197      <tr>
    197         <td width="1%" valign="top">
    198           <table class="table1">
    199             <tr>
    200               <td class="titretable1">{#menu_title}</td>
    201             </tr>
    202             <tr>
    203               <td class="contenucellule">
    204                 <div class="plan">
    205                   <!--VTP_summary-->
    206                   {#indent}<img src="../template/{#user_template}/admin/images/puce.gif" alt="&gt; "><a href="{#link}" class="cat_plan">{#name}</a><br />
    207                   <!--/VTP_summary-->
    208                 </div>
    209               </td>
    210             </tr>
    211           </table>
     198        <td class="summary">
     199          <!--VTP_summary-->
     200          {#indent}<a href="{#link}">{#name}</a>
     201          <!--/VTP_summary-->
    212202        </td>
     203      </tr>
     204      <tr>
    213205        <td align="center" valign="top">
    214206          <div class="grostitre">{#title}</div>
Note: See TracChangeset for help on using the changeset viewer.