|
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/c87b3efd/cc6243dc/ |
?#pragma checksum "D:\wwwroot\zgyzd233com\wwwroot\PictureList.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2439E5DFD48EEA261BB293EBA05E8486"
#line 1 "D:\wwwroot\zgyzd233com\wwwroot\PictureList.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 System.Text;
public partial class PictureList : System.Web.UI.Page
{
UI ui = new UI();
public static int pagesize = 10;
private int categoryID;
public int CategoryID
{
get
{
if (Request["CategoryID"] != null)
return PageBase.getRequestID(Page, "CategoryID");
else
return 0;
}
set { categoryID = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string CategoryName = "搜索信息";
if (CategoryID > 0)
{
DataTable dt = SqlHelper.Query("select * from pCategory where CategoryID=" + CategoryID).Tables[0];
if (dt.Rows.Count > 0)
CategoryName = dt.Rows[0]["CategoryName"].ToString();
}
Master.Title = litsubject.Text =litsubject2.Text= CategoryName;
BindList();
}
}
void BindList()
{
StringBuilder sb = new StringBuilder();
sb.Append("IsJudge>0");
if (CategoryID > 0)
{
DataTable dt = SqlHelper.Query("select BoardID from PCategory where CategoryID=" + CategoryID).Tables[0];
if (dt.Rows.Count > 0)
{
if (dt.Rows[0][0].ToString() == "0")
sb.Append(" and BoardID=" + CategoryID);
else
sb.Append(" and CategoryID=" + CategoryID);
}
}
if (Request["keyword"] != null)
sb.Append(" and PName like '%" + Server.UrlDecode(Request["keyword"].Trim()) + "%'");
int pageindex;
if (Request.QueryString["page"] == null)
pageindex = 1;
else
pageindex = PageBase.getRequestID(Page, "page");
ui.BindRepeater(replist, SqlHelper.Query("select * from ProductInfo where " + sb.ToString() + " order by IsRecom DESC,OrderID DESC").Tables[0], pagesize, pageindex, labpageindex, labpagecount, labcount, oranPagerMain);
}
}
#line default
#line hidden