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/bc799001/4fb1bdec/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/bc799001/4fb1bdec/App_Web_2vsel4fi.7.cs
?#pragma checksum "D:\wwwroot\lmturbo\wwwroot\fr\Product.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "D0D490E7893635B3EB9A1D76C320AB300D6BE9F6"

#line 1 "D:\wwwroot\lmturbo\wwwroot\fr\Product.aspx.cs"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using StarBLL;
using StarModel;

public partial class FR_Product : System.Web.UI.Page
{
    private SEOBll seoBll = new SEOBll();
    private NewsBll newsBll = new NewsBll();
    private ProductBll productBll = new ProductBll();
    public string tit, key, des;
    public string comstr, comimage;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HttpCookie lmcookie = Request.Cookies["lmcookie"];
            if (lmcookie != null)
            {
                GetDateBind(lmcookie);
            }
            else
            {
                Response.Redirect("Index.aspx");
            }
        }
    }
    private void GetDateBind(HttpCookie lmcookie)
    {
        try
        {
            News news = newsBll.GetNewsWhere("where Cid =" + Request["cid"] + " and State = -1 and Site = " + lmcookie.Values["lmsite"]);
            if (news != null)
            {
                comstr = news.Content;
                comimage = "../Pictures/News/" + news.Image;
            }
            QX_rept();
            #region 三身分
            SEO seo = seoBll.GetSEOByCid(Request["cid"], lmcookie.Values["lmsite"]);
            SEO seo1 = seoBll.GetSEOByCid("0", lmcookie.Values["lmsite"]);
            if (seo != null)
            {
                tit = seo.Title.ToString();
                key = seo.Description.ToString();
                des = seo.KeyWord.ToString();
            }
            else if (seo1 != null)
            {
                tit = seo1.Title.ToString();
                key = seo1.Description.ToString();
                des = seo1.KeyWord.ToString();
            }
            else
            {
                tit = "";
                key = "";
                des = "";
            }
            #endregion
        }
        catch (Exception)
        {
        }
    }

    #region 分页
    //分页
    public void QX_rept()
    {
        HttpCookie lmcookie = Request.Cookies["lmcookie"];
        PagedDataSource pds = new PagedDataSource();
        IList<StarModel.Product> list = productBll.GetProductAll("where Product_Cid in ( select Id from [Column] where Cid = " + Request["cid"] + ") and IsTop = 1 and State = -1 and Site = " + lmcookie.Values["lmsite"] + " Order by Sort desc,Product_Id desc");
        if (list.Count > this.AspNetPager1.PageSize)
        {
            fy.Visible = true;
        }
        else
        {
            fy.Visible = false;
        }
        this.AspNetPager1.RecordCount = list.Count;
        pds.DataSource = list;
        pds.AllowPaging = true;
        pds.PageSize = this.AspNetPager1.PageSize;
        pds.CurrentPageIndex = this.AspNetPager1.CurrentPageIndex - 1;
        ProductRp.DataSource = pds;
        ProductRp.DataBind();
    }
    protected void pager1_PageChanged(object sender, EventArgs e)
    {
        QX_rept();
    }
    #endregion
    //是否最新
    public string GetNews(string istop,int inx) {
        string res = "";
        if (istop == "1") {
            if (inx<5)
            {
                res = "<div class=\"cp_content\">HOT</div>";
            }
            else {
                res = "<div class=\"cp_content_blue\">NEW</div>";
            }
        }
        return res;
    }
}

#line default
#line hidden