Dotclear


Ignore:
Timestamp:
07/12/11 22:00:04 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Menu d'accès rapide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/aboutConfig/index.php

    r581 r582  
    9090  table.settings { border: 1px solid #999; margin-bottom: 2em; } 
    9191  table.settings th { background: #f5f5f5; color: #444; padding-top: 0.3em; padding-bottom: 0.3em; } 
     92  ul.submenu {float: right; border: 1px solid #ccc; padding-right: 1em; padding-left: 1.5em; margin-top:0.5em; margin-bottom:0.5em; } 
    9293  </style> 
    9394</head> 
     
    110111<?php  
    111112 
    112 $table_header = '<table class="settings"><caption>%s</caption>'. 
     113$table_header = '<table class="settings" id="%s"><caption>%s</caption>'. 
    113114'<thead>'. 
    114115'<tr>'."\n". 
     
    132133ksort($settings); 
    133134 
     135if (count($settings) > 0) { 
     136     echo '<ul class="submenu">'; 
     137     foreach ($settings as $ns => $s) { 
     138          echo '<li><a href="#l_'.$ns.'">'.$ns.'</a></li>'; 
     139     } 
     140     echo '</ul>'; 
     141} 
     142 
    134143foreach ($settings as $ns => $s) 
    135144{ 
    136145     ksort($s); 
    137      echo sprintf($table_header,$ns); 
     146     echo sprintf($table_header,'l_'.$ns,$ns); 
    138147     foreach ($s as $k => $v) 
    139148     { 
     
    163172ksort($settings); 
    164173 
     174if (count($settings) > 0) { 
     175     echo '<ul class="submenu">'; 
     176     foreach ($settings as $ns => $s) { 
     177          echo '<li><a href="#g_'.$ns.'">'.$ns.'</a></li>'; 
     178     } 
     179     echo '</ul>'; 
     180} 
     181 
    165182foreach ($settings as $ns => $s) 
    166183{ 
    167184     ksort($s); 
    168      echo sprintf($table_header,$ns); 
     185     echo sprintf($table_header,'g_'.$ns,$ns); 
    169186     foreach ($s as $k => $v) 
    170187     { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map