Ad Widget

Collapse

Custom top menu to open external sites

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • russhenry715
    Member
    • Aug 2009
    • 32

    #1

    Custom top menu to open external sites

    Good Morning

    I was wondering if anyone knows how to open a link in a new window to a external site? i would like to create a new menu next to "Administration" then below that have links that would open our helpdesk and other stuff.

    This is what i have, just wondering instead of using tools_1.php it can open a new window to a external link

    frontends/php$ svn diff js include/page_header.php
    Index: js/common.js
    ================================================== =================
    --- js/common.js (revision 16)
    +++ js/common.js (working copy)
    @@ -501,7 +501,7 @@
    // Author: Aly

    var MMenu = {
    -menus: {'empty': 0, 'view': 0, 'cm': 0, 'reports': 0, 'config': 0, 'admin': 0},
    +menus: {'empty': 0, 'view': 0, 'cm': 0, 'reports': 0, 'config': 0, 'admin': 0, 'tools': 0},
    def_label: null,
    sub_active: false,
    timeout: null,
    Index: include/page_header.php
    ================================================== =================
    --- include/page_header.php (revision 16)
    +++ include/page_header.php (working copy)
    @@ -255,6 +255,18 @@
    'sub_pages'=>array('setup.php','warning.php'))
    )
    ),
    + 'tools'=>array(
    + 'label' => "Tools",
    + 'user_type' => USER_TYPE_ZABBIX_USER,
    + 'node_perm' => PERM_READ_WRITE,
    + 'default_page_id' => 1,
    + 'forse_disable_subnodes'=> true,
    + 'pages'=>array(
    + array('url'=>'tools_1.php', 'label'=>'Tool #1'),
    + array('url'=>'tools_2.php', 'label'=>'Tool #2'),
    + array('url'=>'tools_3.php', 'label'=>'Tool #3'),
    + )
    + ),
    'login'=>array(
    'label' => S_LOGIN,
    'user_type' => 0,
Working...