Translated using Weblate (Chinese (Traditional))
[phpmyadmin.git] / setup / frames / menu.inc.php
blob5a707065d06e15d59c7a0153ce44859735eec584
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Menu items
6 * @package PhpMyAdmin-Setup
7 */
8 use PhpMyAdmin\Url;
9 use PhpMyAdmin\Config\Forms\Setup\SetupFormList;
11 if (!defined('PHPMYADMIN')) {
12 exit;
15 $formset_id = isset($_GET['formset']) ? $_GET['formset'] : null;
17 echo '<ul>';
18 echo '<li><a href="index.php' , Url::getCommon() , '"'
19 , ($formset_id === null ? ' class="active' : '')
20 , '">' , __('Overview') , '</a></li>';
22 $ignored = array('Config', 'Servers');
23 foreach (SetupFormList::getAll() as $formset) {
24 if (in_array($formset, $ignored)) {
25 continue;
27 $form_class = SetupFormList::get($formset);
28 echo '<li><a href="index.php' , Url::getCommon(array('page' => 'form', 'formset' => $formset)) , '" '
29 , ($formset_id === $formset ? ' class="active' : '')
30 , '">' , $form_class::getName() , '</a></li>';
33 echo '</ul>';