918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/54f3ceba/6be944cd/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/54f3ceba/6be944cd/App_Web_pi0oh0sp.1.cs
?#pragma checksum "D:\wwwroot\klbttc\wwwroot\notice.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CBDEEF4C6A05A0D37B798AAAB63F84BDC753C8B2"

#line 1 "D:\wwwroot\klbttc\wwwroot\notice.aspx.cs"
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _newslist : System.Web.UI.Page
{
    C c = new C();
    DataSet ds = new DataSet();
    public int mid, cid = 0;
    public int menuid, firstmid = 0;
    public string webSite, webSite1, key, EngName = "";
    public bool flag1 = true;

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Request.Url.AbsolutePath.Length > 50)
            {
                Response.End();
            }
            if (Request.Url.Query.Length > 45)
            {
                Response.Redirect("/");
            }
            else
            {
                if (Request.QueryString["mid"].ToString().Length > 5)
                {
                    Response.Redirect("/");
                }
                else
                {
                    mid = int.Parse(SqlKey.ReplaceUrlBadChar(Request.QueryString["mid"].ToString()));
                }
            }
        }
        catch
        {
            Response.Redirect("/");
        }
        try
        {
            firstmid = int.Parse(Request.QueryString["firstmid"].ToString());
        }
        catch { }

        ds = MyFunction.Query("SELECT MenuSys_1.MenuSys1 AS Expr1, MenuSys.*,MenuSys_1.MenuSys0 AS Expr3 FROM MenuSys INNER JOIN     MenuSys MenuSys_1 ON     MenuSys.MenuSys3 = MenuSys_1.MenuSys0 WHERE  (MenuSys.MenuSys0 =@mid)", new SqlParameter[] { new SqlParameter("@mid", mid) });
        if (ds.Tables.Count > 0)
        {
            if (ds.Tables[0].Rows.Count > 0)
            {
                webSite = ds.Tables[0].Rows[0]["MenuSys1"].ToString();
                webSite1 = ds.Tables[0].Rows[0]["Expr1"].ToString();
                EngName = ds.Tables[0].Rows[0]["MenuSys14"].ToString();
                menuid = int.Parse(ds.Tables[0].Rows[0][4].ToString());
            }
        }
        this.Title = (mid != 1 ? webSite : "搜索列表") + " - " + Application["sysset1"].ToString();

        //新闻中心
        string sql = @"select * from news where news9=@mid order by news7 desc";
        SqlParameter[] ps = new SqlParameter[]{
                    new SqlParameter("@mid",mid) 
                };
        ds = MyFunction.Query(sql, ps);
        if (ds.Tables.Count > 0)
        {
            if (ds.Tables[0].Rows.Count > 0)
            {
                if (ds.Tables[0].Rows.Count < 15)
                {
                    Pager.Visible = false;
                }
                Pager.TableSource = ds.Tables[0];
                rep_news_list.DataSource = Pager.DataSource;
                rep_news_list.DataBind();
            }
            else
            {
                Pager.Visible = false;
            }
        }


    }

    public string ReKeyWord(string strs)
    {
        try
        {
            return strs.Replace(key, "<font style='color:#cc0000'>" + key + "</font>");
        }
        catch (Exception)
        {

            return strs;
        }

    }


}

#line default
#line hidden