Admin/Picture/PictureTypeManage.aspx.cs

(开头部分) 10KB

这里只显示每个文件的开头 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 Picture;
using Base;
using SqlOperate;

public partial class admin_Picture_PictureTypeManage : Base.BasePage
{
    int Lang = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        CheckRights("column", "D1");

        if (GetCookie("Lang") != "")
        {
            Lang = int.Parse(GetCookie("Lang").ToString());
        if (!IsPostBack)
        {
            Bind();
            TypeBind();
        }

    }
    else
    {
        HandleErr("0", "../login.aspx");
    }
    }
    int ParentID = 0;
    static int Iid = 0;
    private void Bind()
    {
        //if (Request["ParentId"] == null)
        //{
        //    btnMove.Attributes.Add("onclick", "javascript:return confirm('转移此类别,将连同子类别一起转移,你可以先转移子类别.确定一起转移吗?')");
        //}
        //btnDelete.Attributes.Add("onclick", "javascript:return confirm('删除这些类别,将连同子类别、类别信息一起删除,你可以先转移这些类别的信息.确定都删除吗?')");
       
        string strURl = Request.RawUrl;
        strURl = strURl.Substring(0, strURl.IndexOf(".aspx")) + ".aspx";
        string strWhere = "Lang="+ Lang +"";
        PageNo1.Strurl = strURl;
        PageNo1.FldName = "b.Sequence";
        PageNo1.Table = "C_PictureType as b ";
        PageNo1.StrGetFields = "b.ID,b.Name,b.EName,b.ParentID,b.FullID,b.Sequence,(select count(*) from C_PictureType where ParentID=b.ID) as time";
        PageNo1.PageSize = 12; 
        if (Request.QueryString["ParentId"] != null && Request.QueryString["ParentId"] != "")
        {
            ParentID = int.Parse(Request.QueryString["ParentId"]);
        }
        strWhere += " AND ParentID=" + ParentID;
        if (Request.QueryString["page"] != null && Request.QueryString["page"] != "")
后面还有 250 行代码,购买后查看完整代码

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

AI 解读 AI

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

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