SuLei.Web/admin/article/article_list.aspx.cs
(开头部分) 24KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Text;
using System.Text.RegularExpressions;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SuLei.Common;
using SuLei.UI;
namespace SuLei.Web.admin.article
{
public partial class article_list : ManagePage
{
protected int channel_id;
protected int totalCount;
protected int page;
protected int pageSize;
protected int category_id;
protected string channel_name = string.Empty;
protected string property = string.Empty;
protected string keywords = string.Empty;
protected string prolistview = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
this.channel_id = SLRequest.GetQueryInt("channel_id");
this.category_id = SLRequest.GetQueryInt("category_id");
this.keywords = SLRequest.GetQueryString("keywords");
this.property = SLRequest.GetQueryString("property");
if (channel_id == 0)
{
JscriptMsg("频道参数不正确!", "back");
return;
}
this.channel_name = new BLL.sl_site_channel().GetChannelName(this.channel_id); //取得频道名称
this.pageSize = GetPageSize(10); //每页数量
this.prolistview = Utils.GetCookie("article_list_view"); //显示方式
if (!Page.IsPostBack)
{
ChkAdminLevel("channel_" + this.channel_name + "_list", SLEnums.ActionEnum.View.ToString()); //检查权限
TreeBind(this.channel_id); //绑定类别
WeiXinBind(); //绑定微信公众号
RptBind(this.channel_id, this.category_id, "id>0" + CombSqlTxt(this.keywords, this.property), "sort_id asc,add_time desc,id desc");
}
}
#region 绑定类别=================================
private void TreeBind(int _channel_id)
{
BLL.sl_article_category bll = new BLL.sl_article_category();
DataTable dt = bll.GetList(0, _channel_id);
this.ddlCategoryId.Items.Clear();
this.ddlCategoryId.Items.Add(new ListItem("所有类别", ""));
this.ddlMoveId.Items.Clear();
后面还有 479 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
