Esempio n. 1
0
        private Accordion InitAccordionMenu()
        {
            int UserID = int.Parse(Session["UserID"].ToString());

            Accordion accordionMenu = new Accordion();

            accordionMenu.ID         = "accordionMenu";
            accordionMenu.EnableFill = true;
            accordionMenu.ShowBorder = false;
            accordionMenu.ShowHeader = false;
            Region2.Items.Add(accordionMenu);

            int user_id = int.Parse(Session["UserID"].ToString());

            Web_Node node1 = new Web_Node();

            node1.NAME       = "Web";
            node1.INDEX_     = 2;
            node1.PINDEX     = 1;
            node1.SPECIES    = 8;
            node1.SPECIES_ID = 1;
            node1.CS         = 1;
            FineUI.TreeNode tnode = new FineUI.TreeNode();
            tnode.Text        = node1.NAME;
            tnode.NodeID      = node1.INDEX_.ToString();
            tnode.NavigateUrl = "javascript:void(0)";

            TreeHelper_Web.BuildUserWebTree(user_id, tnode, accordionMenu);
            return(accordionMenu);
        }
Esempio n. 2
0
        private Tree InitTreeMenu()
        {
            Tree treeMenu = new Tree();

            treeMenu.ID           = "treeMenu";
            treeMenu.EnableArrows = true;
            treeMenu.ShowBorder   = false;
            treeMenu.ShowHeader   = false;
            treeMenu.EnableIcons  = false;
            treeMenu.AutoScroll   = true;
            Region2.Items.Add(treeMenu);

            int user_id = int.Parse(Session["UserID"].ToString());

            Web_Node node1 = new Web_Node();

            node1.NAME       = "Web";
            node1.INDEX_     = 2;
            node1.PINDEX     = 1;
            node1.SPECIES    = 8;
            node1.SPECIES_ID = 1;
            node1.CS         = 1;
            FineUI.TreeNode tnode = new FineUI.TreeNode();
            tnode.Text        = node1.NAME;
            tnode.NodeID      = node1.INDEX_.ToString();
            tnode.NavigateUrl = "javascript:void(0)";
            TreeHelper_Web.BuildUserWebTree(user_id, tnode, treeMenu);

            return(treeMenu);
        }