public function testMenuRetrieval()
 {
     $menu = new Menu();
     $menu->getMenu();
     $returned_response = $menu->getJsonString();
     $this->assertTrue($returned_response != Null, 'Menu Retrieval Unsuccessful');
 }
コード例 #2
0
ファイル: AdminHome.php プロジェクト: hqd276/bigs
 function draw()
 {
     global $display;
     $header_menu = Menu::getMenu();
     $display->add('header_menu', $header_menu);
     $display->output('AdminHome');
 }
コード例 #3
0
ファイル: BaseController.php プロジェクト: NukaCode/Miranda
 private function setRightMenu()
 {
     $rightMenu = \Menu::getMenu('rightMenu');
     if (auth()->check()) {
         $rightMenu->link('create_issue', function (Link $link) {
             $link->name = 'Create Issue';
             $link->url = route('issue.create');
             $link->type = 'button';
             $link->classes = 'btn btn-primary-outline';
         });
         $rightMenu->dropDown('user', auth()->user()->display_name, function (DropDown $dropDown) {
             $dropDown->type = 'profile';
             $dropDown->image = Gravatar::src(auth()->user()->email, 30);
             $dropDown->link('user_profile', function (Link $link) {
                 $link->name = 'Profile';
                 $link->url = route('user.profile');
             });
         });
     } else {
         $rightMenu->link('login', function (Link $link) {
             $link->name = 'Login';
             $link->url = route('auth.login');
         });
         $rightMenu->link('register', function (Link $link) {
             $link->name = 'Register';
             $link->url = route('auth.register');
         });
     }
 }
コード例 #4
0
ファイル: Module_News.php プロジェクト: microlefes/Game
 function getMenu()
 {
     $menu = new Menu($this->getName());
     $menu->addItem(new Menu_Item("?modus=news_create", "create"));
     $menu->addItem(new Menu_Item("?modus=news_show", "show"));
     return $menu->getMenu();
 }
コード例 #5
0
 private function setLeftMenu()
 {
     $leftMenu = \Menu::getMenu('leftMenu');
     $leftMenu->link('home', function (Link $link) {
         $link->name = trans('menu.home');
         $link->url = route('home');
     });
 }
コード例 #6
0
ファイル: Navigation.php プロジェクト: hqd276/bigs
 function draw()
 {
     $export = Url::get('export');
     if (empty($export)) {
         global $display;
         $display->add('header_menu', Menu::getMenu());
         $display->add('admin_user', User::user_name());
         $display->output('Navigation');
     }
 }
コード例 #7
0
 function init()
 {
     $this->registerAdminAction("remembercommentdata", "PluginRememberCommentDataConfigAction");
     $this->registerAdminAction("updateRememberCommentDataConfig", "PluginRememberCommentDataUpdateConfigAction");
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageAppearancePlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageAppearancePlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageAppearancePlugins", "RememberCommentData", "?op=remembercommentdata", "");
 }
コード例 #8
0
 function init()
 {
     $this->registerAdminAction("topreadposts", "PluginTopReadPostsConfigAction");
     $this->registerAdminAction("updateTopReadPostsConfig", "PluginTopReadPostsUpdateConfigAction");
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageTopPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageTopPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageTopPlugins", "TopReadPosts", "?op=topreadposts", "");
 }
コード例 #9
0
 function init()
 {
     $this->registerAdminAction("recenttrackbacks", "PluginRecentTrackbacksConfigAction");
     $this->registerAdminAction("updateRecentTrackbacksConfig", "PluginRecentTrackbacksUpdateConfigAction");
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageRecentPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageRecentPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageRecentPlugins", "RecentTrackbacks", "?op=recenttrackbacks", "");
 }
コード例 #10
0
 function init()
 {
     $this->registerAdminAction("articlereferers", "PluginArticleReferersConfigAction");
     $this->registerAdminAction("updateArticleReferersConfig", "PluginArticleReferersUpdateConfigAction");
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageRecentPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageRecentPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageRecentPlugins", "ArticleReferers", "?op=articlereferers", "");
 }
コード例 #11
0
 function init()
 {
     $this->registerAdminAction("nofollow", "PluginNoFollowConfigAction");
     $this->registerAdminAction("updateNoFollowConfig", "PluginNoFollowUpdateConfigAction");
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageAntiSpamPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageAntiSpamPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageAntiSpamPlugins", "NoFollow", "?op=nofollow", "");
     $this->registerNotification(EVENT_PRE_COMMENT_ADD);
 }
コード例 #12
0
 function init()
 {
     include_once PLOG_CLASS_PATH . "class/template/menu/menu.class.php";
     // register the filter
     $this->registerFilter("AuthImageFilter");
     $this->registerAdminAction("authimage", "PluginAuthImageConfigAction");
     $this->registerAdminAction("updateAuthImageConfig", "PluginAuthImageUpdateConfigAction");
     $this->registerBlogAction("AuthImageShow", "PluginAuthImageShowAction");
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageAntiSpamPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageAntiSpamPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageAntiSpamPlugins", "AuthImage", "?op=authimage", "");
 }
コード例 #13
0
 /**
  * registers all the filters and actions that we're going to use
  */
 function init()
 {
     // we only need to register a filter
     $this->registerFilter("SecretItemFilter");
     // register our action and menu entry
     $this->registerAdminAction("pluginSecretSettings", "AdminSecretPluginSettingsAction");
     $this->registerAdminAction("pluginSecretUpdateSettings", "AdminSecretPluginUpdateSettingsAction");
     // register our action and menu entry
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageSecurityPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageSecurityPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageSecurityPlugins", "pluginSecretSettings", "admin.php?op=pluginSecretSettings", "", true, false);
 }
コード例 #14
0
 /**
  * registers all the filters and actions that we're going to use
  */
 function init()
 {
     // register the events we want
     $this->registerNotification(EVENT_POST_TRACKBACK_ADD);
     // register an action that will allow users to see which comments have not been
     // accepted yet
     $this->registerAdminAction("validatetrackbackPluginSettings", "AdminValidateTrackbackPluginSettingsAction");
     $this->registerAdminAction("validatetrackbackPluginUpdateSettings", "AdminValidateTrackbackPluginUpdateSettingsAction");
     // add a menu entry
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageAntiSpamPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageAntiSpamPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageAntiSpamPlugins", "validatetrackbackPluginSettings", "admin.php?op=validatetrackbackPluginSettings", "", true, false);
 }
 /**
  * Processes menu data and sends HTTP Response to Client
  */
 public function actionGetMenu()
 {
     $model = new Menu();
     //This is to get the authentication detail and verifies if the menu should be parsed back
     //To be implemented at a later stage
     //$authDetails = http_get_request_body();
     //retrieval of menu from database and generate json string
     $model->getMenu();
     //retrieval of JSON string
     //$json_string = json_encode(array("updated" => "false", 'menu:'=>$menuEntries));
     $json_string = $model->getJsonString();
     //sending an http response with the menu in JSON formate
     HttpResponse::status(200);
     HttpResponse::setContentType('application/json');
     HttpResponse::setData($json_string);
     HttpResponse::send();
 }
コード例 #16
0
 function MainPageHandler()
 {
     $start_time = $this->getmicrotime();
     error_reporting(E_ALL);
     session_start();
     $this->_pObjInfo = new PageObjectInfo();
     $this->_layoutManager = new LayoutManager();
     $this->_input = new Input();
     $this->_input->load();
     $html = new Html();
     $menu = new Menu($html);
     $menu->getMenu('all');
     $this->setPage();
     $this->_input->unload();
     $end_time = $this->getmicrotime();
     //print $total_time = $end_time - $start_time;
 }
コード例 #17
0
ファイル: Page.php プロジェクト: jager/cms
 public function updatePage($aData, $aMenuData)
 {
     $content = trim(stripslashes($aData['content']));
     if (isset($aData['id'])) {
         $this->id = $aData['id'];
         $this->edited = new Doctrine_Expression("now()");
         if ($this->content != $content) {
             $this->backupPage();
         }
     } else {
         $this->created = new Doctrine_Expression("now()");
         $this->edited = new Doctrine_Expression("now()");
     }
     $this->pname = $aData['pname'];
     $this->link = Webbers_Normalize::Link($aData['pname']);
     $this->hd_title = $aData['hd_title'];
     $this->hd_keywords = $aData['hd_keywords'];
     $this->content = $content;
     $this->active = $aData['active'];
     $this->owner = Zend_Auth::getInstance()->getIdentity()->username;
     $this->save();
     if ($aData['menuitem'] == '0') {
         if (is_array($aMenuData) and $aMenuData['mname'] != '') {
             $aMenuData['active'] = $aData['active'];
             $aMenuData['Pages_id'] = $this->id;
             $aMenuData['link'] = '/pages/' . $this->link;
             $menu = new Menu();
             $menu->updateMenu($aMenuData);
         }
     } else {
         $menu = Menu::getMenu($aData['menuitem']);
         if ($menu->Pages_id > 0) {
             $oldMenu = Menu::getMenusByPageId($this->id);
             if ($oldMenu) {
                 $oldMenu->Pages_id = $menu->Pages_id;
                 $oldMenu->save();
             }
         }
         $menu->mname = $this->pname;
         $menu->active = $aData['active'];
         $menu->Pages_id = $this->id;
         $menu->link = '/pages/' . $this->link;
         $menu->save();
     }
     return $this->id;
 }
コード例 #18
0
 /**
  * registers all the filters and actions that we're going to use
  */
 function init()
 {
     // register the events we want
     $this->registerNotification(EVENT_POST_POST_ADD);
     $this->registerNotification(EVENT_POST_POST_UPDATE);
     $this->registerNotification(EVENT_POST_POST_DELETE);
     // register an action that will allow users to see which comments have not been
     // accepted yet
     $this->registerAdminAction("sitemapPluginSettings", "AdminSiteMapPluginSettingsAction");
     $this->registerAdminAction("sitemapPluginUpdateSettings", "AdminSiteMapPluginUpdateSettingsAction");
     // add a menu entry
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageSettings")) {
         $this->addMenuEntry("/menu/controlCenter", "manageSettings", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageSettings", "sitemapPluginSettings", "admin.php?op=sitemapPluginSettings", "", true, false);
 }
コード例 #19
0
 protected function getMenu($config, $menuName, $setSelected = false)
 {
     $menuId = array_get($config, $menuName);
     $selectedMenuItem = null;
     $menuItems = [];
     if ($menuId !== null) {
         $mainmenu = \Menu::getMenu($menuId);
         $menuItems = $mainmenu->getItems();
         $currentInstanceId = getCurrentInstanceId();
         if ($currentInstanceId !== null && $mainmenu->hasItem($currentInstanceId)) {
             $mainmenu->setItemSelected($currentInstanceId);
             if ($setSelected) {
                 $this->selectedMenu = $mainmenu->getItem($currentInstanceId);
             }
         }
     }
     return $menuItems;
 }
コード例 #20
0
 /**
  * registers all the filters and actions that we're going to use
  */
 function init()
 {
     // register the events we want
     $this->registerNotification(EVENT_PRE_COMMENT_ADD);
     // register an action that will allow users to see which comments have not been
     // accepted yet
     $this->registerAdminAction("unmoderatedComments", "AdminUnmoderatedCommentsAction");
     $this->registerAdminAction("updateUnmoderatedComment", "AdminUpdateUnmoderatedCommentsAction");
     $this->registerAdminAction("updateUnmoderatedComments", "AdminUpdateUnmoderatedCommentsAction");
     $this->registerAdminAction("moderatePluginSettings", "AdminModeratePluginSettingsAction");
     $this->registerAdminAction("moderatePluginUpdateSettings", "AdminModeratePluginUpdateSettingsAction");
     // add a menu entry
     $this->addMenuEntry("/menu/Manage/managePosts", "unmoderatedComments", "admin.php?op=unmoderatedComments", "", false, false);
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/controlCenter/manageAntiSpamPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageAntiSpamPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageAntiSpamPlugins", "moderatePluginSettings", "admin.php?op=moderatePluginSettings", "", true, false);
 }
コード例 #21
0
ファイル: content.php プロジェクト: sammychan1981/quanpin
 public function init()
 {
     $menu = new Menu();
     $this->assign('mainMenu', $menu->getMenu());
     $menu_index = $menu->current_menu();
     $this->assign('menu_index', $menu_index);
     $this->assign('subMenu', $menu->getSubMenu($menu_index['menu']));
     $this->assign('menu', $menu);
     $nav_act = Req::get('act') == null ? $this->defaultAction : Req::get('act');
     $nav_act = preg_replace("/(_edit)\$/", "_list", $nav_act);
     $this->assign('nav_link', '/' . Req::get('con') . '/' . $nav_act);
     $this->assign('node_index', $menu->currentNode());
     $this->safebox = Safebox::getInstance();
     $this->assign('manager', $this->safebox->get('manager'));
     $currentNode = $menu->currentNode();
     if (isset($currentNode['name'])) {
         $this->assign('admin_title', $currentNode['name']);
     }
 }
コード例 #22
0
 /**
  * registers all the filters and actions that we're going to use
  */
 function init()
 {
     // register the filter
     $this->registerFilter("HostsBlackList");
     // register the superadmin actions
     $this->registerAdminAction("blockedHosts", "AdminBlockedHostsAction");
     $this->registerAdminAction("newBlockedHost", "AdminNewBlockedHostAction");
     $this->registerAdminAction("addBlockedHost", "AdminAddBlockedHostAction");
     $this->registerAdminAction("editBlockedHost", "AdminEditBlockedHostAction");
     $this->registerAdminAction("updateBlockedHost", "AdminUpdateBlockedHostAction");
     $this->registerAdminAction("deleteBlockedHost", "AdminDeleteBlockedHostAction");
     $this->registerAdminAction("deleteBlockedHosts", "AdminDeleteBlockedHostAction");
     // register the blog owner actions
     $this->registerAdminAction("blogBlockHostFromPosting", "AdminBlogBlockHostFromPostingAction");
     $this->registerAdminAction("blogBlockedHosts", "AdminBlogBlockedHostsAction");
     $this->registerAdminAction("newBlogBlockedHost", "AdminNewBlogBlockedHostAction");
     $this->registerAdminAction("addBlogBlockedHost", "AdminAddBlogBlockedHostAction");
     $this->registerAdminAction("editBlogBlockedHost", "AdminEditBlogBlockedHostAction");
     $this->registerAdminAction("updateBlogBlockedHost", "AdminUpdateBlogBlockedHostAction");
     $this->registerAdminAction("deleteBlogBlockedHost", "AdminDeleteBlogBlockedHostAction");
     $this->registerAdminAction("deleteBlogBlockedHosts", "AdminDeleteBlogBlockedHostAction");
     // register the plugin settings actions
     $this->registerAdminAction("blockedHostSettings", "AdminBlockedHostSettingsAction");
     $this->registerAdminAction("updateBlockedHostSettings", "AdminUpdateBlockedHostSettingsAction");
     // register the menu entries, but the first one is only registered if it hasn't been
     // created yet
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/Manage/blogSecurity")) {
         $this->addMenuEntry("/menu/Manage", "blogSecurity", "", "", true, false);
     }
     $this->addMenuEntry("/menu/Manage/blogSecurity", "blogBlockedHosts", "admin.php?op=blogBlockedHosts", "blogBlockedHosts", true, false);
     $this->addMenuEntry("/menu/Manage/blogSecurity", "newBlogBlockedHost", "admin.php?op=newBlogBlockedHost", "newBlogBlockedHost", true, false);
     if (!$menu->entryExists("/menu/adminSettings/siteSecurity")) {
         $this->addMenuEntry("/menu/adminSettings", "siteSecurity", "", "", true, false);
     }
     $this->addMenuEntry("/menu/adminSettings/siteSecurity", "blockedHosts", "admin.php?op=blockedHosts", "blockedHosts", false, true);
     $this->addMenuEntry("/menu/adminSettings/siteSecurity", "newBlockedHost", "admin.php?op=newBlockedHost", "newBlockedHost", false, true);
     if (!$menu->entryExists("/menu/controlCenter/manageSecurityPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageSecurityPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageSecurityPlugins", "blockedHostSettings", "admin.php?op=blockedHostSettings", "", true, false);
 }
コード例 #23
0
 /**
  * call the View::render() method.
  */
 function render()
 {
     // set a few common parametres...
     $config =& Config::getConfig();
     $this->setValue('baseurl', $config->getValue('base_url'));
     $this->setValue('version', Version::getVersion());
     $this->setValue('uploads_enabled', $config->getValue('uploads_enabled'));
     //
     // stuff to generate the menu on the left
     //
     $menu =& Menu::getMenu();
     // initialize the menu renderer, passing as parameters the original menu structure,
     // the current logged in user (so that we can check permissions and so on)
     // and the current value of the 'op' parameter so that we can now which option is the
     // current active one
     $menuRenderer = new MenuRenderer($menu, $this->_blogInfo, $this->_userInfo);
     //$this->setValue( "menus", $menuRenderer->generateAt("Manage"));
     $this->setValue('menu', $menuRenderer);
     parent::render();
 }
コード例 #24
0
 /**
  * registers all the filters and actions that we're going to use
  */
 function init()
 {
     // register the filter
     $this->registerFilter("ContentFilter");
     // register the superadmin actions
     $this->registerAdminAction("filteredContent", "AdminFilteredContentAction");
     $this->registerAdminAction("newFilteredContent", "AdminNewFilteredContentAction");
     $this->registerAdminAction("addFilteredContent", "AdminAddFilteredContentAction");
     $this->registerAdminAction("editFilteredContent", "AdminEditFilteredContentAction");
     $this->registerAdminAction("updateFilteredContent", "AdminUpdateFilteredContentAction");
     $this->registerAdminAction("deleteFilteredContent", "AdminDeleteFilteredContentAction");
     $this->registerAdminAction("deleteFilteredContents", "AdminDeleteFilteredContentAction");
     // register the blog owner actions
     $this->registerAdminAction("blogFilteredContent", "AdminBlogFilteredContentsAction");
     $this->registerAdminAction("newBlogFilteredContent", "AdminNewBlogFilteredContentAction");
     $this->registerAdminAction("addBlogFilteredContent", "AdminAddBlogFilteredContentAction");
     $this->registerAdminAction("editBlogFilteredContent", "AdminEditBlogFilteredContentAction");
     $this->registerAdminAction("updateBlogFilteredContent", "AdminUpdateBlogFilteredContentAction");
     $this->registerAdminAction("deleteBlogFilteredContent", "AdminDeleteBlogFilteredContentAction");
     $this->registerAdminAction("deleteBlogFilteredContents", "AdminDeleteBlogFilteredContentAction");
     // register the plugin settings actions
     $this->registerAdminAction("filteredContentSettings", "AdminFilteredContentSettingsAction");
     $this->registerAdminAction("updateFilteredContentSettings", "AdminUpdateFilteredContentSettingsAction");
     $menu =& Menu::getMenu();
     if (!$menu->entryExists("/menu/Manage/blogSecurity")) {
         $this->addMenuEntry("/menu/Manage", "blogSecurity", "", "", true, false);
     }
     $this->addMenuEntry("/menu/Manage/blogSecurity", "blogFilteredContent", "admin.php?op=blogFilteredContent", "blogFilteredContent", true, false);
     $this->addMenuEntry("/menu/Manage/blogSecurity", "newBlogFilteredContent", "admin.php?op=newBlogFilteredContent", "newBlogFilteredContent", true, false);
     if (!$menu->entryExists("/menu/adminSettings/siteSecurity")) {
         $this->addMenuEntry("/menu/adminSettings", "siteSecurity", "", "", true, false);
     }
     $this->addMenuEntry("/menu/adminSettings/siteSecurity", "filteredContent", "admin.php?op=filteredContent", "filteredContent", false, true);
     $this->addMenuEntry("/menu/adminSettings/siteSecurity", "newFilteredContent", "admin.php?op=newFilteredContent", "newFilteredContent", false, true);
     if (!$menu->entryExists("/menu/controlCenter/manageSecurityPlugins")) {
         $this->addMenuEntry("/menu/controlCenter", "manageSecurityPlugins", "", "", true, false);
     }
     $this->addMenuEntry("/menu/controlCenter/manageSecurityPlugins", "filteredContentSettings", "admin.php?op=filteredContentSettings", "", true, false);
 }
コード例 #25
0
 private function rechercheArrond()
 {
     $erreur = '';
     $aElus = array();
     $oMenu = new Menu();
     $aMenu = $oMenu->getMenu();
     $oVue = new Vue();
     $oVue->AfficheEntete("Maires", array("Elus", "Toto le magicien", "Tadam"));
     $oVue->AfficheMenu($aMenu);
     if ($_GET['action'] == 'rechercher') {
         $oElus = new Elus();
         try {
             $aElus = $oElus->rechercheElusArrond($_POST['arrond']);
         } catch (Exception $e) {
             $erreur = $e->getMessage();
         }
         $oVue->AfficheChampRechercheArrond($_POST['arrond'], $erreur);
         $oVue->AfficheElus($aElus);
     } else {
         $oVue->AfficheChampRechercheArrond($_POST['arrond'], $erreur);
     }
     $oVue->AffichePied();
 }
コード例 #26
0
ファイル: layout.php プロジェクト: kittiwake/gm2
    <script type="text/javascript" src="/<?php 
echo SITE_DIR;
?>
/scripts/jquery-ui.js"></script>
    <link type="text/css" href="/<?php 
echo SITE_DIR;
?>
/css/jquery-ui.css" rel="stylesheet" /></head>
</head>

<body>
<div id="shapka">
    <div id="menu">

<?php 
echo Menu::getMenu($ri);
?>

    </div>
    <div id="hello">
        Привет, <a href="/<?php 
echo SITE_DIR;
?>
/auth/showAuth" onclick="killCookies();"><?php 
echo $log;
?>
</a>
    </div>
</div>

<?php 
コード例 #27
0
ファイル: Module_DoYouKnow.php プロジェクト: microlefes/Game
 function getMenu()
 {
     $menu = new Menu($this->getName());
     $menu->addItem(new Menu_Item("?modus=doyouknow_list", "list"));
     return $menu->getMenu();
 }
コード例 #28
0
ファイル: main.php プロジェクト: richardm6/bdd3-project
        <!-- BEGIN CONTAINER -->
        <div id="container" class="row-fluid">
            <!-- BEGIN SIDEBAR -->
            <div class="sidebar-scroll">

                <div id="sidebar" class="nav-collapse collapse">
                    <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
                    <div class="navbar-inverse">
                        <form class="navbar-search visible-phone">
                            <input type="text" class="search-query" placeholder="Search" />
                        </form>
                    </div>
                    <!-- END RESPONSIVE QUICK SEARCH FORM -->
                    <!-- BEGIN SIDEBAR MENU -->
                    <?php 
$this->widget('zii.widgets.CMenu', array('items' => $this->admin ? Menu::getAdminMenu($this) : Menu::getMenu($this), 'encodeLabel' => false, 'itemCssClass' => 'sub-menu', 'activeCssClass' => 'active', 'htmlOptions' => array('class' => 'sidebar-menu'), 'submenuHtmlOptions' => array('class' => 'sub')));
?>
                    <!-- END SIDEBAR MENU -->
                </div>
            </div>
            <!-- END SIDEBAR -->

            <!-- BEGIN PAGE -->  
            <div id="main-content">
                <!-- BEGIN PAGE CONTAINER-->
                <div class="container-fluid">
                    <!-- BEGIN PAGE HEADER-->
                    <!-- FLASH MESSAGES -->
                    <div class="row-fluid">
                        <div id="maiMessages" class="flash-messages">
                            <?php 
コード例 #29
0
ファイル: addMenu.php プロジェクト: vvpvvp/aliasCenter
</head>
<?php 
include "../include/database.inc";
include "../include/menu.inc";
include "../include/common.inc";
$id = $_GET["id"];
$pid = $_GET["pid"];
if ($id != null) {
    $menu = new Menu();
    $table = $menu->getMenu($id);
    if ($menu->hasparent()) {
        $parent = $menu->getParentMenu();
    }
} else {
    $pidMenu = new Menu();
    $parent = $pidMenu->getMenu($pid);
}
?>
<body>
<form name="form" method="post" action="../done/menu.php">
<input name="tablename" type="hidden" value="menu"/>
<input name="type" type="hidden" value="<?php 
echo $id ? "update" : "";
?>
"/>
<input name="id" type="hidden" value="<?php 
echo $id;
?>
"/>
<input name="sort" type="hidden" value="<?php 
echo $table->sort;
コード例 #30
0
ファイル: m_menu.php プロジェクト: SanneA/wodegongjubao
 /**
  * выбирает из базы менюшку и возвращает ее
  * @return array
  */
 public function getMenu($build = "", $menu = "")
 {
     return parent::getMenu(tbuild, 'adminmenu');
 }