<%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="V5Shop.Web.product" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="V5Shop.Common" %>
<%@ Import namespace="Microsoft.Practices.EnterpriseLibrary.Caching" %>
<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by V5Shop Template Engine at 2009-5-15 23:25:08.
		本页面代码由V5Shop模板引擎生成于 2009-5-15 23:25:08. 
	*/

	base.OnInit(e);
	
	int productsearch__loop__id=0;
	int keysearch__loop__id=0;
	int productdetail__loop__id=0;
	int imgsearch__loop__id=0;
	int selfpropertysearchnew__loop__id=0;
	int propertysearchnew__loop__id=0;
	int fittingsearch__loop__id=0;
	int productactsearch__loop__id=0;
	int productreview__loop__id=0;
	int productlink__loop__id=0;
	int productviewnext__loop__id=0;
	int mallarticle__loop__id=0;
	int helpcategorysearch__loop__id=0;
	int helpsearchbyid__loop__id=0;
	int imglinksearch__loop__id=0;
	int wordlinksearch__loop__id=0;
	int infosearch__loop__id=0;templateBuilder.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTmL 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
	templateBuilder.Append("<!--Created Page at 2008-8-8 18:47:50,by V5Shop.com.cn   V5Shop Management Systeme 8.0-->\r\n");
	templateBuilder.Append("<html>\r\n");
	templateBuilder.Append("    <head><base href=\"http://localhost/0418/template/default/\" />\r\n");
	templateBuilder.Append("        <meta content=\"text/html;charset=utf-8\" http-equiv=\"Content-Type\" />\r\n");
	templateBuilder.Append("<title>" + shoptitle.ToString() + "</title>\r\n");
	templateBuilder.Append("<meta name=\"keywords\" content=\"" + keywords.ToString() + "\" />\r\n");
	templateBuilder.Append("<meta name=\"description\" content=\"" + description.ToString() + "\" />\r\n");
	templateBuilder.Append("<script language=\"javascript\" src=\"js/common.js\" type=\"text/javascript\"></"+"script>\r\n");
	templateBuilder.Append("<link href=\"css/css.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n");
	templateBuilder.Append("<link rel=\"shortcut icon\" href=\"/0418/favicon.ico\" />\r\n");
	templateBuilder.Append("        <link href=\"css/css_cate.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n");
	templateBuilder.Append("		<script language=\"javascript\" type=\"text/javascript\" src=\"../public/js/prototype.js\"></"+"script>\r\n");
	templateBuilder.Append("		<script language=\"javascript\" type=\"text/javascript\" src=\"../public/js/product.js\"></"+"script>\r\n");
	templateBuilder.Append("    </head>\r\n");
	templateBuilder.Append("    <body text=\"#000000\" bottommargin=\"0\" vlink=\"#0000cc\" alink=\"#ff6600\" link=\"#0000cc\" leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\">\r\n");
	templateBuilder.Append("        <center><div class=\"top1\"><div style=\"height:60px; overflow:hidden; float:left\"><div id=\"newobj\">\r\n");
	
	productsearch__loop__id=0;
	foreach(DataRow productsearch_member in getTable("productsearch","0,5,0,0,OrderID,ASC,0,0,0,[id]$[name]$[srcdetail]$[marketprice]$[memberprice],1,["+wd+"],["+vid+"],["+pid+"],["+brandid+"],[0],[0],["+startprice+"],["+endprice+"],["+shortname+"]").Rows)
	{
	if(productsearch__loop__id == 5 && productsearch__loop__id != 0) break;
		productsearch__loop__id++;
	templateBuilder.Append("<div class='top1l'><div class=\"top1l\">\r\n");
	templateBuilder.Append("<div class=\"top1ll\"><a target=\"_blank\" href=\"/0418/product.aspx?id=" + productsearch_member["id"].ToString() + "\"><img height=\"50\" alt=\"" + left(productsearch_member["name"].ToString(),10) + "\" width=\"50\" border=\"0\" src='" + gettmpimg(productsearch_member["srcdetail"].ToString(),50,50) + "' width='50' height='50'  /></a></div>\r\n");
	templateBuilder.Append("<div class=\"top1lr\"><b><a target=\"_blank\" href=\"/0418/product.aspx?id=" + productsearch_member["id"].ToString() + "\">" + left(productsearch_member["name"].ToString(),10) + "</a></b><br />\r\n");
	templateBuilder.Append("<s>￥" + productsearch_member["marketprice"].ToString() + "</s> &rarr; <font color=\"#ff6600\">￥" + productsearch_member["memberprice"].ToString() + "</font></div>\r\n");
	templateBuilder.Append("</div></div>\r\n");
	
	}	//end loop
	templateBuilder.Append("</div></div><script language=\"javascript\" type=\"text/javascript\">\r\n");
	templateBuilder.Append("var speed1 = 11;\r\n");
	templateBuilder.Append("var start1 = 0;\r\n");
	templateBuilder.Append("var end1 = -60;\r\n");
	templateBuilder.Append("var totolnum = 4;\r\n");
	templateBuilder.Append("var per = -60;\r\n");
	templateBuilder.Append("var timer = 5000;\r\n");
	templateBuilder.Append("function Moveup(){\r\n");
	templateBuilder.Append("var obj1 = document.getElementById(\"newobj\");\r\n");
	templateBuilder.Append("start1 = start1 - speed1\r\n");
	templateBuilder.Append("speed1--;\r\n");
	templateBuilder.Append("obj1.style.marginTop = start1 + \"px\";\r\n");
	templateBuilder.Append("if(start1 > end1){\r\n");
	templateBuilder.Append("setTimeout(\"Moveup()\",6);\r\n");
	templateBuilder.Append("}else{\r\n");
	templateBuilder.Append("if(totolnum*per == end1){\r\n");
	templateBuilder.Append("obj1.style.marginTop = \"0px\";\r\n");
	templateBuilder.Append("start1 = 0;\r\n");
	templateBuilder.Append("end1 = per;\r\n");
	templateBuilder.Append("}else{\r\n");
	templateBuilder.Append("obj1.style.marginTop = end1 + \"px\";\r\n");
	templateBuilder.Append("end1 = end1 + per;\r\n");
	templateBuilder.Append("}\r\n");
	templateBuilder.Append("speed1 = 11;\r\n");
	templateBuilder.Append("setTimeout(\"Moveup()\",timer);\r\n");
	templateBuilder.Append("}\r\n");
	templateBuilder.Append("}\r\n");
	templateBuilder.Append("setTimeout(\"Moveup()\",timer);\r\n");
	templateBuilder.Append("</"+"script>\r\n");
	templateBuilder.Append("<div class=\"toplogo\"><a href=\"" + logourl.ToString() + "\"><img alt=\"\" width=\"236\" border=\"0\" src=\"" + logo.ToString() + "\" /></a></div>\r\n");
	templateBuilder.Append("<div class=\"top1r\"><a href=\"/0418/mallindex.aspx\"><img alt=\"\" border=\"0\" src=\"images/top/key_shop.gif\" /></a><a href=\"/0418/articleindex.aspx\"><img alt=\"\" border=\"0\" src=\"images/top/key_events.gif\" /></a><a href=\"/0418/message.aspx\"><img alt=\"\" border=\"0\" src=\"images/top/key_message.gif\" /></a><a href=\"/0418/content.aspx?wd=about\"><img alt=\"\" border=\"0\" src=\"images/top/key_about.gif\" /></a><a href=\"/0418/content.aspx?wd=contact\"><img alt=\"\" border=\"0\" src=\"images/top/key_contact.gif\" /></a></div>\r\n");
	templateBuilder.Append("</div><div class=\"top2\"><div class=\"lanmudefault\"><a href=\"/0418/index.aspx\" name=\"topurl\"><span>首页</span></a></div><div class=\"lanmudefault\"><a href=\"/0418/brandindex.aspx\" name=\"topurl\"><span>品牌</span></a></div><div class=\"lanmudefault\"><a href=\"/0418/activityindex.aspx\" name=\"topurl\"><span>活动</span></a></div><div class=\"lanmudefault\"><a href=\"/0418/guideindex.aspx\" name=\"topurl\"><span>导购</span></a></div><div class=\"lanmudefault\"><a href=\"/0418/couponindex.aspx\" name=\"topurl\"><span>优惠券</span></a></div><div class=\"lanmudefault\"><a href=\"/0418/scoreindex.aspx\" name=\"topurl\"><span>兑换</span></a></div><div class=\"lanmudefault\"><a href=\"/0418/groupbuyindex.aspx\" name=\"topurl\"><span>团购</span></a></div><div class=\"lanmudefault\"><a class=\"end\" href=\"/0418/snatchindex.aspx\" name=\"topurl\"><span>夺宝奇兵</span></a></div><div class=\"top2r\"><script language=\"javascript\">\r\n");
	templateBuilder.Append("function showmenu(){\r\n");
	templateBuilder.Append("    var url = document.URL;\r\n");
	templateBuilder.Append("    \r\n");
	templateBuilder.Append("    var urls = document.getElementsByName(\"topurl\");\r\n");
	templateBuilder.Append("    for(var i=0;i<urls.length;i++){\r\n");
	templateBuilder.Append("        if(urls[i] == url){\r\n");
	templateBuilder.Append("            urls[i].parentNode.className = 'lanmuselect';\r\n");
	templateBuilder.Append("			return;\r\n");
	templateBuilder.Append("        }\r\n");
	templateBuilder.Append("    }\r\n");
	templateBuilder.Append("	\r\n");
	templateBuilder.Append("	urls[0].parentNode.className = 'lanmuselect';\r\n");
	templateBuilder.Append("}\r\n");
	templateBuilder.Append("\r\n");
	templateBuilder.Append("showmenu();\r\n");
	templateBuilder.Append("</"+"script>\r\n");
	templateBuilder.Append("<script language=\"javascript\" type=\"text/javascript\" src=\"/0418/js_userinfo.aspx?p=" + pagenow.ToString() + "\"></"+"script>&nbsp;&nbsp;&nbsp;&nbsp; <a target=\"_blank\" href=\"/0418/member/\">会员之家</a> | <a target=\"_blank\" href=\"/0418/cart.aspx\">购物车</a> | <a target=\"_blank\" href=\"/0418/helpindex.aspx\">帮助中心</a></div></div><div class=\"top3\">\r\n");
	templateBuilder.Append("  <div class=\"top3m\">\r\n");
	templateBuilder.Append("    <div class=\"top3ml\"><a href=\"/0418/mallindex.aspx\"><img alt=\"\" border=\"0\" src=\"images/top/catelabel.gif\" /></a></div>\r\n");
	templateBuilder.Append("    <div class=\"top3mm\">\r\n");
	templateBuilder.Append("	<script language=\"javascript\">var spath = '/0418/';</"+"script>\r\n");
	templateBuilder.Append("	<script language=\"javascript\" src=\"js/changeType.js\"></"+"script>\r\n");
	templateBuilder.Append("      <form id=\"searchform\" action=\"/0418/list.aspx\" onsubmit=\"changeURL()\">\r\n");
	templateBuilder.Append("        <select id=\"SearchType\" onchange=\"document.getElementById('searchform').action = this.options[this.selectedIndex].value\">\r\n");
	templateBuilder.Append("          <option value=\"/0418/list.aspx\" selected=\"selected\">查询商品</option>\r\n");
	templateBuilder.Append("          <option value=\"/0418/articlelist.aspx\">查询文章</option>\r\n");
	templateBuilder.Append("          <option value=\"/0418/shippingadvice.aspx\">发货通知</option>\r\n");
	templateBuilder.Append("        </select>\r\n");
	templateBuilder.Append("        <input class=\"input\" name=\"wd\" type=\"text\" />\r\n");
	templateBuilder.Append("        <input style=\"vertical-align: bottom\" type=\"image\" src=\"images/top/searchkey.gif\" />\r\n");
	templateBuilder.Append("      </form>\r\n");
	templateBuilder.Append("	  <script language=\"javascript\">ChooseSelect()</"+"script>\r\n");
	templateBuilder.Append("    </div>\r\n");
	templateBuilder.Append("    <div class=\"top3mr\">\r\n");
	
	keysearch__loop__id=0;
	foreach(DataRow keysearch_member in getTable("keysearch","0").Rows)
	{
	if(keysearch__loop__id == 6 && keysearch__loop__id != 0) break;
		keysearch__loop__id++;
	templateBuilder.Append("<a title=\"" + left(keysearch_member["name"].ToString(),6) + "\" href=\"/0418/list.aspx?wd=" + keysearch_member["EncodeName"].ToString() + "\" style=\"color:white;\">" + left(keysearch_member["name"].ToString(),6) + "</a>\r\n");
	
	}	//end loop
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("  </div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("\r\n");
	templateBuilder.Append("        <div class=\"address2\"><b>您的位置</b> " + pathstr.ToString() + "</div>\r\n");
	templateBuilder.Append("        <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"0\"><tr>\r\n");
	
	productdetail__loop__id=0;
	foreach(DataRow productdetail_member in getTable("productdetail","["+cid+"],[id]$[number]$[name]").Rows)
	{
	if(productdetail__loop__id == 1 && productdetail__loop__id != 0) break;
		productdetail__loop__id++;
	templateBuilder.Append("<td><div class=\"proname\"><span>[ " + productdetail_member["number"].ToString() + " ]</span> " + left(productdetail_member["name"].ToString(),0) + "</div>\r\n");
	templateBuilder.Append("</td>\r\n");
	
	if((productdetail__loop__id % 1 == 0)){
	templateBuilder.Append("</tr><tr>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</tr></table>\r\n");
	templateBuilder.Append("        <div class=\"promiddle\">\r\n");
	templateBuilder.Append("        <div class=\"promiddle1\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"0\"><tr>\r\n");
	
	productdetail__loop__id=0;
	foreach(DataRow productdetail_member in getTable("productdetail","["+cid+"],[id]$[srcdetail]").Rows)
	{
	if(productdetail__loop__id == 1 && productdetail__loop__id != 0) break;
		productdetail__loop__id++;
	templateBuilder.Append("<td><a target=\"_blank\" href=\"/0418/product.aspx?id=" + productdetail_member["id"].ToString() + "\"><img alt=\"\" border=\"0\" src='" + gettmpimg(productdetail_member["srcdetail"].ToString(),280,280) + "' width='280' height='280'  /></a><br />\r\n");
	templateBuilder.Append("<a target=\"_blank\" href='" + gettmpimg(productdetail_member["srcdetail"].ToString(),0,0) + "' target=\"_blank\"><img height=\"16\" alt=\"\" width=\"85\" border=\"0\" src=\"images/products/zoom.gif\" /></a><br />\r\n");
	templateBuilder.Append("</td>\r\n");
	
	if((productdetail__loop__id % 1 == 0)){
	templateBuilder.Append("</tr><tr>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</tr></table>\r\n");
	templateBuilder.Append("    <div>\r\n");
	templateBuilder.Append("	  <ul>\r\n");
	
	imgsearch__loop__id=0;
	foreach(DataRow imgsearch_member in getTable("imgsearch","["+cid+"],[id]$[src]").Rows)
	{
	if(imgsearch__loop__id == 0 && imgsearch__loop__id != 0) break;
		imgsearch__loop__id++;
	templateBuilder.Append("<li><a target=\"_blank\" href=\"/0418/" + imgsearch_member["src"].ToString() + "\" rel=lightbox[plants]><img alt=\"\" border=\"0\" src='" + gettmpimg(imgsearch_member["src"].ToString(),60,60) + "' width='60' height='60'  /></a></li>\r\n");
	
	if((imgsearch__loop__id % 10 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("<link rel='stylesheet' href='../public/js/photojs/pic-css/lightbox.css' type='text/css' media='screen' /><script src='../public/js/prototype.js' type='text/javascript'></"+"script><script src='../public/js/photojs/pic-js/scriptaculous.js?load=effects' type='text/javascript'></"+"script><script src='../public/js/photojs/pic-js/lightbox.js' type='text/javascript'></"+"script></ul>\r\n");
	templateBuilder.Append("	  \r\n");
	templateBuilder.Append("	  <link rel='stylesheet' href='/js/photojs/pic-css/lightbox.css' type='text/css' media='screen' />\r\n");
	templateBuilder.Append("		<script src='/js/photojs/pic-js/prototype.js' type='text/javascript'></"+"script>\r\n");
	templateBuilder.Append("		<script src='/js/photojs/pic-js/scriptaculous.js?load=effects' type='text/javascript'></"+"script>\r\n");
	templateBuilder.Append("		<script src='/js/photojs/pic-js/lightbox.js' type='text/javascript'></"+"script>\r\n");
	templateBuilder.Append("	  <br clear=\"all\" />\r\n");
	templateBuilder.Append("    </div></div>\r\n");
	templateBuilder.Append("        <div class=\"promiddle2\"><div class=\"promiddle2a\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"0\"><tr>\r\n");
	
	productdetail__loop__id=0;
	foreach(DataRow productdetail_member in getTable("productdetail","["+cid+"],[id]$[marketprice]$[memberprice]$[score]$[changescore]$[storage]$[unit]$[buynum]$[weight]$[brandname]$[brandid]").Rows)
	{
	if(productdetail__loop__id == 1 && productdetail__loop__id != 0) break;
		productdetail__loop__id++;
	templateBuilder.Append("<td><div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　市场价格</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\">￥" + productdetail_member["marketprice"].ToString() + "</div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　商城价格</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\"><b style=\"font-size: 18px; color: #ff9900\">￥" + productdetail_member["memberprice"].ToString() + "</b> <!--商城让利20%--></div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　会员价格</div>\r\n");
	templateBuilder.Append("  	<div class=\"promiddle2sr\"><b style=\"font-size: 18px; color: #12a7ab\">￥<span id=\"detailprice\">" + productdetail_member["memberprice"].ToString() + "</span></b> </div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　赠送积分</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\" style=\"font-weight: bolder; color: #858585\">" + productdetail_member["score"].ToString() + " .score</div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　兑换积分</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\" style=\"font-weight: bolder; color: #ee3300\">" + productdetail_member["changescore"].ToString() + " .score</div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　库存</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\">" + productdetail_member["storage"].ToString() + " " + productdetail_member["unit"].ToString() + " <input id=\"storage\" type=\"hidden\" value=\"" + productdetail_member["storage"].ToString() + "\" /></div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　起购数量</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\">" + productdetail_member["buynum"].ToString() + " " + productdetail_member["unit"].ToString() + " <input id=\"buynum\" type=\"hidden\" value=\"" + productdetail_member["buynum"].ToString() + "\" /></div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　重量</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\">" + productdetail_member["weight"].ToString() + "KG </div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("\r\n");
	
	if(productdetail_member["brandid"].ToString()!= "0"){
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sl\">　商品品牌</div>\r\n");
	templateBuilder.Append("  <div class=\"promiddle2sr\">" + productdetail_member["brandname"].ToString() + " <a title=\"" + productdetail_member["brandname"].ToString() + "\" href=\"/0418/brand.aspx?id=" + productdetail_member["brandid"].ToString() + "\"><img alt=\"\" align=\"absMiddle\" src=\"images/products/detail_brand.gif\" /></a></div>\r\n");
	templateBuilder.Append("</div>\r\n");
	
	}	//end if
	templateBuilder.Append("</td>\r\n");
	
	if((productdetail__loop__id % 2 == 0)){
	templateBuilder.Append("</tr><tr>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</tr></table> \r\n");
	templateBuilder.Append("\r\n");
	
	selfpropertysearchnew__loop__id=0;
	foreach(DataRow selfpropertysearchnew_member in getTable("selfpropertysearchnew","["+cid+"],[id]$[name]$[value]").Rows)
	{
	if(selfpropertysearchnew__loop__id == 10 && selfpropertysearchnew__loop__id != 0) break;
		selfpropertysearchnew__loop__id++;
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("<div class=\"promiddle2sl\">　" + left(selfpropertysearchnew_member["name"].ToString(),0) + "</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2sr\">" + selfpropertysearchnew_member["value"].ToString() + "</div>\r\n");
	templateBuilder.Append("</div>\r\n");
	
	}	//end loop
	templateBuilder.Append("\r\n");
	templateBuilder.Append("<br clear=\"all\" />\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2a\">\r\n");
	
	propertysearchnew__loop__id=0;
	foreach(DataRow propertysearchnew_member in getTable("propertysearchnew","["+cid+"],[id]$[name]$[value]").Rows)
	{
	if(propertysearchnew__loop__id == 0 && propertysearchnew__loop__id != 0) break;
		propertysearchnew__loop__id++;
	templateBuilder.Append("<div class=\"promiddle2s\">\r\n");
	templateBuilder.Append("<div class=\"promiddle2sl\">　" + left(propertysearchnew_member["name"].ToString(),30) + "</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2sr\">" + propertysearchnew_member["value"].ToString() + "</div>\r\n");
	templateBuilder.Append("</div>\r\n");
	
	}	//end loop
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2bfit\">\r\n");
	
	fittingsearch__loop__id=0;
	foreach(DataRow fittingsearch_member in getTable("fittingsearch","["+cid+"]").Rows)
	{
	if(fittingsearch__loop__id == 0 && fittingsearch__loop__id != 0) break;
		fittingsearch__loop__id++;
	templateBuilder.Append("<div class=\"promiddle2sfit\">\r\n");
	templateBuilder.Append("<div class=\"promiddle2slfit\">　" + fittingsearch_member["name"].ToString() + "</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle2srfit\">" + fittingsearch_member["value"].ToString() + "</div>\r\n");
	templateBuilder.Append("</div>\r\n");
	
	}	//end loop
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<input id=\"outofstock\" type=\"hidden\" value=\"" + outofstock.ToString() + "\" /> <script language=\"javascript\">GetPriceDetail('/0418/','" + cid.ToString() + "');</"+"script><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"0\"><tr>\r\n");
	
	productdetail__loop__id=0;
	foreach(DataRow productdetail_member in getTable("productdetail","["+cid+"],[id]$[ischanged]").Rows)
	{
	if(productdetail__loop__id == 1 && productdetail__loop__id != 0) break;
		productdetail__loop__id++;
	templateBuilder.Append("<td><input id=\"outofstock\" type=\"hidden\" value=\"" + outofstock.ToString() + "\" />\r\n");
	templateBuilder.Append("&nbsp;\r\n");
	templateBuilder.Append("<script language=\"javascript\">GetPriceDetail('/0418/','" + cid.ToString() + "');</"+"script>\r\n");
	templateBuilder.Append("<div class=\"promiddle2c\">\r\n");
	templateBuilder.Append("  <input id=\"proid\" type=\"hidden\" name=\"proid\" value=\"" + productdetail_member["id"].ToString() + "\" />\r\n");
	templateBuilder.Append("  <input type=\"image\" src=\"images/products/BUYKEY.gif\" onclick=\"return selectid('/0418/')\" />\r\n");
	templateBuilder.Append("  &nbsp; \r\n");
	templateBuilder.Append("  \r\n");
	  
	if(productdetail_member["ischanged"].ToString()== "1"){
	 templateBuilder.Append("  <a target=\"_blank\" href=\"/0418/cart.aspx?act=score&amp;id=" + productdetail_member["id"].ToString() + "\"><img alt=\"\" border=\"0\" src=\"images/products/SCOREKEY.gif\" /></a> \r\n");
	  
	}	//end if
	 templateBuilder.Append("  <a target=\"_blank\" href=\"/0418/cart.aspx?act=collect&id=" + productdetail_member["id"].ToString() + "\"><img alt=\"\" border=\"0\" src=\"images/products/COLLECTKEY.gif\" /></a> <a href=\"mailto:\"><img alt=\"\" border=\"0\" src=\"images/products/COMMENDKEY.gif\" /></a> " + kftbutton.ToString() + "</div>\r\n");
	templateBuilder.Append("\r\n");
	templateBuilder.Append("</td>\r\n");
	
	if((productdetail__loop__id % 2 == 0)){
	templateBuilder.Append("</tr><tr>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</tr></table>" + kft.ToString() + "</div>\r\n");
	templateBuilder.Append("        <div class=\"promiddle3\"><script language=\"javascript\" src=\"Show/5adab5b9-92d1-472b-a59e-5c6cc0223f1c.js\"></"+"script><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"0\"><tr>\r\n");
	
	productdetail__loop__id=0;
	foreach(DataRow productdetail_member in getTable("productdetail","["+cid+"],[id]$[starcount]$[buycount]$[hitcount]$[collectcount]$[reviewcount]").Rows)
	{
	if(productdetail__loop__id == 1 && productdetail__loop__id != 0) break;
		productdetail__loop__id++;
	templateBuilder.Append("<td><img alt=\"\" src=\"images/products/label_comment.gif\" />\r\n");
	templateBuilder.Append("<div class=\"promiddle3t\"><img alt=\"\" src=\"images/products/vprolbgt.gif\" /></div>\r\n");
	templateBuilder.Append("<div class=\"promiddle3a\"><span><img alt=\"\" src=\"images/products/star" + productdetail_member["starcount"].ToString() + ".gif\" /></span><br /><br />\r\n");
	templateBuilder.Append("  <a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi3\"><img alt=\"我要评论\" src=\"images/products/key_comment.gif\" /></a></div>\r\n");
	templateBuilder.Append("<div class=\"promiddle3b\"><img alt=\"\" src=\"images/products/vprolbgb.gif\" /></div>\r\n");
	templateBuilder.Append("<img alt=\"\" src=\"images/products/label_account.gif\" />\r\n");
	templateBuilder.Append("<div class=\"promiddle3t\"><img alt=\"\" src=\"images/products/vprolbgt.gif\" /></div>\r\n");
	templateBuilder.Append("<div class=\"promiddle3a\"><img alt=\"\" src=\"images/icon/hoticon.gif\" /><img alt=\"\" src=\"images/icon/newicon.gif\" />\r\n");
	templateBuilder.Append("  <div>购买量 <img height=\"10\" alt=\"\" src=\"images/products/blue.gif\" /> " + productdetail_member["buycount"].ToString() + "<br />\r\n");
	templateBuilder.Append("    浏览量 <img height=\"10\" alt=\"\" src=\"images/products/blue.gif\" /> " + productdetail_member["hitcount"].ToString() + "<br />\r\n");
	templateBuilder.Append("    收藏量 <img height=\"10\" alt=\"\" src=\"images/products/blue.gif\" /> " + productdetail_member["collectcount"].ToString() + "<br />\r\n");
	templateBuilder.Append("    评论量 <img height=\"10\" alt=\"\" src=\"images/products/blue.gif\" /> " + productdetail_member["reviewcount"].ToString() + "</div>\r\n");
	templateBuilder.Append("  <!--<div><img alt=\"\" src=\"images/products/key_tgsp.gif\" /> <img alt=\"\" src=\"images/products/key_dbqb.gif\" /> <img alt=\"\" src=\"images/products/key_nomaul.gif\" /> <img alt=\"\" src=\"images/products/key_score.gif\" /></div>-->\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"promiddle3b\"><img alt=\"\" src=\"images/products/vprolbgb.gif\" /></div>\r\n");
	templateBuilder.Append("\r\n");
	templateBuilder.Append("</td>\r\n");
	
	if((productdetail__loop__id % 2 == 0)){
	templateBuilder.Append("</tr><tr>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</tr></table></div>\r\n");
	templateBuilder.Append("        <br clear=\"all\" />\r\n");
	templateBuilder.Append("        </div><a id=\"xinxi1\" name=\"xinxi1\"></a>\r\n");
	templateBuilder.Append("        <div class=\"proinfo\">\r\n");
	templateBuilder.Append("        <div class=\"proinfol\">\r\n");
	templateBuilder.Append("        <div class=\"proinfolabel\">\r\n");
	templateBuilder.Append("        <ul>\r\n");
	templateBuilder.Append("            <li id=\"proselect\">商 品 详 细</li>\r\n");
	templateBuilder.Append("            \r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi3\">网 友 评 价</a></li>\r\n");
	templateBuilder.Append("		<!--<li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi2\">促 销 活 动</a></li><li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi4\">客 户 感 言</a></li>-->\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi5\">相 关 商 品</a></li>\r\n");
	templateBuilder.Append("        </ul>\r\n");
	templateBuilder.Append("        </div>\r\n");
	templateBuilder.Append("        <div class=\"proinfodetail\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"0\"><tr>\r\n");
	
	productdetail__loop__id=0;
	foreach(DataRow productdetail_member in getTable("productdetail","["+cid+"],[id]$[content]$[videourl]").Rows)
	{
	if(productdetail__loop__id == 1 && productdetail__loop__id != 0) break;
		productdetail__loop__id++;
	templateBuilder.Append("<td>" + left(productdetail_member["content"].ToString(),0) + "<br />\r\n");
	templateBuilder.Append("<br >\r\n");
	templateBuilder.Append("" + productdetail_member["videourl"].ToString() + "\r\n");
	templateBuilder.Append("</td>\r\n");
	
	if((productdetail__loop__id % 2 == 0)){
	templateBuilder.Append("</tr><tr>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</tr></table><br />\r\n");
	templateBuilder.Append("<br />\r\n");
	templateBuilder.Append("<br /> <br clear=\"all\" />\r\n");
	templateBuilder.Append("        </div><!--<a id=\"xinxi2\" name=\"xinxi2\"></a>\r\n");
	templateBuilder.Append("        <div class=\"proinfolabel\">\r\n");
	templateBuilder.Append("        <ul>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi1\">商 品 详 细</a></li>\r\n");
	templateBuilder.Append("            <li id=\"proselect\">促 销 活 动</li>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi3\">网 友 评 价</a></li>\r\n");
	templateBuilder.Append("		<li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi4\">客 户 感 言</a></li>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi5\">相 关 商 品</a></li>\r\n");
	templateBuilder.Append("        </ul>\r\n");
	templateBuilder.Append("        </div>\r\n");
	templateBuilder.Append("        <div class=\"proinfodetail\">\r\n");
	
	productactsearch__loop__id=0;
	foreach(DataRow productactsearch_member in getTable("productactsearch","["+cid+"],[id]$[srclist]$[name]$[startdate]$[enddate]$[content]").Rows)
	{
	if(productactsearch__loop__id == 0 && productactsearch__loop__id != 0) break;
		productactsearch__loop__id++;
	templateBuilder.Append("<div class=\"proact\">\r\n");
	templateBuilder.Append("<div class=\"actunit\">\r\n");
	templateBuilder.Append("<div class=\"actunit1\"><img alt=\"\" src=\"images/products/actunitbgt.gif\" /></div>\r\n");
	templateBuilder.Append("<div class=\"actunit2\"><a target=\"_blank\" href=\"/0418/act.aspx?id=" + productactsearch_member["id"].ToString() + "\"><img alt=\"\" src='" + gettmpimg(productactsearch_member["srclist"].ToString(),262,100) + "' width='262' height='100'  /></a></div>\r\n");
	templateBuilder.Append("<div class=\"actunit3\"><a target=\"_blank\" href=\"/0418/act.aspx?id=" + productactsearch_member["id"].ToString() + "\">" + left(productactsearch_member["name"].ToString(),30) + "</a> [ " + ConvertDate(productactsearch_member["startdate"].ToString(),"YY04.MM.DD") + "-" + ConvertDate(productactsearch_member["enddate"].ToString(),"YY04.MM.DD") + "]</div>\r\n");
	templateBuilder.Append("<div class=\"actunit4\">\r\n");
	templateBuilder.Append("<div align=\"left\"></div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"actinfo\"><strong>活动内容：</strong>　<br />\r\n");
	templateBuilder.Append("" + left(productactsearch_member["content"].ToString(),200) + "</div>\r\n");
	templateBuilder.Append("<br clear=\"all\" />\r\n");
	templateBuilder.Append("</div>\r\n");
	
	}	//end loop
	templateBuilder.Append(" <br clear=\"all\" />\r\n");
	templateBuilder.Append("        </div>--><a id=\"xinxi3\" name=\"xinxi3\"></a>\r\n");
	templateBuilder.Append("        <div class=\"proinfolabel\">\r\n");
	templateBuilder.Append("        <ul>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi1\">商 品 详 细</a></li>\r\n");
	templateBuilder.Append("            \r\n");
	templateBuilder.Append("            <li id=\"proselect\">网 友 评 价</li>\r\n");
	templateBuilder.Append("		<!--<li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi2\">促 销 活 动</a></li><li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi4\">客 户 感 言</a></li>-->\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi5\">相 关 商 品</a></li>\r\n");
	templateBuilder.Append("        </ul>\r\n");
	templateBuilder.Append("        </div>\r\n");
	templateBuilder.Append("        <div class=\"proinfodetail\"><div class=\"proinfocomment\"><ul>\r\n");
	
	productreview__loop__id=0;
	foreach(DataRow productreview_member in getTable("productreview","["+cid+"],[id]$[title]$[username]$[date]$[star]$[content]$[remark]").Rows)
	{
	if(productreview__loop__id == 0 && productreview__loop__id != 0) break;
		productreview__loop__id++;
	templateBuilder.Append("<li><div><span><b>" + left(productreview_member["title"].ToString(),30) + "</b> <font color=\"#1f7a78\">（由 " + productreview_member["username"].ToString() + " 发表） <strong>" + productreview_member["date"].ToString() + " </strong></font></span>\r\n");
	templateBuilder.Append("<p><img src='images/products/star" + productreview_member["star"].ToString() + ".gif'></p>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("" + productreview_member["content"].ToString() + "<br />\r\n");
	templateBuilder.Append("<b>商城回复：</b><font style=\"font-size: 12px\">" + productreview_member["remark"].ToString() + "</font></li>\r\n");
	
	if((productreview__loop__id % 20 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul></div><script language=\"javascript\">\r\n");
	templateBuilder.Append("	function CheckReviewForm(){\r\n");
	templateBuilder.Append("		var obj = document.getElementById(\"title\");\r\n");
	templateBuilder.Append("		if(obj.value == \"\"){\r\n");
	templateBuilder.Append("			alert(\"请填写评论标题\");\r\n");
	templateBuilder.Append("			obj.focus();\r\n");
	templateBuilder.Append("			return false;\r\n");
	templateBuilder.Append("		};\r\n");
	templateBuilder.Append("		\r\n");
	templateBuilder.Append("		obj = document.getElementById(\"content\");\r\n");
	templateBuilder.Append("		if(obj.value == \"\"){\r\n");
	templateBuilder.Append("			alert(\"请填写评论内容\");\r\n");
	templateBuilder.Append("			obj.focus();\r\n");
	templateBuilder.Append("			return false;\r\n");
	templateBuilder.Append("		}\r\n");
	templateBuilder.Append("		\r\n");
	templateBuilder.Append("		return true;\r\n");
	templateBuilder.Append("	}\r\n");
	templateBuilder.Append("</"+"script><form onSubmit=\"this.action = '/0418/product' + '.aspx?id=" + cid.ToString() + "'\" method=\"post\" name=\"pswbackform\"><input type=\"hidden\" name=\"act\" value=\"review\" />&nbsp; <table style=\"border-right: rgb(46,182,179) 1px solid; border-top: rgb(46,182,179) 1px solid; border-left: rgb(46,182,179) 1px solid; border-bottom: rgb(46,182,179) 1px solid\" cellspacing=\"0\" cellpadding=\"1\" width=\"100%\" bgcolor=\"#ffffff\" border=\"0\"><tbody><tr align=\"center\"><td bgcolor=\"#2eb6b3\" colspan=\"2\" height=\"23\"><strong><font color=\"#ffffff\">我要评价 | Comment To It </font></strong></td></tr><tr background=\"images/vpro/barbg11.gif\"><td colspan=\"2\" height=\"30\"><div align=\"center\"><font color=\"#000099\">尊敬的客户，如果您对该项商品有所评论，请在以下填写！</font></div></td></tr><tr><td align=\"right\" width=\"18%\" bgcolor=\"#ffffff\" height=\"29\"><strong>评论标题：</strong></td><td valign=\"middle\" align=\"left\" width=\"82%\" bgcolor=\"#ffffff\"><input class=\"input\" id=\"title\" maxlength=\"30\" size=\"100\" name=\"title\" type=\"text\" /></td></tr><tr><td align=\"right\" height=\"30\"><strong>评 论 人：</strong></td><td valign=\"middle\" align=\"left\"><input class=\"input\" id=\"username\" maxlength=\"20\" size=\"100\" name=\"username\" type=\"text\" /></td></tr><tr><td align=\"right\" bgcolor=\"#ffffff\" height=\"30\"><strong>评论星级：</strong></td><td valign=\"middle\" align=\"left\" bgcolor=\"#ffffff\"><input type=\"radio\" name=\"star\" value=\"1\" /> <img alt=\"很差\" src=\"images/products/star1.gif\" /> <input type=\"radio\" name=\"star\" value=\"2\" /> <img alt=\"不太好\" src=\"images/products/star2.gif\" /> <input type=\"radio\" name=\"star\" value=\"3\" /> <img alt=\"一般\" src=\"images/products/star3.gif\" /> <input type=\"radio\" name=\"star\" value=\"4\" /> <img alt=\"还不错\" src=\"images/products/star4.gif\" /> <input type=\"radio\" checked=\"checked\" name=\"star\" value=\"5\" /> <img alt=\"非常好\" src=\"images/products/star5.gif\" /></td></tr><tr><td align=\"right\" width=\"18%\" height=\"30\"><strong>评论内容：</strong></td><td valign=\"middle\" align=\"left\"><textarea id=\"content\" rows=\"5\" cols=\"60\" name=\"content\"></textarea></td></tr><tr><td align=\"right\" width=\"18%\" bgcolor=\"#ffffff\" height=\"30\"><strong>验 证 码：</strong></td><td valign=\"middle\" align=\"left\" bgcolor=\"#ffffff\"><input class=\"input\" id=\"checkcode\" maxlength=\"4\" name=\"verify\" type=\"text\" /> &nbsp; <img id=\"verifyimg\" style=\"cursor: pointer\" alt=\"看不清，点击换一张\" align=\"absMiddle\" onclick=\"ChangeVerifyImg()\" /> <script language=\"javascript\">\r\n");
	templateBuilder.Append("						function ChangeVerifyImg(){\r\n");
	templateBuilder.Append("							document.getElementById(\"verifyimg\").src = '/0418/member/verifyimg.aspx?d=' + Date();\r\n");
	templateBuilder.Append("						}\r\n");
	templateBuilder.Append("						//初始化\r\n");
	templateBuilder.Append("						ChangeVerifyImg();\r\n");
	templateBuilder.Append("						</"+"script></td></tr><tr valign=\"middle\" align=\"center\"><td colspan=\"2\" height=\"30\"><input type=\"submit\" onClick=\"return CheckReviewForm()\" name=\"Submit2\" value=\"我要发表\" /></td></tr></tbody></table></form> <br clear=\"all\" />\r\n");
	templateBuilder.Append("        </div><!--<a id=\"xinxi4\" name=\"xinxi4\"></a>\r\n");
	templateBuilder.Append("        <div class=\"proinfolabel\">\r\n");
	templateBuilder.Append("        <ul>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi1\">商 品 详 细</a></li>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi2\">促 销 活 动</a></li>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi3\">网 友 评 价</a></li>\r\n");
	templateBuilder.Append("			<li id=\"proselect\">客 户 感 言</li>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi5\">相 关 商 品</a></li>\r\n");
	templateBuilder.Append("        </ul>\r\n");
	templateBuilder.Append("        </div>\r\n");
	templateBuilder.Append("        <div class=\"proinfodetail\"><table class=\"propraise\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">\r\n");
	templateBuilder.Append("    <tbody>\r\n");
	templateBuilder.Append("        <tr id=\"propraise1\">\r\n");
	templateBuilder.Append("            <td width=\"17%\" bgcolor=\"#e2e1ec\">购买客户</td>\r\n");
	templateBuilder.Append("            <td width=\"83%\" bgcolor=\"#f2f2f2\">客户感言</td>\r\n");
	templateBuilder.Append("        </tr>\r\n");
	templateBuilder.Append("    </tbody>\r\n");
	templateBuilder.Append("</table>\r\n");
	templateBuilder.Append(" <br clear=\"all\" />\r\n");
	templateBuilder.Append("        </div>-->\r\n");
	templateBuilder.Append("		<a id=\"xinxi5\" name=\"xinxi5\"></a>\r\n");
	templateBuilder.Append("        <div class=\"proinfolabel\">\r\n");
	templateBuilder.Append("        <ul>\r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi1\">商 品 详 细</a></li>\r\n");
	templateBuilder.Append("            \r\n");
	templateBuilder.Append("            <li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi3\">网 友 评 价</a></li>\r\n");
	templateBuilder.Append("		<!--<li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi2\">促 销 活 动</a></li><li><a href=\"/0418/product.aspx?id=" + cid.ToString() + "#xinxi4\">客 户 感 言</a></li>-->\r\n");
	templateBuilder.Append("            <li id=\"proselect\">相 关 商 品</li>\r\n");
	templateBuilder.Append("        </ul>\r\n");
	templateBuilder.Append("        </div>\r\n");
	templateBuilder.Append("        <div class=\"proinfodetail\"><div class=\"div1rpro3\"><ul>\r\n");
	
	productlink__loop__id=0;
	foreach(DataRow productlink_member in getTable("productlink","["+cid+"],[id]$[srcdetail]$[name]").Rows)
	{
	if(productlink__loop__id == 5 && productlink__loop__id != 0) break;
		productlink__loop__id++;
	templateBuilder.Append("<li><div><a target=\"_blank\" href=\"/0418/product.aspx?id=" + productlink_member["id"].ToString() + "\"><img style=\"border-right: #dedede 1px solid; border-top: #dedede 1px solid; border-left: #dedede 1px solid; border-bottom: #dedede 1px solid\" height=\"130\" alt=\"\" width=\"130\" border=\"0\" src='" + gettmpimg(productlink_member["srcdetail"].ToString(),130,130) + "' width='130' height='130'  /></a></div><img alt=\"\" src=\"images/icon/commendicon.gif\" /><br /><a target=\"_blank\" href=\"/0418/product.aspx?id=" + productlink_member["id"].ToString() + "\">" + left(productlink_member["name"].ToString(),30) + "</a></li>\r\n");
	
	if((productlink__loop__id % 1 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul></div></div>\r\n");
	templateBuilder.Append("        <br clear=\"all\" />\r\n");
	templateBuilder.Append("        </div>\r\n");
	templateBuilder.Append("        <div class=\"proinfor\"><div class=\"proinforlabel\">浏览过此商品的还浏览过</div><div class=\"proinforbg\"><div class=\"proinfosp\"> <ul>\r\n");
	
	productviewnext__loop__id=0;
	foreach(DataRow productviewnext_member in getTable("productviewnext","["+cid+"],[id]$[srcdetail]$[name]$[memberprice]").Rows)
	{
	if(productviewnext__loop__id == 0 && productviewnext__loop__id != 0) break;
		productviewnext__loop__id++;
	templateBuilder.Append("<li><a target=\"_blank\" href=\"/0418/product.aspx?id=" + productviewnext_member["id"].ToString() + "\"><img alt=\"\" border=\"0\" src='" + gettmpimg(productviewnext_member["srcdetail"].ToString(),60,60) + "' width='60' height='60'  /></a>\r\n");
	templateBuilder.Append("<div><a target=\"_blank\" href=\"/0418/product.aspx?id=" + productviewnext_member["id"].ToString() + "\">" + left(productviewnext_member["name"].ToString(),15) + "</a><br />\r\n");
	templateBuilder.Append("￥" + productviewnext_member["memberprice"].ToString() + "</div></li>\r\n");
	
	if((productviewnext__loop__id % 1 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul></div></div><div class=\"proinforbgb\"><img alt=\"\" src=\"images/products/vprorbgb.gif\" /></div> <div class=\"proinforlabel\">相关文章</div>\r\n");
	templateBuilder.Append("<div class=\"proinforbg2\"><ul>\r\n");
	
	mallarticle__loop__id=0;
	foreach(DataRow mallarticle_member in getTable("mallarticle","["+cid+"],[id]$[title]").Rows)
	{
	if(mallarticle__loop__id == 0 && mallarticle__loop__id != 0) break;
		mallarticle__loop__id++;
	templateBuilder.Append("<li><a target=\"_blank\" href=\"/0418/article.aspx?id=" + mallarticle_member["id"].ToString() + "\" title=\"" + mallarticle_member["title"].ToString() + "\">" + left(mallarticle_member["title"].ToString(),10) + "</a> <br /></li>\r\n");
	
	if((mallarticle__loop__id % 1 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul></div></div>\r\n");
	templateBuilder.Append("        <br clear=\"all\" />\r\n");
	templateBuilder.Append("        </div>\r\n");
	templateBuilder.Append("        <div class=\"bottom1\"><div class=\"bottom11\"><img alt=\"\" src=\"images/bottom/bgt.gif\" /></div><div class=\"bottom12\"><div class=\"bottom12m\"><div class=\"bottom12ml\"><div><img alt=\"\" src=\"images/bottom/helplabel.gif\" /></div><div class=\"bottom12mlkey\"><a target=\"_blank\" href=\"/0418/helpindex.aspx\">商城帮助</a></div><div class=\"bottom12mlkey\"><a target=\"_blank\" href=\"/0418/shippingadvice.aspx\">发货通知</a></div><div class=\"bottom12mlkey\"><a target=\"_blank\" href=\"/0418/poll.aspx\">问卷调查</a></div><div class=\"bottom12mlkey\"><a target=\"_blank\" href=\"/0418/subscription.aspx\">邮件订阅</a></div></div><div class=\"bottom12mr\"><ul>\r\n");
	
	helpcategorysearch__loop__id=0;
	foreach(DataRow helpcategorysearch_member in getTable("helpcategorysearch","[id]$[name]").Rows)
	{
	if(helpcategorysearch__loop__id == 6 && helpcategorysearch__loop__id != 0) break;
		helpcategorysearch__loop__id++;
	templateBuilder.Append("<li><div class=\"helpcate\"><a target=\"_blank\" href=\"/0418/helplist.aspx?id=" + helpcategorysearch_member["id"].ToString() + "\">" + left(helpcategorysearch_member["name"].ToString(),6) + "</a></div>\r\n");
	templateBuilder.Append("<div class=\"helplist\"><ul>\r\n");
	
	helpsearchbyid__loop__id=0;
	foreach(DataRow helpsearchbyid_member in getTable("helpsearchbyid","["+helpcategorysearch_member["id"]+"],[id]$[title]").Rows)
	{
	if(helpsearchbyid__loop__id == 5 && helpsearchbyid__loop__id != 0) break;
		helpsearchbyid__loop__id++;
	templateBuilder.Append("<li><a target=\"_blank\" href=\"/0418/help.aspx?id=" + helpsearchbyid_member["id"].ToString() + "\">" + left(helpsearchbyid_member["title"].ToString(),30) + "</a></li>\r\n");
	
	if((helpsearchbyid__loop__id % 1 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul></div></li>\r\n");
	
	if((helpcategorysearch__loop__id % 50 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul></div></div></div><div class=\"bottom11\"><img alt=\"\" src=\"images/bottom/bgb.gif\" /></div></div><div class=\"bottom2\">\r\n");
	templateBuilder.Append("  <div class=\"bottom2m\">\r\n");
	templateBuilder.Append("    <div id=\"link1\">\r\n");
	templateBuilder.Append("      <ul>\r\n");
	
	imglinksearch__loop__id=0;
	foreach(DataRow imglinksearch_member in getTable("imglinksearch","[id]$[href]$[name]$[src]").Rows)
	{
	if(imglinksearch__loop__id == 10 && imglinksearch__loop__id != 0) break;
		imglinksearch__loop__id++;
	templateBuilder.Append("<li><a target=\"_blank\" href=\"" + imglinksearch_member["href"].ToString() + "\"><img alt=\"" + left(imglinksearch_member["name"].ToString(),30) + "\" border=\"0\" src='" + gettmpimg(imglinksearch_member["src"].ToString(),100,33) + "' width='100' height='33'  /></a></li>\r\n");
	
	if((imglinksearch__loop__id % 100 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul>\r\n");
	templateBuilder.Append("    </div>\r\n");
	templateBuilder.Append("    <div id=\"link2\">\r\n");
	templateBuilder.Append("      <ul>\r\n");
	
	wordlinksearch__loop__id=0;
	foreach(DataRow wordlinksearch_member in getTable("wordlinksearch","[id]$[name]$[href]").Rows)
	{
	if(wordlinksearch__loop__id == 10 && wordlinksearch__loop__id != 0) break;
		wordlinksearch__loop__id++;
	templateBuilder.Append("<li><a title=\"" + left(wordlinksearch_member["name"].ToString(),30) + "\" target=\"_blank\" href=\"" + wordlinksearch_member["href"].ToString() + "\">" + left(wordlinksearch_member["name"].ToString(),30) + "</a></li>\r\n");
	
	if((wordlinksearch__loop__id % 10 == 0)){
	templateBuilder.Append("</ul><ul>\r\n");
	
	}	//end if
	templateBuilder.Append("\r\n");
	
	}	//end loop
	templateBuilder.Append("</ul>\r\n");
	templateBuilder.Append("    </div>\r\n");
	templateBuilder.Append("  </div>\r\n");
	templateBuilder.Append("</div>\r\n");
	templateBuilder.Append("<div class=\"bottom3\"><div class=\"bottom3l\"><a href=\"/0418/index.aspx\"><img alt=\"\" width=\"236\" border=\"0\" src=\"" + logo.ToString() + "\" /></a></div><div class=\"bottom3r\"><span class=\"bottom3rA\">\r\n");
	
	infosearch__loop__id=0;
	foreach(DataRow infosearch_member in getTable("infosearch","[id]$[title]$[byname]").Rows)
	{
	if(infosearch__loop__id == 9 && infosearch__loop__id != 0) break;
		infosearch__loop__id++;
	templateBuilder.Append("<a title=\"" + left(infosearch_member["title"].ToString(),6) + "\" target=\"_blank\" href=\"/0418/content.aspx?wd=" + infosearch_member["byname"].ToString() + "\">" + left(infosearch_member["title"].ToString(),6) + "</a> |\r\n");
	
	}	//end loop
	templateBuilder.Append(" <a target=\"_blank\" href=\"/0418/sitemap.aspx\">网站地图</a></span><br /><br />" + copyright.ToString() + " <br /><a target=\"_blank\" href=\"http://www.miibeian.gov.cn/\">" + icp.ToString() + "</a></div></div>" + jscontent.ToString() + " " + kft.ToString() + "<script src=\"/0418/js_floatqq.aspx\"></"+"script> </center>\r\n");
	templateBuilder.Append("    </body>\r\n");
	templateBuilder.Append("</html>\r\n");
	
templateBuilder.Append("<center style='font-size:12px;'>Designed By：<strong><a href='http://www.v5shop.com.cn/' target='_blank'>V5Shop</a></strong></center>");
	Response.Write(templateBuilder.ToString());
//init cache
	CacheManager testcaching = CacheFactory.GetCacheManager();
	if(!testcaching.Contains(Request.Url.ToString()))
	{
		testcaching.Add(Request.Url.ToString(), templateBuilder.ToString());
	}
}
</script>
