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/a99112df/ca2a8923/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/a99112df/ca2a8923/App_Web_pro1.aspx.cdcab7d2.-sd6nifs.1.cs
?#pragma checksum "D:\wwwroot\ldxynb\wwwroot\pro1.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "52C7F9ED8A4C4B81D6CA97A758C66E01"

#line 1 "D:\wwwroot\ldxynb\wwwroot\pro1.aspx.cs"
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using CoreClass;
using System.Data.OleDb;

public partial class pro1 : System.Web.UI.Page
{
    #region 界说
    public string newsHtml;
    public DBCommon DB = new DBCommon();
    public PublicFunction pubfun = new PublicFunction();
    yingshi dy = new yingshi();
    public int classid = 0;
    public int channelid = 0;


    public string classidname = "";

    public int classidss = 0;


    public string dddname = "";
    public string dddnamehref = "";

    public string tianlename = "";
    public string caddtimes = "";


    
    #endregion

    protected void Page_Load(object sender, EventArgs e)
    {

        if (pubfun.IsNumeric(Request.QueryString["classidss"])) this.classidss = Convert.ToInt32(Request.QueryString["classidss"]);
        if (pubfun.IsNumeric(Request.QueryString["classid"])) this.classid = Convert.ToInt32(Request.QueryString["classid"]);
        if (pubfun.IsNumeric(Request.QueryString["channelid"])) this.channelid = Convert.ToInt32(Request.QueryString["channelid"]);
        if (classid == 0) classid = pubfun.Gettopclassid(channelid);
        if (!IsPostBack)
        {
            ////交谊链接
            //pubfun.Bind(Repeater5, "select top 13 * from info where channelid=9 and recommend=true and Inspect=true order by addtime asc ");


            if (Request.QueryString["classid"] == null || Request.QueryString["classid"] == "")
            {
                classid = 0;
                if (Request.QueryString["channelid"] != null && Request.QueryString["channelid"].ToString() != "")
                {
                    channelid = Convert.ToInt32(Request.QueryString["channelid"].ToString());


                }

            }
            else
            {
                classid = Convert.ToInt32(Request.QueryString["classid"]);



                //Label1.Text = pubfun.Gettname(classid);

                classidname = pubfun.Gettname(classid);

                //


                //if (classid > 0)
                //{
                //    DataSet dtfelsanleit = dy.chaxun("select * from class where tid=" + classid);

                //    Repeater2.DataSource = dtfelsanleit.Tables[0].DefaultView;
                //    Repeater2.DataBind();
                //}




            }


            ////三类选中
            //if (Request.QueryString["classidss"] != null && Request.QueryString["classidss"] != "")
            //{
            //    Label1.Text = pubfun.Gettname(classidss);
            //    //classname.Text = classname.Text + ">" + pubfun.Gettname(classidss);
            //}
            ////classidss




            this.InitPage();


        }


    }

    private void InitPage()
    {


        if (channelid == 1)
        {
            dddname = "网络表演";
            dddnamehref = "product.aspx";
        }

        else if (channelid == 16)
        {
            dddname = "网络演出剧目 ";
            dddnamehref = "cases.aspx?channelid=16";
        }




        else if (channelid == 2)
        {
            dddname = "平台信息";
            dddnamehref = "newss.aspx?channelid=2";
        }









        if (Request.QueryString["id"] != null && Request.QueryString["id"].ToString() != "")
        {
            DataSet dt_xx = new DataSet();
            dt_xx = dy.chaxun("select * from Info where Infoid=" + Request.QueryString["id"].ToString() + "");
            if (dt_xx.Tables[0].Rows.Count > 0)
            {
                tianlename = this.L_bt.Text = dt_xx.Tables[0].Rows[0]["title"].ToString();
                //this.L_zz.Text = dt_xx.Tables[0].Rows[0][""].ToString();
                caddtimes = dt_xx.Tables[0].Rows[0]["Addtime"].ToString();
                this.L_nr.Text = dt_xx.Tables[0].Rows[0]["Content"].ToString().Replace("width", "");

                ////判断是否是红头文件
                //if (dt_xx.Tables[0].Rows[0]["title"].ToString().IndexOf("|") > -1)
                //{
                //    Response.Redirect("hongtou.aspx?id=" + Request.QueryString["id"].ToString());
                //}

                if (classidname=="")
                {
                    DataSet dtss = new DataSet();
                    dtss = dy.chaxun("select * from class where classid=" + dt_xx.Tables[0].Rows[0]["classid"].ToString());
                    if (dtss.Tables[0].Rows.Count>0)
                    {
                        classidname = dtss.Tables[0].Rows[0]["classname"].ToString();
                    }
                
                }


            }


            int idds33 = 0;
            if (classidss > 0)
            {
                idds33 = classidss;
            }
            else if (classid > 0)
            {
                idds33 = classid;
            }


            //if (idds33 > 0)
            //{
            //    DataSet dataxgcp = dy.chaxun("select * from info where classid=" + idds33 + " order by ordernum desc,addtime desc");


            //    Repeater1.DataSource = dataxgcp.Tables[0].DefaultView;
            //    Repeater1.DataBind();
            //}




        }



    }


    public bool shifouxz(string classid34433ss)
    {

        if (classid34433ss == classidss.ToString())
        {
            return true;
        }
        else
        {
            return false;
        }


    }


    public bool shifouxaaz(string classid333ss)
    {

        if (classid333ss == classidss.ToString())
        {
            return false;

        }
        else
        {
            return true;
        }


    }


    public bool gaibai_ur2l(string strss)
    {

        if (strss.Replace("#", "").Replace(" ", "").Replace("http://", "") == "")
        {
            return false;
        }
        else
        {
            return true;
        }


    }




}


#line default
#line hidden