|
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/ |
?#pragma checksum "D:\wwwroot\bgsciences\wwwroot\jishushow.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8F274975751E34378BDC0821CF2E16347C499FB1"
#line 1 "D:\wwwroot\bgsciences\wwwroot\jishushow.aspx.cs"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
public partial class jishushow : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!string.IsNullOrEmpty(Request.QueryString["id"]))
{
BindData(Request.QueryString["id"]);
}
}
}
protected void BindData(string id)
{
DataTable dt = SQLServerHelper.ExecuteTable("select *,(select sname from TB_FuWuClass where id = TB_FuWu.types) as typename,(select sname from TB_FuWuClass where id = TB_FuWu.fenlei) as typename2 from TB_FuWu where id = " + id);
if (dt != null && dt.Rows.Count > 0)
{
this.Title = dt.Rows[0]["title"].ToString() + "-技术服务-广州铂晋生物科技有限公司";
lt_type.Text = "> <a href=\"/jishu.aspx?t=" + dt.Rows[0]["types"] + "\"><span class=\"wz3\">" + dt.Rows[0]["typename"] + "</span></a>";
if (dt.Rows[0]["typename2"].ToString() != "")
{
lt_type.Text = "> <a href=\"/jishu.aspx?t=" + dt.Rows[0]["types"] + "\"><span class=\"wz3\">" + dt.Rows[0]["typename"] + "</span></a> > <a href=\"/jishu.aspx?t=" + dt.Rows[0]["types"] + "&f=" + dt.Rows[0]["fenlei"] + "\"><span class=\"wz3\">" + dt.Rows[0]["typename2"] + "</span></a>";
}
lt_name.Text = dt.Rows[0]["title"].ToString();
//lt_pic.Text = "<img src=\"" + dt.Rows[0]["pic"] + "\" width=\"794\" />";
lt_content.Text = dt.Rows[0]["contents"].ToString();
string sql = "update TB_FuWu set clickcount = (clickcount + 1) where id = " + id;
SQLServerHelper.execNonQuery(sql);
}
}
protected string BindType()
{
StringBuilder sb = new StringBuilder();
DataTable dt = SQLServerHelper.ExecuteTable("select * from TB_FuWuClass where fid = 0 order by id asc");
if (dt != null && dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
DataTable dtz = SQLServerHelper.ExecuteTable("select * from TB_FuWuClass where fid = " + dt.Rows[i]["id"] + " order by id asc");
if (dtz != null && dtz.Rows.Count > 0)
{
sb.Append("<li><a href=\"javascript:;\" class=\"subNav currentDd currentDt\">" + dt.Rows[i]["sname"] + "</a>");
sb.Append("<ul class=\"navContent\">");
for (int s = 0; s < dtz.Rows.Count; s++)
{
sb.Append("<li><a href=\"jishu.aspx?t=" + dt.Rows[i]["id"] + "&f=" + dtz.Rows[s]["id"] + "\">" + dtz.Rows[s]["sname"] + "</a></li>");
}
sb.Append("</ul>");
sb.Append("</li>");
}
else
{
sb.Append("<li><a href=\"jishu.aspx?t=" + dt.Rows[i]["id"] + "\">" + dt.Rows[i]["sname"] + "</a></li>");
}
}
}
return sb.ToString();
}
}
#line default
#line hidden