admin/type/type.aspx.cs

(开头部分) 10KB

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

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Data;

namespace web.admin.type
{
    public partial class type : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                typestr();

                if (Request.QueryString["tid"] != null)
                {
                    this.Panel1.Visible = true;

                    HttpCookie cook = new HttpCookie("tid");
                    cook.Expires = DateTime.Now.AddMonths(1);
                    cook.Value = Request.QueryString["tid"].ToString();
                    Response.Cookies.Add(cook);

                }
                else
                {
                    if (Request.Cookies["tid"] != null)
                    {
                        Response.Redirect("type.aspx?tid=" + Request.Cookies["tid"].Value);
                    }
                }

            }
        }

        public void typestr()
        {
            List<model.type_oneModel> li = new AcsHelper().ExecuteList<model.type_oneModel>("select * from type_one where tid=0 order by px");

            if (Request.QueryString["tid"] != null)
            {
                int tid = Convert.ToInt32(Request.QueryString["tid"]);
                li = new AcsHelper().ExecuteList<model.type_oneModel>("select * from type_one where tid=" + tid + " order by px");
            }

            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            int i = 0;

            sb.Append("<div class=\"b_l_w\">\n");
            foreach (model.type_oneModel m in li)
            {
                i++;
                string imgstr = "";
                if (i == 1)
                    imgstr = "rplus.gif";
后面还有 117 行代码,购买后查看完整代码

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

AI 解读 AI

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

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