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_yqxxwpax.7.cs
?#pragma checksum "D:\wwwroot\klbttc\wwwroot\control\top.ascx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "AC38FE0007703DD8F1FA7DB6023151AD4697B65D"

#line 1 "D:\wwwroot\klbttc\wwwroot\control\top.ascx.cs"
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class control_top : System.Web.UI.UserControl
{
    C c = new C();
    DataSet ds = new DataSet();
    public int menuid = 0;
    public int dqid = 0;
    public string nowTime = "";
    public int mid = 0;
    public string[] aboutvars = new string[6];
    public bool isIndexPage = false;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Url.AbsolutePath == "/index.aspx") isIndexPage = true;
        var reqParam = Request.QueryString;
        foreach (var item in reqParam.AllKeys)
        {
            if (item == "action" && Request.QueryString["action"].ToString() == "search")
            {
                Response.Redirect("/search.aspx?sv=" + Request.Form["searchKey"].ToString());
            }
            if (item == "mid")
            {
                var midStr = Request.QueryString["mid"].ToString();
                if (midStr.Length > 5)
                {
                    Response.Redirect("/");
                }
                mid = int.Parse(SqlKey.ReplaceUrlBadChar(midStr));
            }
        }

        //二维码
        //MyFunction.repeater(2, "link", "link5 = 80", " order by link6 asc", rep_links);
    }


    /// <summary>
    /// 获取分类子菜单  
    /// </summary>
    /// <param name="MainMenuId"></param>
    /// <returns></returns>
    public void setdata_class(string sql, Repeater rpt)
    {
        ds = c.GetDs(sql);
        if (ds.Tables.Count > 0)
        {
            if (ds.Tables[0].Rows.Count > 0)
            {
                rpt.DataSource = ds.Tables[0];
                rpt.DataBind();
            }
        }
    }

    /// <summary>
    /// 获取栏目子菜单  
    /// </summary>
    /// <param name="MainMenuId"></param>
    /// <returns></returns>
    public void setdata(int MainMenuId, Repeater rpt)
    {
        ds = c.GetDs(string.Format("select * from menusys where menusys3={0} and menusys9<>'classsys' and menusys11=0 order by menusys4 asc", MainMenuId));
        if (ds.Tables.Count > 0)
        {
            if (ds.Tables[0].Rows.Count > 0)
            {
                rpt.DataSource = ds.Tables[0];
                rpt.DataBind();
            }
        }
    }

    /// <summary>
    /// 获取当前功夫
    /// </summary>
    private void GetNowTime()
    {
        string[] weeks = { "星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
        nowTime = string.Format("{0}年{1}月{2}日 {3}", DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day,
            weeks[(int)DateTime.Now.DayOfWeek]);
    }
}

#line default
#line hidden