Example #1
0
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
$pdc = xmlCall("samba.isPdc", null);
$sidemenu = new SideMenu();
$sidemenu->setClass("shares machines config");
$sidemenu->addSideMenuItem(new SideMenuItem(_T("List shares", "samba"), "samba", "shares", "index", "img/shares/icn_global_active.gif", "img/shares/icn_global.gif"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Add a share", "samba"), "samba", "shares", "add", "img/shares/icn_addShare_active.gif", "img/shares/icn_addShare.gif"));
if ($pdc) {
    // if SAMBA is configured as a PDC
    $s = new SideMenuItem(_T("List computers", "samba"), "samba", "machines", "index", "img/machines/icn_global_active.gif", "img/machines/icn_global.gif");
    $s->setCssId("indexmachines");
    $sidemenu->addSideMenuItem($s);
    /*$s = new SideMenuItem(_T("Add a computer", "samba"), "samba", "machines", "add", "img/machines/icn_addMachines_active.gif", "img/machines/icn_addMachines.gif");
      $s->setCssId("addmachine");
      $sidemenu->addSideMenuItem($s);*/
}
$s = new SideMenuItem(_T("General options", "samba"), "samba", "config", "index", "img/config/icn_global_active.gif", "img/config/icn_global.gif");
$s->setCssId("indexconfig");
$sidemenu->addSideMenuItem($s);
switch ($_GET["submod"]) {
    case "shares":
        $sidemenu->setBackgroundImage("img/shares/icn_shares_large.gif");
        break;
    case "machines":
        $sidemenu->setBackgroundImage("img/machines/icn_machines_large.gif");
        break;
    case "config":
        $sidemenu->setBackgroundImage("img/config/icn_config_large.gif");
        break;
}
Example #2
0
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
$sidemenu = new SideMenu();
$sidemenu->setClass("domains aliases");
if (hasVDomainSupport()) {
    $s = new SideMenuItem(_T("Mail domains", "mail"), "mail", "domains", "index", "modules/mail/graph/img/mail_active.png", "modules/mail/graph/img/mail_inactive.png");
    $s->setCssId("index_domains");
    $sidemenu->addSideMenuItem($s);
    $s = new SideMenuItem(_T("Add a domain", "mail"), "mail", "domains", "add", "modules/mail/graph/img/mailadd_active.png", "modules/mail/graph/img/mailadd_inactive.png");
    $s->setCssId("add_domain");
    $sidemenu->addSideMenuItem($s);
}
if (hasVAliasesSupport()) {
    $s = new SideMenuItem(_T("Virtual aliases", "mail"), "mail", "aliases", "index", "modules/mail/graph/img/mail_active.png", "modules/mail/graph/img/mail_inactive.png");
    $s->setCssId("index_aliases");
    $sidemenu->addSideMenuItem($s);
    $s = new SideMenuItem(_T("Add a virtual alias", "mail"), "mail", "aliases", "add", "modules/mail/graph/img/mailadd_active.png", "modules/mail/graph/img/mailadd_inactive.png");
    $s->setCssId("add_alias");
    $sidemenu->addSideMenuItem($s);
}
Example #3
0
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once "graph/navbar.inc.php";
require_once "modules/update/includes/xmlrpc.inc.php";
require_once "modules/update/includes/html.inc.php";
$MMCApp =& MMCApp::getInstance();
$os_classes = get_os_classes();
$sidemenu = new SideMenu();
$sidemenu->setClass("update");
$sidemenu->addSideMenuItem(new SideMenuItem(_T('All updates', 'update'), "update", "update", "index"));
foreach ($os_classes['data'] as $os) {
    $item = new SideMenuItem($os['name'], "update", "update", "viewUpdates&os_class_id=" . $os['id']);
    $item->setCssId("osClass" . $os['id']);
    $sidemenu->addSideMenuItem($item);
}
if (isset($_GET['os_class_id'])) {
    $sidemenu->forceActiveItem("viewUpdates&os_class_id=" . $_GET['os_class_id']);
}
$sidemenu->addSideMenuItem(new SideMenuItem(_T('Settings', 'update'), "update", "update", "settings"));