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


Current File : D:/tmp_aspnet/root/cae6aa2e/15328683/App_Web_o5rydil4.7.cs
?#pragma checksum "D:\wwwroot\anlian2025\wwwroot\UserControls\Foot.ascx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E7408C8860D00D75B943C16710567C8091F7F76A"

#line 1 "D:\wwwroot\anlian2025\wwwroot\UserControls\Foot.ascx.cs"
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.Data.SqlClient;
using WebApp.Components;
using basic;

public partial class Foot : System.Web.UI.UserControl
{
    public string strCompanyName = null;
    public string strAddress = null;
    public string strContact = null;
    public string strPhone = null;
    public string strMobile = null;
    public string strEmail = null;
    public string strFax = null;
    public string strQQ = null;
    public string strICP = null;

    public string strPath;
    public string strState;
    public DataSet dstQQ = new DataSet();
    public int intQQ;
    public string strQQList = null;

    public string strContent;
    public string strCodeState;

    public string strWebKeywords;

    public string strSupportName;
    public string strTitle;
    public string strWebSite;
    public string strSupportState;
    public string strStateManage;

    public string ContactUrl;
    public MyClass mc = new MyClass();
    public BasicPage bp = new BasicPage();
    protected void Page_Load(object sender, EventArgs e)
    {

        string userphone = "";
        try
        {
            userphone = Session["qzl_web_Name"].ToString();
        }
        catch (Exception ex)
        {
            userphone = "";
            strislogin = "1";
        }
        if (string.IsNullOrEmpty(userphone))
        {
            strislogin = "1";
        }
        else
        {
            showcart(userphone);
        }
        showShop();
        Common common = new Common();
        Contact contact = new Contact();
        contact = common.showContact();
        strCompanyName = contact.CompanyName;
        if (strCompanyName != "")
        {
            strCompanyName = strCompanyName + "  ";
        }
        strAddress = contact.Address;
        if (strAddress != "")
        {
            strAddress = "Contact address:" + strAddress + "  ";
        }
        strContact = contact.ContactName;
       
        strPhone = contact.Phone;
        if (strPhone != "")
        {
            strPhone = "Contact phone:" + strPhone + "  ";
        }

        strEmail = contact.Email;
        if (strEmail != "")
        {
            strEmail = "Contact email:" + strEmail + "  ";
        }
        strQQ = contact.QQ;
        
        strMobile = contact.Mobile;
        if (strMobile != "")
        {
            strMobile = "Contact mobile :" + strMobile + "  ";
        }
        strFax = contact.Fax;
        if (strFax != "")
        {
            strFax = "Contact Fax:" + strFax;
        }

        strICP = contact.ICP;
        if (strICP != "")
        {
            strICP = "&nbsp;&nbsp;ICP:<a href='http://beian.miit.gov.cn/' target=\"_blank\">" + strICP + "</a>";
        }
        ClientMusic clientmusic = new ClientMusic();
        clientmusic = common.showMusic();
        strPath = clientmusic.Path;
        strState = clientmusic.State;

        QQ qq = new QQ();
        SqlDataReader reader = qq.GetQQState();
        DataTable dtbl = SystemTools.ConvertDataReaderToDataTable(reader);
        dstQQ.Tables.Add(dtbl);
        intQQ = dstQQ.Tables[0].Rows.Count;

        for (int i = 0; i < intQQ; i++)
        {
            strQQList = strQQList + dstQQ.Tables[0].Rows[i]["qq"].ToString() + "|" + dstQQ.Tables[0].Rows[i]["name"].ToString() + ",";
        }
        if (intQQ > 0)
        {
            strQQList = strQQList.Substring(0, strQQList.Length - 1);
        }

        SetupCode setupcode = new SetupCode();
        setupcode = common.showSetupCode();

        strCodeState = setupcode.State;
        strContent = setupcode.Content;//显示第三方代码

        //显示SEO关键词
        ClientSEO clientseo = common.showSEO();
        strWebKeywords = clientseo.WebKeywords;

        //设置技术支持
        ClientSupport clientsupport = common.showSupport();
        strSupportName = clientsupport.SupportName;
        strTitle = clientsupport.Title;
        strWebSite = clientsupport.WebSite;
        strSupportState = clientsupport.State;
        strStateManage = clientsupport.StateManage;

        SqlDataReader myread = bp.getRead("select top 1 ColumnUrlClient from ColumnList where ColumnType='联系方式' order by ColumnNo desc,id asc");
        if (myread.Read())
        {
            ContactUrl = myread[0].ToString();
        }
        myread.Close();

        SqlDataReader myreadcus = bp.getRead("select * from Website where id=1");
        if (myreadcus.Read())
        {
            kehu_state = myreadcus["customer_show"].ToString();
            kehu_qq = myreadcus["customer_qq"].ToString();
            kehu_erweima = myreadcus["customer_erweima"].ToString();
            kehu_phone = myreadcus["customer_phone"].ToString();
            kehu_url = myreadcus["customer_url"].ToString();
            kehu_whatsapp = myreadcus["customer_whatsapp"].ToString();
            kehu_facebook = myreadcus["customer_facebook"].ToString();
            kehu_twitter = myreadcus["customer_twitter"].ToString();
        }
        myreadcus.Close();

        showLinks();
        showMenu();
    }
    public string kehu_url = "";
    public string kehu_qq = "";
    public string kehu_erweima = "";
    public string kehu_phone = "";
    public string kehu_state = "";
    public string kehu_whatsapp = "";
    public string kehu_facebook = "";
    public string kehu_twitter = "";
    public DataSet dstMenu = new DataSet();
    public int intMenu;
    private void showMenu()
    {
        dstMenu = bp.SelectDataBase("News", "select top 2 Id,ParentId,ColumnType,ColumnName,ColumnNo,ColumnUrlClient,ColumnStaticPage,StaticPage from ColumnList where ParentId=0 and IndexStatus=0 and id <>1 order by ColumnNo desc,Id asc");
        intMenu = dstMenu.Tables[0].Rows.Count;
    }
    public DataTable dtLinks = new DataTable();
    public int intLinks;
    protected void showLinks()
    {
        dtLinks = bp.SelectDataBase("Links", "select * from Links order by id desc").Tables[0];
        intLinks = dtLinks.Rows.Count;
    }
    public string strShop = "0";
    public string strislogin = "0";
    protected void showShop()
    {
        Time time = new Time();
        int intID = 1;
        SqlDataReader reader = time.GetTimeLimit(intID);
        if (reader.Read())
        {
            strShop = reader["SMSState"].ToString();
        }
        reader.Close();
    }
    public DataTable dtbcart = new DataTable();
    public int intcart;
    public void showcart(string Mac)
    {
        dtbcart = bp.SelectDataBase("news", "select * from shoppingcart where Userid='" + Mac + "' order by id desc").Tables[0];
        intcart = dtbcart.Rows.Count;
    }
    public DataTable dtblNews = new DataTable();
    public int intNews;
    public void showNews(int classid, int top)
    {
        dtblNews = bp.SelectDataBase("news", "select top " + top + " * from news where classid=" + classid + " and StaticPage<>'2' order by paixu desc,istop desc,convert(varchar(100),putdate,23) desc,id desc").Tables[0];
        intNews = dtblNews.Rows.Count;
    }
    public DataSet dstMenuSub = new DataSet();
    public int intMenuSub;
    protected void showMenuSub(int ID)
    {
        dstMenuSub = bp.SelectDataBase("News", "select Id,ParentId,ColumnType,ColumnName,ColumnNo,ColumnUrlClient,ColumnStaticPage,StaticPage from ColumnList where ParentId=" + ID + " and IndexStatus=0 order by ColumnNo desc,Id asc");
        intMenuSub = dstMenuSub.Tables[0].Rows.Count;
    }
}


#line default
#line hidden