using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Tradedetails : System.Web.UI.Page
{
public string lid = string.Empty;
public string proname = string.Empty;
public string keywords = string.Empty;
public string description = string.Empty;
public string details = string.Empty;
public string picture = string.Empty;
public string param = string.Empty;
public string payment = string.Empty;
public DataSet dsjsq = Fun.Funjsqid();
public string relatedstr = string.Empty;
public string MorePic = "";
public string classname = "";
public int classid = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["classid"] != null)
{
classid = Convert.ToInt32(Request.QueryString["classid"].ToString());
}
if (Request.QueryString["lid"] != null)
{
lid = Request.QueryString["lid"].ToString();
string website = Fun.Funtradeallxml() + "?id=" + lid + "&classid=" + classid + "";
DataSet ds = new DataSet();
try
{
ds.ReadXml(website);
if (ds.Tables.Count > 0)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
proname = Server.UrlDecode(ds.Tables[0].Rows[i]["proname"].ToString());
keywords = Server.UrlDecode(ds.Tables[0].Rows[i]["keywords"].ToString());
description = Fun.NoHTML(Server.UrlDecode(ds.Tables[0].Rows[i]["description"].ToString()));
details = Fun.NoHTML(Server.UrlDecode(ds.Tables[0].Rows[i]["details"].ToString()));
param = Cutparam(Server.UrlDecode(ds.Tables[0].Rows[i]["param"].ToString()));
payment = Server.UrlDecode(ds.Tables[0].Rows[i]["payment"].ToString());
if (payment != "")
{
payment = "Payment Terms : " + payment;
}
picture = ds.Tables[0].Rows[i]["picture"].ToString();
if (picture != "")
{
picture = "";
}
else
{
picture = "
";
}
splitpic(ds.Tables[0].Rows[i]["pictureall"].ToString());
if (classid != 0 && ds.Tables[0].Rows[i]["classname"].ToString() != "")
{
classname = "" + Server.UrlDecode(ds.Tables[0].Rows[i]["classname"].ToString()) + " »";
}
}
}
website = Fun.Funtradeotherxml() + "?jsqid=" + dsjsq.Tables[0].Rows[0]["jsqid"].ToString() + "&num=" + dsjsq.Tables[0].Rows[0]["detailswords"].ToString() + "&id=" + lid + "";
DataSet dss = new DataSet();
dss.ReadXml(website);
if (dss.Tables.Count > 0)//底部相关产品
{
for (int y = 0; y < dss.Tables[0].Rows.Count; y++)
{
string id = dss.Tables[0].Rows[y]["id"].ToString();
string csid = dss.Tables[0].Rows[y]["classid"].ToString();
string picture1 = Cutpic(dss.Tables[0].Rows[y]["picture"].ToString());
string contentstr = Server.UrlDecode(dss.Tables[0].Rows[y]["description"].ToString());
string titlename = Server.UrlDecode(dss.Tables[0].Rows[y]["name"].ToString());
relatedstr += "