示例#1
0
<?php

/**
 * 载入菜单
 *
 * @version        $Id: index_menu_load.php 1 8:48 2010年7月13日Z tianya $
 * @package        DedeCMS.Administrator
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once dirname(__FILE__) . '/config.php';
AjaxHead();
if ($openitem != 100) {
    require dirname(__FILE__) . '/inc/inc_menu.php';
    require DEDEADMIN . '/inc/inc_menu_func.php';
    GetMenus($cuserLogin->getUserRank(), 'main');
    exit;
} else {
    $openitem = 0;
    require dirname(__FILE__) . '/inc/inc_menu_module.php';
    require DEDEADMIN . '/inc/inc_menu_func.php';
    GetMenus($cuserLogin->getUserRank(), 'module');
    exit;
}
示例#2
0
 // MSIE 4 DOM
 return document.all(objectId);
 }
 else if (document.layers && document.layers[objectId]) {
 // NN 4 DOM.. note: this won't find nested layers
 return document.layers[objectId];
 }
 else {
 return false;
 }
}

function showHide(objname){
    var obj = getObject(objname);
    if(obj.style.display == "none"){
		obj.style.display = "block";
	}else{
		obj.style.display = "none";
	}
}
</script>
<base target="main">
<body>
<div class="menu">
<?php 
GetMenus($cuserLogin->getUserRank());
?>
</div>
</body>
</html>
<?php ClearAllLink(); ?>
示例#3
0
function tabs()
{
    $tpl = new templates();
    $array["hour"] = '{last_hour}';
    $array["today"] = '{last_24h}';
    $array["week"] = '{last_7_days}';
    $page = CurrentPageName();
    $t = time();
    while (list($num, $ligne) = each($array)) {
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?buildgraph=yes&period={$num}&t={$time}\"><span>{$ligne}</span></a></li>\n");
    }
    $menus = GetMenus();
    echo "{$menus}\n\t<div id=main_statskav4tabs style='width:100%;height:500px;overflow:auto'>\n\t\t<ul>" . implode("\n", $html) . "</ul>\n\t</div>\n\t\t<script>\n\t\t\t\t\$(document).ready(function(){\n\t\t\t\t\t\$('#main_statskav4tabs').tabs();\n\t\t\t\n\t\t\t\n\t\t\t});\n\t\t</script>";
}
function tabs()
{
    $tpl = new templates();
    $array["hour"] = '{last_hour}';
    $array["today"] = '{last_24h}';
    $array["week"] = '{last_7_days}';
    $page = CurrentPageName();
    $t = time();
    while (list($num, $ligne) = each($array)) {
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?buildgraph=yes&period={$num}&t={$time}\"><span>{$ligne}</span></a></li>\n");
    }
    $menus = GetMenus();
    echo $menus . build_artica_tabs($html, "main_statskav4tabs");
}