tv.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 System.Text.RegularExpressions;
using System.Text;

public partial class tv : System.Web.UI.Page
{
    protected int tnum;
    protected Int16 bid = 20;
    protected StringBuilder list_hits, list_new, lists;
    protected string boardname;
    protected void Page_Load(object sender, EventArgs e)
    {
        string where = "";
        int page = 1, recordAmount = 0, pageAmount = 0, tid;
        if (Request.QueryString["bid"] != null && Regular.IsInt(Request.QueryString["bid"]))
        {
            bid = Int16.Parse(Request.QueryString["bid"]);
            where = "boardid=" + bid;
        }
        else
            where = "boardid>19 and boardid<26";
        if (bid == 0)
            where = "boardid>19 and boardid<26";
        if (Request.QueryString["page"] != null && Regular.IsInt(Request.QueryString["page"]))
            page = int.Parse(Request.QueryString["page"]);
        MatchName();
        SqlStore sql = new SqlStore();
        DataSet dataset = sql.List(bid, "n_topic", "tid", "*", "updatetime desc", where + " and islock=0", page, ref recordAmount, ref pageAmount);
        list_hits = new StringBuilder("<ul>", 2000);
        foreach (DataRow row in dataset.Tables[0].Rows)
            list_hits.Append("<li><a href=\"/novel/" + row["tid"] + "/\" title=\"" + row["title"] + ";作者:" + row["author"] + ";最新章节:" + row["ctitle"] + "\">" + row["title"] + "</a></li>");
        list_hits.Append("</ul>");
        list_new = new StringBuilder("<ul>", 2000);
        foreach (DataRow row in dataset.Tables[1].Rows)
            list_new.Append("<li><a href=\"/novel/" + row["tid"] + "/\" title=\"" + row["title"] + ";作者:" + row["author"] + ";最新章节:" + row["ctitle"] + "\">" + row["title"] + "</a></li>");
        list_new.Append("</ul>");
        lists = new StringBuilder(10000);
        foreach (DataRow row in dataset.Tables[2].Rows)
        {
            tid = (int)row["tid"];
            lists.Append("<ul>"
                + "<li class=\"ln\"><a href=\"/novel/" + tid + "/\" class=\"title\" title=\"" + row["title"] + "\">" + row["title"] + "</a></li>"
                + "<li class=\"lc\"><a href=\"/chapter/" + tid + "/" + row["cid"] + ".html\" target=\"_blank\">" + row["ctitle"] + "</a></li>"
                + "<li class=\"la\">" + row["author"] + "</li>"
                + "<li class=\"lu\">" + Regex.Replace(Convert.ToString(row["updatetime"]), " .+$", "") + "</li>"
                + "<li class=\"ls\">" + ((bool)row["isfinish"] ? "完成" : "连载") + "</li>"
                + "</ul>");
        }
        //拼接链接
        if (lists != null)
        {
后面还有 23 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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