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/712bd9e6/ca967f19/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/712bd9e6/ca967f19/App_Web_ckft0hmx.5.cs
?#pragma checksum "D:\wwwroot\bgsciences\wwwroot\Master.master.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "13D9A540C097EC248D27EC56531FA33D8D2FB39C"

#line 1 "D:\wwwroot\bgsciences\wwwroot\Master.master.cs"
using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;

public partial class Master : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindBanner();
        }
    }
    protected void BindBanner()
    {
        DataTable dt = SQLServerHelper.ExecuteTable("select top 5 * from TB_Link where types = 1 order by orders desc,id asc");
        if (dt != null && dt.Rows.Count > 0)
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                if (dt.Rows[i]["url"].ToString() == "")
                {
                    sb.Append("<li style=\"background: url('/" + dt.Rows[i]["pic"] + "') no-repeat center top\"></li>");
                }
                else
                {
                    sb.Append("<li style=\"background: url('/" + dt.Rows[i]["pic"] + "') no-repeat center top\"><a href=\"" + dt.Rows[i]["url"] + "\" target=\"_blank\"></a></li>");
                }
            }
            lt_banner.Text = sb.ToString();
        }
    }

    protected string BindContactByType(int type)
    {
        string strcontent = string.Empty;
        DataTable dt = SQLServerHelper.ExecuteTable("select contents from TB_About where lg = 1 and types = " + type + "");
        if (dt.Rows.Count > 0)
        {
            strcontent = dt.Rows[0]["contents"].ToString();
        }
        return strcontent;
    }

    protected void bt_search_Click(object sender, EventArgs e)
    {
        string key = txt_key.Text.Trim();
        if (key != "")
        {
            Response.Redirect("product.aspx?k=" + key + "");
        }
    }
}


#line default
#line hidden