MxWeiXinPF.Web/admin/settings/url_rewrite_list.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.IO;
using System.Data;
using System.Xml;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;

namespace MxWeiXinPF.Web.admin.settings
{
    public partial class url_rewrite_list : Web.UI.ManagePage
    {
        protected string channel = string.Empty;
        protected string type = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            this.channel = MXRequest.GetQueryString("channel");
            this.type = MXRequest.GetQueryString("type");

            if (!Page.IsPostBack)
            {
                ChkAdminLevel("site_url_rewrite", MXEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind();
                RptBind(this.channel, this.type);
            }
        }

        #region 绑定频道=================================
        private void TreeBind()
        {
            BLL.channel bll = new BLL.channel();
            DataTable dt = bll.GetList(0, "", "sort_id asc,id desc").Tables[0];

            this.ddlChannel.Items.Clear();
            this.ddlChannel.Items.Add(new ListItem("所有频道", ""));
            foreach (DataRow dr in dt.Rows)
            {
                this.ddlChannel.Items.Add(new ListItem(dr["title"].ToString(), dr["name"].ToString()));
            }
        }
        #endregion

        #region 绑定数据=================================
        private void RptBind(string _channel, string _type)
        {
            if (this.channel != "")
            {
                ddlChannel.SelectedValue = this.channel;
            }
            if (this.type != "")
            {
                ddlPageType.SelectedValue = this.type;
            }
            rptList.DataSource = new BLL.url_rewrite().GetList(_channel, _type);
            rptList.DataBind();
        }
        #endregion
后面还有 33 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。