SiteAdmin/Aspx/SDManageQX.aspx.cs

(开头部分) 2KB

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

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

public partial class SiteAdmin_Aspx_SDManageQX : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Cookies["roleid"] != null)
        {
            if (!IsPostBack)
            {

                binddr();
            }
        }
        else
        {
            MessageBox.ShowAndRedirect(this.Page, "对不起!您还没有登录系统。", "../Logout.aspx");
        }
    }
    //绑定记录
    public void binddr()
    {
        ShenTab myn = new ShenTab();

        string start_time = "1900-01-01";
        if (Request["txtFindDate1"] != null && Request["txtFindDate1"] != "")
        {
            start_time = Request["txtFindDate1"].ToString();
        }
        string stop_time = "2099-01-01";
        if (Request["txtFindDate2"] != null && Request["txtFindDate2"] != "")
        {
            stop_time = Request["txtFindDate2"].ToString();
        }

        string sqlstr = "1=1 ";
        sqlstr = sqlstr + " and Area = '" + HttpUtility.UrlDecode(HttpContext.Current.Request.Cookies["name"].Value) + "'";
        sqlstr = sqlstr + " and  SQTime  between  '" + DateTime.Parse(start_time) + "' and '" + DateTime.Parse(stop_time + " 23:59:59") + "' ";

        sqlstr = sqlstr + " order by ID desc ";
        DataView dv = myn.GetList(sqlstr).Tables[0].DefaultView;
        PagedDataSource pds = new PagedDataSource();
        AspNetPager1.RecordCount = dv.Count;
        pds.DataSource = dv;
        pds.AllowPaging = true;
        pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
        pds.PageSize = AspNetPager1.PageSize;
        myrepeater.DataSource = pds;
        myrepeater.DataBind();
    }

    public string ZTShow(object article)
    {
        int sid = Convert.ToInt16(article.ToString());
后面还有 32 行代码,购买后查看完整代码

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

AI 解读 AI

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

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