Example #1
0
        public bool ISselected(int id, int tabid)
        {
            int count = B_Lebi_TabChild.Counts("tabid=" + tabid + " and protypeid=" + id);

            if (count > 0)
            {
                return(true);
            }
            return(false);
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("tab_edit", "导航设置"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            id  = RequestTool.RequestInt("id", 0);
            tab = B_Lebi_Tab.GetModel(id);
            if (tab == null)
            {
                Response.Write("参数错误");
                Response.End();
                return;
            }
            string where = "tabid=" + id;
            models       = B_Lebi_TabChild.GetList(where, "sort desc");
        }