public bool Ishave(string code) { int count = B_Lebi_Theme.Counts("Code='" + code + "'"); if (count == 0) { return(false); } return(true); }
protected void Page_Load(object sender, EventArgs e) { if (!EX_Admin.Power("theme_list", "模板列表")) { PageReturnMsg = PageNoPowerMsg(); } string where = "1=1"; PageSize = RequestTool.getpageSize(25); models = B_Lebi_Theme.GetList(where, "Sort desc", PageSize, page); int recordCount = B_Lebi_Theme.Counts(where); PageString = Pager.GetPaginationString("?page={0}", page, PageSize, recordCount); }