示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            wid = GetCurWebId();
            if (string.IsNullOrEmpty(wid))
            {
                return;
            }
            this.channel_id  = Globals.RequestQueryNum("channel_id");
            this.category_id = Globals.RequestQueryNum("category_id");
            this.keywords    = Globals.RequestQueryStr("keywords");
            this.property    = Globals.RequestQueryStr("property");

            if (channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }
            //this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
            this.pageSize    = GetPageSize(10);                           //每页数量
            this.prolistview = SFUtils.GetCookie("wx_article_list_view"); //显示方式
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("articlemgr", DTEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind(this.channel_id);                                       //绑定类别
                RptBind(this.channel_id, this.category_id, "id>0" + CombSqlTxt(this.keywords, this.property), "sort_id asc,add_time desc,id desc");
            }
        }
示例#2
0
        private int GetPageSize(int _default_size)
        {
            int _pagesize;

            if (int.TryParse(SFUtils.GetCookie("manager_page_size", "DTcmsPage"), out _pagesize))
            {
                if (_pagesize > 0)
                {
                    return(_pagesize);
                }
            }
            return(_default_size);
        }
示例#3
0
        private int GetPageSize(int _default_size)
        {
            int _pagesize;

            if (int.TryParse(SFUtils.GetCookie("wx_article_page_size"), out _pagesize))
            {
                if (_pagesize > 0)
                {
                    return(_pagesize);
                }
            }
            return(_default_size);
        }