Ejemplo n.º 1
0
closemenu("E-Learning", $module);
//<!-- Communication Submenu Level 1 -->
cha_activesection("Finance", $section, "menu_finance", "Financial Records", "coins", $module);
cha_activebutton("TuitionFee", $page, "/?page=TuitionFee&section=Finance", "Tuition Fee", $module);
closemenu("Finance", $module);
cha_activesection("E-voting", $section, "menu_E-voting", "E-voting", "random", $module);
cha_activebutton("ElectionVoting", $page, "/?page=ElectionVoting&section=E-voting", "Election Voting", $module);
cha_activebutton("ElectionPost", $page, "/?page=ElectionPost&section=E-voting", "Election Post", $module);
cha_activebutton("SetCandidates", $page, "/?page=SetCandidates&section=E-voting", "Set Candidates", $module);
closemenu("E-voting", $module);
//<!-- // Communication Submenu Level 1 END -->
//<!-- Communication Submenu Level 1 -->
cha_activesection("Communication", $section, "menu_communication", "Communication", "envelope", $module);
cha_activebutton("CheckInbox", $page, "/?page=CheckInbox&section=Communication", "Check Inbox", $module);
cha_activebutton("NewsEvents", $page, "/?page=NewsEvents&section=Communication", "Suggestion Box ", $module);
closemenu("Communication", $module);
//<!-- // Communication Submenu Level 1 END -->
?>
		</ul>
			<div class="clearfix"></div>
			<!-- // Regular Size Menu END -->
			
			
			<div class="clearfix"></div>
			<div class="separator bottom"></div>
			
						
			
			
			
			<div class="widget-sidebar-stats">
Ejemplo n.º 2
0
function getusermenu()
{
    global $otmp_user;
    //$otmp_user = new tmp_user();
    $otmp_user->Update(array('us_menu' => $otmp_user->GetSqlColValue('us_menu', '')), array('us_id' => $_SESSION['us_id']), false);
    //global $omenu;
    //$result = $omenu->ExecuteStatement('UPDATE tmp_user SET us_menu = \'\' WHERE us_id = ' . $_SESSION['us_id'], false, null, null, false);
    //buildmenu('Site', '', '', 1);
    //buildmenu('Control Panel', 'icon-16-cpanel', 'module.php');
    //buildmenu('Home', 'icon-16-lock', 'main.php');
    //buildmenu('', '', '', 0, 0, 1);
    //buildmenu('Change Password', 'icon-16-lock', 'chgPassForm.php');
    //buildmenu('', '', '', 0, 0, 1);
    //buildmenu('Logout', 'icon-16-logout', 'login.php?cAction=Logout');
    closemenu(1);
    $result = new page();
    $result = getCursorFromDB($result, getquery(), false);
    $rows = $result->RecordsArray(MYSQL_ASSOC);
    if ($rows) {
        foreach ($rows as $row) {
            buildmenudb($row, 1);
            $result1 = getCursorFromDB($result, getquery($row['pg_id']), false);
            $rows1 = $result1->RecordsArray(MYSQL_ASSOC);
            foreach ($rows1 as $row1) {
                $result2 = getCursorFromDB($result, getquery($row1['pg_id']), false);
                $rows2 = $result2->RecordsArray(MYSQL_ASSOC);
                if ($rows2) {
                    buildmenudb($row1, 3);
                } else {
                    buildmenudb($row1, 2);
                }
                if ($rows2) {
                    foreach ($rows2 as $row2) {
                        //$row2 = $result2->RowArray(null, MYSQL_ASSOC);
                        buildmenudb($row2, 4);
                    }
                    closemenu(3);
                } else {
                    closemenu(2);
                }
            }
            closemenu(1);
        }
        buildmenu('', '', '', 0, 0, 0, 0, 0, 1);
    }
}