<!--#include file="conn.asp"-->
<%
'if s_head="head4.asp" or s_productkind="4" then
'	response.write "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">"
'else
	response.write "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"">"
'end if
%>

<%
pkid=request("pkid")
zuheflag=0
sql="select zuheflag from e_product where pkid = "&pkid

set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.bof or rs.eof then
else
	zuheflag = rs("zuheflag")
end if
rs.close
set rs=nothing

if zuheflag=1 then
	conn.close
	set conn=nothing
	response.Redirect("pro_zuhe.asp?backid="&pkid)
	response.end
end if

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="i.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--

.style1 {font-size: 14px}
.style12 {color: #990000}
.style11 {
	font-size: 14px;
	color: #666666;
	font-weight: bold;
}
.productname{
font-size:13pt;padding-top:1px;padding-bottom:6px;  letter-spacing:1px; FONT-FAMILY: 微软雅黑;height:28px; line-height:150%;
}
.sxdivcss{
width:160px; height:20px;   float:left;
}

.colorcss{
BORDER: #666666 1px solid; BACKGROUND-COLOR: #eeeee1;width:45px; height:23px; padding:0px; margin-bottom: 6px; FONT-SIZE: 10pt;
}

.psizecss{
BORDER: #666666 1px solid; BACKGROUND-COLOR: #eeeee1;width:45px; height:23px; padding:0px; margin-bottom: 6px; FONT-SIZE: 10pt;
}

.guigecss{
BORDER: #666666 1px solid; BACKGROUND-COLOR: #eeeee1; height:23px; padding:2px; margin-bottom: 6px; FONT-SIZE: 10pt;CURSOR:pointer;
}

#g_price2 {
color:#ff0000; font-size:16pt;font-weight:bold;font-family:Arial;}

-->
</style>
<style type="text/css">
 .Numinput{padding:0 20px 0 0;position:relative;height:28px;}
 .Numinput input{WIDTH: 50px;height:28px;font-weight:bold; font-size:14pt; padding-top:1px;padding-left:3px;background-color:#FFFFFF;FONT-FAMILY: 'Century Gothic';}
 
 .Numinput .numadjust{ position:absolute;width:18px;height:9px;right:1px;overflow:hidden;background-image:url(images/numadjust.gif);background-repeat:no-repeat;cursor:pointer;}
 
 
 .Numinput .numadjust.increase{background-position:0 0;top:0;}
 .Numinput .numadjust.increase.active{background-position:0 -20px;}
 .Numinput .numadjust.decrease{background-position:0 -10px;bottom:0; }
 .Numinput .numadjust.decrease.active{background-position:0 -30px; }
 
 .carsubmit{height:33px;width:120px;BORDER:0px; vertical-align:top;}
 .carsubmit2{height:30px;width:120px;BORDER:0px; vertical-align:top;}

</style>


<SCRIPT LANGUAGE="JavaScript">
var previousTr = ""; 
function colorchoose(eleName) 
{  
  if(previousTr  != "" && document.getElementById(previousTr) != null){ 
        document.getElementById(previousTr).style.background = "#eeeee1"; 
    } 
  document.getElementById(eleName).style.background = "#ff6600"; 
  previousTr  = eleName; 
  document.all.color.value = document.getElementById(eleName).value; 
} 

var previousTr2 = ""; 
function psizechoose(eleName) 
{  
  if(previousTr2  != "" && document.getElementById(previousTr2) != null){ 
        document.getElementById(previousTr2).style.background = "#eeeee1"; 
    } 
  document.getElementById(eleName).style.background = "#ff6600"; 
  previousTr2  = eleName; 
  document.all.psize.value = document.getElementById(eleName).value+"码"; 
} 


var previousTr3 = ""; 
function guigechoose(eleName,gidvalue,price) 
{  
  if(previousTr3  != "" && document.getElementById(previousTr3) != null){ 
        document.getElementById(previousTr3).style.background = "#eeeee1"; 
    } 
  document.getElementById(eleName).style.background = "#ff6600"; 
  previousTr3  = eleName; 
  document.all.gid.value = gidvalue; 
  document.all.gidget.value = "1"; 
  document.getElementById("g_price2").innerText = "￥"+price;


} 

</SCRIPT>


<script src="CJL.0.1.min.js"></script>
<script src="ImageZoom.js"></script>
<script>
ImageZoom._MODE = {
	//跟随
	"follow": {
		methods: {
			init: function() {
				this._stylesFollow = null;//备份样式
				this._repairFollowLeft = 0;//修正坐标left
				this._repairFollowTop = 0;//修正坐标top
			},
			load: function() {
				var viewer = this._viewer, style = viewer.style, styles;
				this._stylesFollow = {
					left: style.left, top: style.top, position: style.position
				};
				viewer.style.position = "absolute";
				//获取修正参数
				if ( !viewer.offsetWidth ) {//隐藏
					styles = { display: style.display, visibility: style.visibility };
					$$D.setStyle( viewer, { display: "block", visibility: "hidden" });
				}
				//修正中心位置
				this._repairFollowLeft = viewer.offsetWidth / 2;
				this._repairFollowTop = viewer.offsetHeight / 2;
				//修正offsetParent位置
				if ( !/BODY|HTML/.test( viewer.offsetParent.nodeName ) ) {
					var parent = viewer.offsetParent, rect = $$D.rect( parent );
					this._repairFollowLeft += rect.left + parent.clientLeft;
					this._repairFollowTop += rect.top + parent.clientTop;
				}
				if ( styles ) { $$D.setStyle( viewer, styles ); }
			},
			repair: function(e, pos) {
				var zoom = this._zoom,
					viewerWidth = this._viewerWidth,
					viewerHeight = this._viewerHeight;
				pos.left = ( viewerWidth / 2 - pos.left ) * ( viewerWidth / zoom.width - 1 );
				pos.top = ( viewerHeight / 2 - pos.top ) * ( viewerHeight / zoom.height - 1 );
			},
			move: function(e) {
				var style = this._viewer.style;
				style.left = e.pageX - this._repairFollowLeft + "px";
				style.top = e.pageY - this._repairFollowTop + "px";
			},
			dispose: function() {
				$$D.setStyle( this._viewer, this._stylesFollow );
			}
		}
	},
	//拖柄
	"handle": {
		options: {//默认值
			handle:		""//拖柄对象
    	},
		methods: {
			init: function() {
				var handle = $$( this.options.handle );
				if ( !handle ) {//没有定义的话用复制显示框代替
					var body = document.body;
					handle = body.insertBefore(this._viewer.cloneNode(false), body.childNodes[0]);
					handle.id = "";
					handle["_createbyhandle"] = true;//生成标识用于移除
				} else {
					var style = handle.style;
					this._stylesHandle = {
						left: style.left, top: style.top, position: style.position,
						display: style.display, visibility: style.visibility,
						padding: style.padding, margin: style.margin,
						width: style.width, height: style.height
					};
				}
				$$D.setStyle( handle, { padding: 0, margin: 0, display: "none" } );
				
				this._handle = handle;
				this._repairHandleLeft = 0;//修正坐标left
				this._repairHandleTop = 0;//修正坐标top
			},
			load: function() {
				var handle = this._handle, rect = this._rect;
				$$D.setStyle( handle, {
					position: "absolute",
					width: this._rangeWidth + "px",
					height: this._rangeHeight + "px",
					display: "block",
					visibility: "hidden"
				});
				//获取修正参数
				this._repairHandleLeft = rect.left + this._repairLeft - handle.clientLeft;
				this._repairHandleTop = rect.top + this._repairTop - handle.clientTop;
				//修正offsetParent位置
				if ( !/BODY|HTML/.test( handle.offsetParent.nodeName ) ) {
					var parent = handle.offsetParent, rect = $$D.rect( parent );
					this._repairHandleLeft -= rect.left + parent.clientLeft;
					this._repairHandleTop -= rect.top + parent.clientTop;
				}
				//隐藏
				$$D.setStyle( handle, { display: "none", visibility: "visible" });
			},
			start: function() {
				this._handle.style.display = "block";
			},
			move: function(e, x, y) {
				var style = this._handle.style, scale = this._scale;
				style.left = Math.ceil( this._repairHandleLeft - x / scale ) + "px";
				style.top = Math.ceil( this._repairHandleTop - y / scale )  + "px";
			},
			end: function() {
				this._handle.style.display = "none";
			},
			dispose: function() {
				if( "_createbyhandle" in this._handle ){
					document.body.removeChild( this._handle );
				} else {
					$$D.setStyle( this._handle, this._stylesHandle );
				}
				this._handle = null;
			}
		}
	},
	//切割
	"cropper": {
		options: {//默认值
			opacity:	.5//透明度
    	},
		methods: {
			init: function() {
				var body = document.body,
					cropper = body.insertBefore(document.createElement("img"), body.childNodes[0]);
				cropper.style.display = "none";
				
				this._cropper = cropper;
				this.opacity = this.options.opacity;
			},
			load: function() {
				var cropper = this._cropper, image = this._image, rect = this._rect;
				cropper.src = image.src;
				cropper.width = image.width;
				cropper.height = image.height;
				$$D.setStyle( cropper, {
					position: "absolute",
					left: rect.left + this._repairLeft + "px",
					top: rect.top + this._repairTop + "px"
				});
			},
			start: function() {
				this._cropper.style.display = "block";
				$$D.setStyle( this._image, "opacity", this.opacity );
			},
			move: function(e, x, y) {
				var w = this._rangeWidth, h = this._rangeHeight, scale = this._scale;
				x = Math.ceil( -x / scale ); y = Math.ceil( -y / scale );
				this._cropper.style.clip = "rect(" + y + "px " + (x + w) + "px " + (y + h) + "px " + x + "px)";
			},
			end: function() {
				$$D.setStyle( this._image, "opacity", 1 );
				this._cropper.style.display = "none";
			},
			dispose: function() {
				$$D.setStyle( this._image, "opacity", 1 );
				document.body.removeChild( this._cropper );
				this._cropper = null;
			}
		}
	}
}

ImageZoom.prototype._initialize = (function(){
	var init = ImageZoom.prototype._initialize,
		mode = ImageZoom._MODE,
		modes = {
			"follow": [ mode.follow ],
			"handle": [ mode.handle ],
			"cropper": [ mode.cropper ],
			"handle-cropper": [ mode.handle, mode.cropper ]
		};
	return function(){
		var options = arguments[2];
		if ( options && options.mode && modes[ options.mode ] ) {
			$$A.forEach( modes[ options.mode ], function( mode ){
				//扩展options
				$$.extend( options, mode.options, false );
				//扩展钩子
				$$A.forEach( mode.methods, function( method, name ){
					$$CE.addEvent( this, name, method );
				}, this );
			}, this );
		}
		init.apply( this, arguments );
	}
})();

</script>
<style type="text/css">
.list{ padding-right:4px;}
.list img{width:60px; cursor:pointer; padding:1px; border:1px solid #cdcdcd; margin-bottom:10px; display:block;}
.list img.onzoom, .list img.on{padding:1px; border:1px solid #336699;}

.container{ position:relative;}

.izImage2{ width:350px; border:1px solid #cccccc; z-index:80;}
.izViewer2{width:300px;height:280px;position:absolute;left:360px;top:0; display:none; border:1px solid #999;} /* 放大的框 */

.handle2{display:none;opacity:0.6;filter:alpha(opacity=60);background:#E6EAF3; cursor:crosshair;}
</style>	

</head>

<body>
<!-- #include file="head.asp" -->
<TABLE width="996" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF" style="margin:auto;">
  <tr>
    <td> 



<table width="996" height="352" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td width="212" height="150" valign="top">
		<!-- #include file="inc_left_all.asp" -->
      </td>
    <td width="748" valign="top">
	<table width="99%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height=2></td>
      </tr>
    </table>


<%
dim pkid,model,productname,smallpicpath,price1,price2,pipai

pri2="-"
pri3="-"
pri4="-"
pri5="-"
pri6="-"

pkid=request("pkid")
sql="select  * from view_product where pkid = "&pkid

set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.bof or rs.eof then
	response.write "对不起，没有此pkid的商品记录！"
else

		pkid=rs("pkid")
		model=rs("model")
		kind=rs("kind")
		productname=rs("productname")
		smallpicpath=rs("smallpicpath")
		bigpicpath=rs("bigpicpath")
		bigpicpath2=rs("bigpicpath2")
		bigpicpath3=rs("bigpicpath3")
		bigpicpath4=rs("bigpicpath4")
		bigpicpath5=rs("bigpicpath5")
		price1=rs("price1")
		price2=rs("price"&session("customkind"))
		
		
		if session("customkind")>"2" or session("customkind")="2" then pri2="￥" & rs("price2")
		if session("customkind")>"3" or session("customkind")="3" then pri3="￥" & rs("price3")
		if session("customkind")>"4" or session("customkind")="4" then pri4="￥" & rs("price4")
		if session("customkind")>"5" or session("customkind")="5" then pri5="￥" & rs("price5")
		if session("customkind")>"6" or session("customkind")="6" then pri6="￥" & rs("price6")
		response.cookies("showpkid")=pkid
		
		
		pipai=rs("pipai")
		kindname=rs("kindname")
		disc=rs("disc")
		color=rs("color")
		psize=rs("psize")
		hit=rs("hit")
		saleshu=rs("saleshu")
		addtime=rs("addtime")
		kuchushu=rs("kuchushu")
		oneweight=rs("oneweight")
		punit=rs("punit")
		selt1=rs("selt1")
		shuxing1=rs("shuxing1")
		shuxing2=rs("shuxing2")
		shuxing3=rs("shuxing3")
		shuxing4=rs("shuxing4")
		shuxing5=rs("shuxing5")

		
		
		allpic=bigpicpath&"|"&bigpicpath2&"|"&bigpicpath3&"|"&bigpicpath4&"|"&bigpicpath5
		
		if saleshu="" or isnull(saleshu) then saleshu=0
		
		if disc<>"" then
			'disc = replace(disc,vbcrlf,"<br>")
			'disc = replace(disc,"shop/","")    '在这里设置过滤文件夹
			'disc = replace(disc," ","&nbsp;")
			'disc = replace(disc,"IMG&nbsp;src=","IMG src=")
			'disc = replace(disc,"&nbsp;border="," border=")
			disc = replace(disc,"><IMG ","><br><IMG ")
			disc = replace(disc,"><img ","><br><IMG ")
		end if
		'---------更新点击次数begin---------
		conn.execute("update e_product set hit=hit+1 where pkid="&pkid)
		'---------更新点击次数end-----------
		
		'---------记录浏览过的商品begin-----
		haveshow=request.cookies("haveshow")
		haveshow="," & haveshow & ","
		haveshow = replace(haveshow,pkid &",","")
		haveshow = pkid &","& haveshow
		haveshow = replace(haveshow,",,",",")
		haveshow = replace(haveshow,",,",",")
		response.cookies("haveshow")=left(haveshow,150)
		response.cookies("haveshow").Expires="2020-12-31"
		'response.write haveshow
		'---------记录浏览过的商品end--------
%>
            <TABLE width="770" border=0 align="center" cellPadding=0 cellSpacing=2 class=a1>
              <TBODY>
          <TR>
            <TD height=30 colSpan=3>
			<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 background="images/bg4.gif" style="margin-top:5px;">
<TBODY>
                <TR>
                  <TD width=36 height=30 background=images/hotnewpro.gif>　　　</TD>
                  <TD width="629">当前位置：<a href='index.asp'>首页</a><%
				    if len(kind)>3 then
					for kk=4 to len(kind) step 4
						sql4="select kindnum,kindname from sh_kind where kindnum='"&left(kind,kk)&"'"
						set rs4=conn.execute(sql4)
						if rs4.bof or rs4.eof then
						else
							p_kind=rs4("kindnum")
							p_name=rs4("kindname")
							response.write " -&gt; <a href='productlist.asp?kind="&p_kind&"'>"&p_name&"</a>"
						end if
						rs4.close
						set rs4=nothing
					next 
					end if
					%> -&gt; 商品详细</TD>
                  <TD width=71><a href="javascript:window.history.back()">&lt;&lt; 返回</a></TD>
                </TR>
              </TBODY>
            </TABLE></TD>
          </TR>
		  </tbody>
		  </table>
            <TABLE width="740" border=0 align="center" cellPadding=0 cellSpacing=0 style="margin-top:8px;">
              <TBODY>
                <TR> 
                  <TD width=547 height=50 background=images/buystep0.jpg> 
<table width="538" border="0" cellspacing="0" cellpadding="0">
<tr> 
                        <td width="193" height="22">&nbsp;</td>
                        <td width="113"> 
                          <div align="center"><strong><font color="#FFFFFF">浏览商品</font></strong></div></td>
                        <td width="112"> 
                          <div align="center">购物车</div></td>
                        <td width="120"> 
                          <div align="center">结算</div></td>
                      </tr>
                  </table></TD>
                  <TD width="134">&nbsp;</TD>
                  <TD width=59>&nbsp;</TD>
                </TR>
              </TBODY>
            </TABLE>


		    <TABLE width=740 border=0 align="center" cellPadding=2 cellSpacing=0><TBODY>
              <TR> 
                <TD colSpan=2 height="8"></TD>
              </TR>
              <TR> 
                <TD width=420 align=left vAlign=top> 


		  
<table>
	<tr>
		<td valign="top"><div id="idList" class="list"> </div></td>
		<td valign="top">
			<div class="container" style="z-index:6"> 
		        <img id="idImage2" class="izImage2" />
				<div id="idViewer2" class="izViewer2"></div> <!-- 放大的框 -->
			</div>
		</td>
	</tr>
</table>
<div id="idHandle3" class="handle2"  style="z-index:99"></div> <!-- 放大的图 -->

<div style="text-align:right;margin-top:5px;">
	<a href='zoom.asp?pkid=<%=pkid%>&allpic=<%=Server.URLEncode(allpic)%>&productname=<%=Server.URLEncode(productname)%>' target='_blank'><IMG src="images/zoom.gif" border=0 align="absmiddle"></a>&nbsp;
	<!-- JiaThis Button BEGIN -->
	<a href="http://www.jiathis.com/share/" class="jiathis" target="_blank"><img src="http://www.jiathis.com/code/images/jiathis1.gif" border="0" id="jiathis_a" alt='分享到...' align="absmiddle"/></a>&nbsp;
	<script type="text/javascript" src="http://www.jiathis.com/code/jia.js" charset="utf-8"></script>
	<!-- JiaThis Button END -->
	
</div>


				  
				  </TD>
                <TD width="320" align=left vAlign=top style="padding-top:5px;padding-left:3px;"> 
				<TABLE width=335 border=0 cellPadding=0 cellSpacing=0 style="BORDER-RIGHT: #cccccc 0px solid; BORDER-TOP: #cccccc 0px solid; BORDER-LEFT: #cccccc 0px solid; BORDER-BOTTOM: #cccccc 0px solid">
					<TBODY>
                      <TR align=left> 
                        <TD height="95" valign="top" style="PADDING-LEFT: 8px; line-height:180%;"> 
						  <font class="productname"><%=productname%></font><br>
						  
                          <div class="sxdivcss">商品编号：<b><%=model%></b> </div>
						  <div class="sxdivcss">商品单位：<b><%=punit%></b> </div>
						  <div class="sxdivcss">商品类别：<B><%=kindname%></B></div>
                          <div class="sxdivcss">商品品牌：<B><%=pipai%></B></div>
						  <%if cstr(oneweight)>"0" then%>
                          <div class="sxdivcss">单位重量：<B><%=oneweight%></B> 克</div>
						  <%end if%>
						  <div class="sxdivcss">上市时间：<%=FormatDateTime(addtime,2)%></div>
						  <%if s_kuchu="是" then%>
                          <div class="sxdivcss">库存状况：<B><%=kuchushu%></B></div>
						  <%end if%>
						  <div class="bange2"></div>
							
						  浏览次数：<B><%=hit%></B> 次<BR>
						  销售数量：<B><FONT style="font-size:14px;color:#FF3300;"><%=saleshu%></FONT></B> 笔<BR>
						  
						  </TD>
                      </TR>
                      <TR align=middle> 
                        <TD height="13">
						<div style="width:322px; BORDER-TOP: #999999 1px dotted; height: 2px;padding: 0px; margin:0px; line-height:0%;"></div>
                        </TD>
                      </TR>
					  
                      <TR align=left> 
                        <TD height="30" vAlign=center style="PADDING-LEFT: 8px; COLOR: #666666; ">
                          市场价：<FONT class='oldprice'><del>￥<%=price1%></del></FONT>&nbsp;&nbsp;&nbsp;&nbsp; 
						  <br>
							<%'2013-6-29 2:26
							response.write "<table width=300 height=60 border=0 cellPadding=0 cellSpacing=0><tr>"
							response.write "<td width=150>"&hyarr(2)&"价：<FONT class='oldprice'>" & pri2 &"</FONT></td> <td width=150>"&hyarr(3)&"价：<FONT class='oldprice'>" & pri3 &"</FONT></td>"
							response.write "</tr><tr>"
							response.write "<td>"&hyarr(4)&"价：<FONT class='oldprice'>" & pri4 &"</FONT></td> <td>"&hyarr(5)&"价：<FONT class='oldprice'>" & pri5 &"</FONT></td>"
							response.write "</tr><tr>"
							response.write "<td>"&hyarr(6)&"价：<FONT class='oldprice'>" & pri6 &"</FONT></td> "
							response.write "<td>"
							if session("s_stat")="" then
							response.write " <a href='QuicklyCheck.asp?jieshun=3'><font color='#0000ff'>请点这登录或注册...</font></a> "
							end if
'							if session("s_stat")<>"" then 
'							response.write "<FONT color=#ff0000>您的价：</font><font class='nowprice'>￥"&price2&"</font>"
'							end if
							response.write "</td>"
							response.write "</tr></table>"
							%>
						  </TD>
                      </TR>
					  
                      <TR align=middle> 
                        <TD height="13">
						<div style="width:322px; BORDER-TOP: #999999 1px dotted; height: 2px;padding: 0px; margin:0px; line-height:0%;"></div>
                        </TD>
                      </TR>
					  </TBODY>
				    </table>
				<TABLE width=335 border=0 cellPadding=0 cellSpacing=0 style="padding:4px;BORDER-RIGHT: #dddddd 1px solid; BORDER-TOP: #dddddd 1px solid; BORDER-LEFT: #dddddd 1px solid; BORDER-BOTTOM: #dddddd 1px solid;BACKGROUND-COLOR: #fcfcfc;">
					<TBODY>
                    <form name="formshow" action="order.asp" method="post" onSubmit="return Juge()">
					
				
				
                       <TR align=left height="30"> 
                        <TD width="16%" style="PADDING-LEFT: 8px; COLOR: #666666">售价：</td>
                        <td width="84%"><span id="g_price2">￥<%=price2%></span></td>
					   </tr>
					
					  <TR align=left> 
                        <TD height="41" colspan=2 vAlign=center style="PADDING-LEFT: 9px; COLOR: #666666">
						<table border=0 cellPadding=0 cellSpacing=0><tr><td>
                        <div class="Numinput" style="z-index:3">
						数量：&nbsp;
						<input type="text" name="num" id=num size="7" value="1" maxlength="10" />
						<span  class="numadjust increase" onClick="document.all.num.value=parseFloat(document.all.num.value)+1"></span>
						<span  class="numadjust decrease" onClick="if(parseFloat(document.all.num.value)>1){document.all.num.value=parseFloat(document.all.num.value)-1}"></span>
						</div>
						</td>
						<td>&nbsp;
						<INPUT type="hidden" name="pkid" value="<%=request("pkid")%>"><INPUT type="hidden" name="gid" value="<%=gid%>"><INPUT type="hidden" name="gidget" value=""><INPUT type="hidden" name="lkgm" value="">
						</td></tr>
						</table>
						
                        </TD>
					  </TR>
					  <tr><td height="50">&nbsp;&nbsp;</td><td>
						<input type="image" name="Submit0" value="Submit" src="images/0lkgm.jpg" class="carsubmit" onClick="document.all.lkgm.value = '1'">&nbsp;
						<input type="image" name="Submit1" value="Submit" src="images/0gwc.jpg" class="carsubmit" onClick="document.all.lkgm.value = '0'"> 
						</td>
					  </tr>
                      
                    </form>
					  
				    </table>
				  </TD>
              </TR>
              <TR> 
                <TD colSpan=2 height="3"></TD>
              </TR>
              <TR> 
                <TD style="BACKGROUND-REPEAT: repeat-x" background=images/talbe_2_back.jpg colSpan=2 height=1></TD>
              </TR>
			  </TBODY>
			  </table>

<script language="JavaScript">
<!--
function Juge()
{
<%if s_colorsize="是" and color<>"" then%>
	if (formshow.color.value == "")
	{
		alert("请选择颜色!");
		return false;
	}
<%end if
if s_colorsize="是" and psize<>"" then%>
	if (formshow.psize.value == "")
	{
		alert("请选择尺码!");
		return false;
	}
<%end if%>

<%if douguige=1 then%>
	if (formshow.gidget.value == "")
	{
		alert("请选择规格!");
		return false;
	}
<%end if%>


}
//-->
</script>


<title><%=application("sitename")%> - <%=productname%></title>
<script language="JavaScript">
(function(){
var iz = new ImageZoom( "idImage2", "idViewer2", {
	mode: "handle", handle: "idHandle3", scale: 1.714, delay: 0   //scale: 1.6放大倍数 上传源图600 大图350    600/350=1.714
});

var arrPic = [], list = $$("idList"), image = $$("idImage2"); 

arrPic.push({ smallPic: "product/<%=bigpicpath%>", originPic: "product/<%=bigpicpath%>", zoomPic: "product/<%=bigpicpath%>" }); 
<%if bigpicpath2<>"" then%>
arrPic.push({ smallPic: "product/<%=bigpicpath2%>", originPic: "product/<%=bigpicpath2%>", zoomPic: "product/<%=bigpicpath2%>" }); 
<%
end if
if bigpicpath3<>"" then
%>
arrPic.push({ smallPic: "product/<%=bigpicpath3%>", originPic: "product/<%=bigpicpath3%>", zoomPic: "product/<%=bigpicpath3%>" }); 
<%
end if
if bigpicpath4<>"" then
%>
arrPic.push({ smallPic: "product/<%=bigpicpath4%>", originPic: "product/<%=bigpicpath4%>", zoomPic: "product/<%=bigpicpath4%>" }); 
<%
end if
if bigpicpath5<>"" then
%>
arrPic.push({ smallPic: "product/<%=bigpicpath5%>", originPic: "product/<%=bigpicpath5%>", zoomPic: "product/<%=bigpicpath5%>" }); 
<%
end if
%>

$$A.forEach(arrPic, function(o, i){
	var img = list.appendChild(document.createElement("img"));
	img.src = o.smallPic;
	img.onmouseover = function(){
		iz.reset({ originPic: o.originPic, zoomPic: o.zoomPic });
		$$A.forEach(list.getElementsByTagName("img"), function(img){  img.className = ""; });
		img.className = "onzoom";
	}
	
	//var temp;
	//img.onmouseover = function(){ if( !this.className ){ this.className = "on"; temp = image.src; image.src = o.originPic; } }
	//img.onmouseout = function(){ if( this.className == "on" ){ this.className = ""; image.src = temp; } }
	
	if(!i){ img.onmouseover(); }
})
})()
</script>


<!--以下详细信息及评论-->
			<br>
		    <TABLE width=775 border=0 align="center" cellPadding=1 cellSpacing=0>
              <TR> 
                <TD colSpan=2 height="5"></TD>
              </TR>
              <TR> 
                <TD colSpan=2 height=20> 
				
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 style="BORDER: #cccccc 1px solid;">
                      <TR> 
                        <TD  valign="top">
							 <TABLE cellSpacing=0 cellPadding=0 width="775" border=0 bgcolor="#eeeeee">
								  <TR style="text-align:center;"> 
									<TD height=27 width=100 bgcolor="#ffffff" id=but1  style="border-right:1px solid #cccccc"><A HREF="javascript:void(0)" onClick="OnClickColor('1');"><b>商品详细</b></a></TD>
									<TD width=100 id=but2><A HREF="javascript:void(0)" onClick="OnClickColor('2');"><b>商品评论</b></a></TD>
									<TD width=100 id=but3><A HREF="javascript:void(0)" onClick="OnClickColor('3');"><b>发表评论</b></a></TD>
									<TD width=440>&nbsp;</TD>
								  </TR>
							  </TABLE>
								<SCRIPT LANGUAGE="JavaScript">
								var previous = "1"; 
								
								function OnClickColor(eleName) 
								{  
								  if(previous  != "" && document.getElementById("but"+previous) != null){  
										document.getElementById("but"+previous).style.background = "#eeeeee";  
										document.getElementById("tab"+previous).style.display="none"; 
									} 
								  document.getElementById("but"+eleName).style.background = "#ffffff"; 
								  document.getElementById("but"+eleName).style.borderRight="1px solid #cccccc";
								  document.getElementById("tab"+eleName).style.display="block";
								  
								  previous  = eleName; 
								} 
								
								</SCRIPT>


							 <!-- 详细begin -->
							 <TABLE cellSpacing=0 cellPadding=10 width="775" height="240" border=0 align="center"  id=tab1>
								  <TR> 
									<TD align=left style="WIDTH: 755px; WORD-WRAP:break-word;" valign="top"><%=disc%> <p>&nbsp;</p></TD>
								  </TR>
							  </TABLE>
							<!-- 详细end -->


							<!-- 评论begin -->
							<table width="100%" border="0" cellpadding="4" cellspacing="1"  id=tab2 style='display:none'>
								<tr>
									<td height="230" bgcolor="#FFFFFF"  valign="top"> 
									<table width="100%" border="0" cellspacing="0" cellpadding="1">
									<tr>
											<td><strong>商品评论：</strong></td>
									</tr>
									</table>
									<%
									dim mr
										sql="select * from z_pijia where productid="&request.querystring("pkid")&" and [check]='1' order by id desc"
										set rsp=server.CreateObject("adodb.recordset")
										rsp.open sql,conn,1,1
										if rsp.bof or rsp.eof then
											response.write "<div align=left>暂时没有此产品的评价记录！</div>"
										else
											mr=1
											do while not rsp.eof
												set yourname=rsp("yourname")
												set tel=rsp("tel")
												set memo=rsp("memo")
												set rememo=rsp("rememo")
												set addtime=rsp("addtime")
												if memo<>"" then
												memo = replace(memo,vbcrlf,"<br>")
												memo = replace(memo," ","&nbsp;")
												end if
												if rememo<>"" then
												rememo = replace(rememo,vbcrlf,"<br>")
												rememo = replace(rememo," ","&nbsp;")
												end if
									%>
								  
										<table width="100%" border="0" cellspacing="2" cellpadding="0" class="border" >
										  <tr> 
											<td width="17%" height="23" bgcolor="#f7f7f7"> <div align="right"> 姓名：</div></td>
											<td width="26%"><%=yourname%>&nbsp; </td>
											<td width="17%" bgcolor="#f7f7f7"> <div align="right">联系方式：</div></td>
											<td width="40%"><%=tel%></td>
										  </tr>
										  <tr> 
											<td height="23" bgcolor="#f7f7f7"> <div align="right">评论内容：</div></td>
											<td colspan="3" style="WIDTH: 450; WORD-WRAP: break-word"><%=memo%>&nbsp;[<%=addtime%>]</td>
										  </tr>
										  <tr> 
											<td height="25" bgcolor="#f7f7f7"> <div align="right"><font color="#CC0033">【管理员回复】：</font></div></td>
											<td colspan="3"  style="WIDTH: 450; WORD-WRAP: break-word"><%=rememo%>&nbsp;</td>
										  </tr>
										</table>
										<table width="100%" border="0" cellspacing="0">
										  <tr> 
											<td height="5"></td>
										  </tr>
										</table>
						  		<%
									mr=mr+1
									rsp.movenext
									loop
								end if
								rsp.close
								set rsp=nothing
								session("pijia")="1"
						  		%>  
				

									
								</td>
								</tr>
							</table>
							<!-- 评论end -->

							<!-- 发表评论begin -->
							<table width="100%" border="0" cellpadding="4" cellspacing="1"  id=tab3 style='display:none'>
							  <form name="Form2" method="post" action="pijia.asp" onSubmit="return Jugepijia()">
								<tr> 
									<td height="23"><strong>发表评论：</strong></td>
								</tr>
								<tr> 
								<td width="17%" height="28"> <div align="right"> 
								<input type="hidden" name="productid" value="<%=pkid%>">姓名：</div></td>
								  <td width="83%"> <input type="text" name="yourname"></td>
								</tr>
								<tr> 
									<td height="28"> <div align="right">联系方式：</div></td>
								  <td><input name="tel" type="text" size="30">(可以是电话、email、qq等)</td>
								</tr>
								<tr> 
								<td><div align="right">评论内容：</div></td>
								  <td><textarea name="memo" cols="50" rows="5"></textarea></td>
								</tr>
								<tr> 
								<td height="30">&nbsp;</td>
								  <td><input type="submit" name="Submit2" value="提交评论" class='input3'></td>
								</tr>
							  </form>
							</table>
							<script language="JavaScript">
							<!--
							function Jugepijia()
							{
							  if (Form2.memo.value == "")
							  {
								alert("请填写评论内容!");
								document.Form2.memo.focus();
								return false;
							  }
							}
							//-->
							</script>
						  <!-- 发表评论end -->
						
						</TD>
                      </TR>
                  </TABLE>
				  
				  
                </TD>
              </TR>
            </TABLE>
		 <%	
		end if
		rs.close
		set rs=nothing

		 %>


<!-- ----------组合BEGIN------------ -->
<TABLE width="775" align=center border=0 cellPadding=0 cellSpacing=0 background="images/bg4.gif" style="margin-top:8px;">
  <TBODY>
	<TR>
			  <TD width=160 height=30 background=images/hotnewpro.gif><span class="style11">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;该商品组合套餐：</span></TD>
			  <TD width="534">&nbsp;</TD>
			  <TD width=57>&nbsp;</TD>
	</TR>
  </TBODY>
</TABLE>
<table border="0" align=center width="770" cellpadding="1" cellspacing="1" >
<%
sql="select * from e_product where zuheflag=1 and zuhepkid like '%"&pkid&"%' order by pkid desc"
set rszh=server.CreateObject("adodb.recordset")
rszh.open sql,conn,1,1
if rszh.bof or rszh.eof then
	response.write "<tr><td height=30>&nbsp;&nbsp;该商品没有组合套餐。</td></tr>"
else
	
	do while not rszh.eof 
	id=rszh("pkid")
	model=rszh("model")
	zuhename=rszh("zuhename")
	zuheprice1=rszh("price1")
	zuheprice2=rszh("price2")
	productname=rszh("productname")
	zuhepkid=rszh("zuhepkid")
%>
<tr><td colspan=2 height=5></td></tr>	
<tr>
<td  bgcolor='#ffffff'>
		<table width=150 border="0" align="left" cellpadding="1" cellspacing="0" style="clear:both;">
		<tr> 
		<%
		myorder = ""
		allprice1=0
		allprice2=0
		h=1
		
		if zuhepkid<>"" then
			arr=split(zuhepkid,",")
			for i=0 to Ubound(arr)
				if arr(i)="" or not isnumeric(arr(i)) then
					wrong=1
				else
					myorder = myorder & ",iif(pkid="&arr(i)&","&i&",99)"
				end if
			next
		end if
		if left(myorder,1)="," then 
			myorder = mid(myorder,2)
		end if
		if myorder<>"" then
			myorder = " order by "&myorder
		end if
		
		sql2="select * from e_product where pkid in ("&zuhepkid&") "&myorder
		'response.write sql2
		'response.end
		set rs2=server.CreateObject("adodb.recordset")
		rs2.open sql2,conn,1,1
		if rs2.bof or rs2.eof then
			response.write "<div align=left><br>没有此pkid："&zuhepkid&"的记录! </div>"
		else
			s_picwidth = 145
			s_picheight = 170
			do while not rs2.eof 
			pkid=rs2("pkid")
			model=rs2("model")
			productname=rs2("productname")
			smallpicpath=rs2("smallpicpath")
			price1=rs2("price1")
			price2=rs2("price2")
			allprice1 =  allprice1 + price1
			allprice2 =  allprice2 + price2
			
			if h>1 then
				response.write "<td><IMG src='images/pro_zuhe.png' width='20' height='21' border=0></td>"
			end if
		%>
			<td height="<%=s_picwidth-5%>" align=center Onmouseover='return SetBgColor(this);' Onmouseout='return RestoreBgColor(this);'>
				
					<div align="center" style="margin-top:2px;text-align:center;"> 
						<A href="show.asp?pkid=<%=pkid%>" target='_blank'> <IMG src="product/<%=smallpicpath%>" width='<%=s_picwidth-5%>' height='<%=s_picheight-5%>' border="0" class=img1></A>
					</div>
					<DIV align="left" style="MARGIN-TOP: 2px; WIDTH: <%=s_picwidth%>px; height:39px;overflow: hidden;">
						<A href="show.asp?pkid=<%=pkid%>"  target='_blank'><%=productname%></A>
					</DIV>
					<DIV align="left"><font class='oldprice'>￥<%=price2%></font>&nbsp;&nbsp;<FONT class='oldprice'><del>￥<%=price1%></del></FONT></DIV>

			</td>
		  
		<%
			rs2.movenext
			h=h+1
			loop
		end if
		rs2.close
		set rs2=nothing
		if h<5 then
			for i = h to 4
				response.write "<td><IMG src='images/pro_zuhe.png' width='20' height='21' border=0></td>"
				response.write "<td align='center' valign='top'><div style='margin-top:3px;text-align:center;'><IMG src='images/prozuheblank.jpg' width='"&s_picwidth-5&"' height='"&s_picheight-5&"' border='0'></div></td>"
			next
		end if
		%>
		  </tr>
		</table>
		<table style="clear:both;"><TR> <TD height="8"></TD></TR></table>
</td>
<form name="formshowzuhe" action="order.asp" method="post" >
<td bgcolor='#ffffff'>
组合价：<font class='nowprice'><%=zuheprice2%></font><br><br>
原价：<font class='oldprice'><del><%=zuheprice1%></del></font><br><br>
节省：<font class='oldprice'><%=round(cdbl(zuheprice1)-cdbl(zuheprice2),2)%></font><br><br>
<INPUT type="hidden" name="pkid" value="<%=id%>">
<INPUT type="hidden" name="num" value="1"> 
<input type="image" name="Submit" value="Submit" src="images/gouwu.jpg" class="carsubmit2"> <br><br>
</td>
</form>
</tr>
<tr><td colspan=2 height=2 bgcolor='#bbbbbb'></td></tr>
	

<%
	rszh.movenext
	i=i+1
	loop

end if
rszh.close
set rszh=nothing
%> 
</table>
<table style='clear:both;'><TR> <TD height='1'></TD></TR></table>
<!-- ----------组合END-------------- -->


   </td>
  </tr>
</table>


    </td>
  </tr>

<TR><TD>

</TD></TR>
</table>


<!-- #include file="foot.asp" -->
<%
conn.close
set conn=nothing
%>
</body>
</html>

