当前位置: 首页>>代码示例>>PHP>>正文


PHP Menu::show方法代码示例

本文整理汇总了PHP中Menu::show方法的典型用法代码示例。如果您正苦于以下问题:PHP Menu::show方法的具体用法?PHP Menu::show怎么用?PHP Menu::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Menu的用法示例。


在下文中一共展示了Menu::show方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Menu

 function print_dirtydates_menu()
 {
     $plugin_folder = 'admidio-db-dates';
     global $gCurrentUser;
     $dirtydatesmenu = new Menu('dirtydatesmenu', 'Terminzuabsagen');
     //Falls Datenbank nicht vorhanden Install-Skript starten
     $dirtydatesmenu->addItem('dirtydates_show', '/adm_plugins/' . $plugin_folder . '/dirtydates_adm_plugin.php?dd_userid=overview', 'Terminübersicht', '/icons/lists.png');
     if ($gCurrentUser->getValue('usr_id') != 0) {
         $dirtydatesmenu->addItem('dirtydates_change', '/adm_plugins/' . $plugin_folder . '/dirtydates_adm_plugin.php?dd_userid=' . $gCurrentUser->getValue('usr_id') . '', 'Meine Anwesenheit ändern', '/icons/profile.png');
     }
     echo '<div id="plgDirtydates" class="admidio-plugin-content">';
     echo $dirtydatesmenu->show();
     echo '</div>';
 }
开发者ID:sistlind,项目名称:admidio-db-dates,代码行数:14,代码来源:dirtydates_adm_plugin.php

示例2: Menu

<?php

PHPWS_Core::initModClass('othermenu', 'Menu.php');
$menu = new Menu('Main', 'main');
$menu->addSubMenu('Search', 'search');
$menu->addMenuItem('Settings2', 'settings2', 'search');
Layout::add($menu->show());
开发者ID:bostrt,项目名称:othermenu,代码行数:7,代码来源:index.php

示例3: Menu

if ($gCurrentUser->approveUsers() || $gCurrentUser->editUsers() || $gCurrentUser->manageRoles() || $gCurrentUser->isWebmaster()) {
    $adminMenu = new Menu('administration', $gL10n->get('SYS_ADMINISTRATION'));
    if ($gCurrentUser->approveUsers() && $gPreferences['registration_mode'] > 0) {
        $adminMenu->addItem('newreg', '/adm_program/modules/registration/registration.php', $gL10n->get('NWU_NEW_REGISTRATIONS'), '/icons/new_registrations.png');
    }
    if ($gCurrentUser->editUsers()) {
        $adminMenu->addItem('usrmgt', '/adm_program/modules/members/members.php', $gL10n->get('MEM_USER_MANAGEMENT'), '/icons/user_administration.png');
    }
    if ($gCurrentUser->manageRoles()) {
        $adminMenu->addItem('roladm', '/adm_program/modules/roles/roles.php', $gL10n->get('ROL_ROLE_ADMINISTRATION'), '/icons/roles.png');
    }
    if ($gCurrentUser->isWebmaster()) {
        $adminMenu->addItem('dbback', '/adm_program/modules/backup/backup.php', $gL10n->get('BAC_DATABASE_BACKUP'), '/icons/backup.png');
        $adminMenu->addItem('orgprop', '/adm_program/modules/preferences/preferences.php', $gL10n->get('SYS_SETTINGS'), '/icons/options.png');
    }
    echo $adminMenu->show();
}
?>
                </div><!-- closes "div#plugin_menu" -->
            </div><!-- closes "div#right-block" -->
        </div><!-- closes "div.col-md-3" -->
    </div><!-- closes "div.row" -->
</div><!-- closes "div#page" -->


<p id="copyright">
    <a href="http://www.admidio.org/" style="text-decoration: none;">
        <img src="<?php 
echo THEME_PATH;
?>
/images/admidio_logo_20.png"
开发者ID:sistlind,项目名称:admidio,代码行数:31,代码来源:my_body_bottom.php

示例4: Menu

if ($gValidLogin) {
    $moduleMenu->addSubItem('lists', 'mylist', '/adm_program/modules/lists/mylist.php', $gL10n->get('LST_MY_LIST'));
    $moduleMenu->addSubItem('lists', 'rolinac', '/adm_program/modules/lists/lists.php?active_role=0', $gL10n->get('ROL_INACTIV_ROLE'));
}
if ($gPreferences['enable_dates_module'] == 1 || $gPreferences['enable_dates_module'] == 2 && $gValidLogin) {
    $moduleMenu->addItem('dates', $g_root_path . '/adm_program/modules/dates/dates.php', $gL10n->get('DAT_DATES'), '/icons/dates_big.png', $gL10n->get('DAT_DATES_DESC'));
    $moduleMenu->addSubItem('dates', 'olddates', '/adm_program/modules/dates/dates.php?mode=old', $gL10n->get('DAT_PREVIOUS_DATES', $gL10n->get('DAT_DATES')));
}
if ($gPreferences['enable_weblinks_module'] == 1 || $gPreferences['enable_weblinks_module'] == 2 && $gValidLogin) {
    $moduleMenu->addItem('links', $g_root_path . '/adm_program/modules/links/links.php', $gL10n->get('LNK_WEBLINKS'), '/icons/weblinks_big.png', $gL10n->get('LNK_WEBLINKS_DESC'));
}
$page->addHtml($moduleMenu->show(true));
// menu with links to all administration pages of Admidio if the user has the right to administrate
if ($gCurrentUser->isWebmaster() || $gCurrentUser->manageRoles() || $gCurrentUser->approveUsers() || $gCurrentUser->editUsers()) {
    $adminMenu = new Menu('index_administration', $gL10n->get('SYS_ADMINISTRATION'));
    if ($gCurrentUser->approveUsers() && $gPreferences['registration_mode'] > 0) {
        $adminMenu->addItem('newreg', '/adm_program/modules/registration/registration.php', $gL10n->get('NWU_NEW_REGISTRATIONS'), '/icons/new_registrations_big.png', $gL10n->get('NWU_MANAGE_NEW_REGISTRATIONS_DESC'));
    }
    if ($gCurrentUser->editUsers()) {
        $adminMenu->addItem('usrmgt', '/adm_program/modules/members/members.php', $gL10n->get('MEM_USER_MANAGEMENT'), '/icons/user_administration_big.png', $gL10n->get('MEM_USER_MANAGEMENT_DESC'));
    }
    if ($gCurrentUser->manageRoles()) {
        $adminMenu->addItem('roladm', '/adm_program/modules/roles/roles.php', $gL10n->get('ROL_ROLE_ADMINISTRATION'), '/icons/roles_big.png', $gL10n->get('ROL_ROLE_ADMINISTRATION_DESC'));
    }
    if ($gCurrentUser->isWebmaster()) {
        $adminMenu->addItem('dbback', '/adm_program/modules/backup/backup.php', $gL10n->get('BAC_DATABASE_BACKUP'), '/icons/backup_big.png', $gL10n->get('BAC_DATABASE_BACKUP_DESC'));
        $adminMenu->addItem('orgprop', '/adm_program/modules/preferences/preferences.php', $gL10n->get('SYS_SETTINGS'), '/icons/options_big.png', $gL10n->get('ORG_ORGANIZATION_PROPERTIES_DESC'));
    }
    $page->addHtml($adminMenu->show(true));
}
$page->show();
开发者ID:sistlind,项目名称:admidio,代码行数:31,代码来源:index.php

示例5: Menu

<?php

include_once $_SERVER["DOCUMENT_ROOT"] . "/lib/engine.php";
// это нужно так как при notop не вызывается заголовк html
authorize();
// вызов авторизации
showheader("Управление");
$menu = new Menu();
$menu->add("todo", "ToDo");
$menu->add("logs", "Logs");
$menu->add("users", "Users");
$menu->add("backup", "Backup", false, '/lib/modules/backup/admin_dumper.php');
$menu->add("back", "Назад", false, '/');
$menu->show();
showfooter();
开发者ID:GGF,项目名称:Production-Base,代码行数:15,代码来源:index.php

示例6:

<?php

/**
 * @author Matthew McNaney <mcnaney at gmail dot com>
 * @version $Id$
 */
if (!defined('PHPWS_SOURCE_DIR')) {
    exit;
}
if (PHPWS_Settings::get('menu', 'display_type')) {
    Menu::categoryView();
} else {
    Menu::show();
    Menu::showPinned();
}
unset($GLOBALS['MENU_LINKS']);
Menu::miniadmin();
开发者ID:HaldunA,项目名称:phpwebsite,代码行数:17,代码来源:close.php

示例7: array

Route::resource('settings', 'SettingsController');
Route::resource('portfolios', 'PortfoliosController');
Route::resource('projects', 'ProjectsController');
Route::get('menus', 'MenusController@index');
Route::post('menus', 'MenusController@store');
#done
Route::get('/login', 'UsersController@login');
#done
Route::put('/login', 'UsersController@authenticate');
#done
Route::get('/logout', array('before' => 'auth', 'uses' => 'UsersController@getLogout'));
Route::get('/admin/portfolios', array('before' => 'auth', 'as' => 'admin_portfolio', 'uses' => 'PortfoliosController@adminIndex'));
Route::get('/admin/projects', array('before' => 'auth', 'as' => 'admin_projects', 'uses' => 'ProjectsController@adminIndex'));
Route::get('/admin', array('before' => 'auth', 'uses' => 'AdminController@dash'));
Route::get('/{id?}', function ($id = null) {
    return Menu::show($id);
});
Route::get('/auth/token', function () {
    return csrf_token();
});
Route::group(array('before' => 'auth'), function () {
    /**
     * Get images for project x
     *
     */
    Route::get('/api/v1/getImageFromImageableItem/{imageable_type}/{imageable_id}', 'ImagesController@getImageFromImageableItem');
    Route::post('/api/v1/getImageFromImageableItem/{imageable_type}/{imageable_id}', function () {
        return Image::create(Input::all());
    });
    Route::resource('/api/v1/images', 'ImagesController');
    Route::get('images/projects', 'ImagesController@uploadProject');
开发者ID:jboz62,项目名称:cms,代码行数:31,代码来源:routes.php


注:本文中的Menu::show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。