예제 #1
0
 function getNav()
 {
     include_once 'mms_template_menu.php';
     $menu = new mms_template_menu($this->getNavArray(), 'tree', "REQUEST_URI");
     $menu->std_icon = "pfeilchen_orange.gif";
     $menu->class = "leftnav";
     return $menu->get();
 }
예제 #2
0
    } elseif ($mode == 'rewrite') {
        if ($params['module']) {
            $module = $params['module'] . '/';
        }
        if (array_key_exists('action', $params) && array_key_exists('id', $params)) {
            $action = $params['action'] . '/' . $params['id'] . '.html';
        } else {
            $action = $params['action'] . '.html';
        }
        $url = '/' . $module . $action;
    }
    return $url;
}
// end func url
//$content["MENU_ROWS"] = toc_toplevel();
$content["MENU_ROWS"] = $topMenu->get('rows');
include_once 'modules/news/mod_op_overview.php';
$news = new newsOverview();
$news->setLimit(5);
$content['RIGHTNAV'] = $news->get();
$tpl->setVariable("LC_AKTUELLES", $lang->translate('Aktuelles'));
$nav = new mms_nav($cfg['path']['template'] . "/" . $_tplset . '/leftnav.tpl.html');
$nav->setTitle('Navigation');
$nav->setImage('pic/tastatur.jpg');
//$nav->setMenu(toc_sublevel(2));
switch ($_GET['module']) {
    case 'company':
        $_module = 'company';
        break;
    case 'product':
        $_module = 'product';