/// <summary> /// 文章分页列表 public DataTable get_article_list(string channel_name, int page_index, string strwhere, out int totalcount, out string pagelist, string _key, params object[] _params) { DataTable dt = new DataTable(); if (!string.IsNullOrEmpty(channel_name)) { int pagesize = new BLL.channels.category().GetPageSize(channel_name); //自动获得频道分页数量 dt = new BLL.channels.article().GetList(pagesize, page_index, strwhere, "sort_id asc,add_time desc", out totalcount).Tables[0]; pagelist = Utils.OutPageList(pagesize, page_index, totalcount, linkurl(_key, _params), 8); } else { totalcount = 0; pagelist = ""; } return dt; }
/// <summary> /// 文章分页列表 public DataTable get_article_list(string channel_name, int page_index, string strwhere, out int totalcount, out string pagelist, string _key, params object[] _params) { DataTable dt = new DataTable(); if (!string.IsNullOrEmpty(channel_name)) { int pagesize = new BLL.channels.category().GetPageSize(channel_name); //自动获得频道分页数量 dt = new BLL.channels.article().GetList(pagesize, page_index, strwhere, "sort_id asc,add_time desc", out totalcount).Tables[0]; pagelist = Utils.OutPageList(pagesize, page_index, totalcount, linkurl(_key, _params), 8); } else { totalcount = 0; pagelist = ""; } return(dt); }