Web/BBS/Admin/MasterManage.aspx.cs

(开头部分) 4KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DotBBS.Business;
using DotBBS.Common;
using DotBBS.Model;

//============================================================================
// 官方支持:DotBBS.Net   作者:吸铁石团队(水煮鱼)
//============================================================================
public partial class Admin_MasterManage : DotAdminPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindBSS();
        }
    }

    private void BindBSS()
    {
        UserBll bll = new UserBll();
        gvBBS.DataSource = bll.GetList("*","and UserType not in ('User','SysMaster')");
        gvBBS.DataBind();
    }

    protected void gvBBS_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            string UserID = e.Row.Cells[0].Text;
            UserBll bll = new UserBll();
            string BigClassNames = GetBigClassNames(bll.Scalar("BigClassIDS","and UserID='" + UserID + "'").ToString());
            string SmallClassNames = GetSmallClassNames(bll.Scalar("SmallClassIDS", "and UserID='" + UserID + "'").ToString());
            e.Row.Cells[0].Text = "<a href=\"../UserInfo.aspx?UserID=" + e.Row.Cells[0].Text + "\" target=\"_blank\">" + e.Row.Cells[0].Text + "</a>";
            if (e.Row.Cells[1].Text != "BBSMaster")
            {
                e.Row.Cells[3].Text = "<a href=\"#\" onclick=\"OpenWindow('MasterSet.aspx?UserID=" + UserID + "')\">分配版块</a>";
                if (e.Row.Cells[1].Text == "AreaMaster")
                {
                    e.Row.Cells[2].Text = BigClassNames;
                }
                else
                {
                    e.Row.Cells[2].Text = SmallClassNames;
                }
            }
            else
            {
                e.Row.Cells[2].Text = "所有版块";
            }
            e.Row.Cells[1].Text = UserBll.GetUserType(e.Row.Cells[1].Text);
后面还有 73 行代码,购买后查看完整代码

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

AI 解读 AI

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

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