<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%dim id,book_id,action
book_id=request("book_id")
action=request.QueryString("action")
id=request.QueryString("id")
if not isinteger(id) then
response.write"<script>alert(""非法访问!"");location.href=""../index.asp"";</script>"
end if
set rs_shjia=server.CreateObject("adodb.recordset")
strshjia="select * from shjia where flag<>1 and shjiaid="&id
rs_shjia.open strshjia,conn,1,1
if rs_shjia.bof and rs_shjia.eof then
response.write"<script>alert(""非法访问!"");location.href=""../index.asp"";</script>"
end if
if action="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_pinglun",conn,1,3
rs.addnew
rs("bookid")=request("book_id")
rs("pingji")=request("pingji")
rs("pinglunname")=trim(request("pinglunname"))
rs("pingluntitle")=trim(request("pingluntitle"))
rs("pingluncontent")=trim(request("pingluncontent"))
rs("ip")=Request.servervariables("REMOTE_ADDR")
rs("pinglundate")=now()
rs("shenhe")=1
rs.update
rs.close
set rs=nothing
response.write "<span style='height:500px;font-size:12px;padding-top:200px;padding-left:150px;color:red'>您的评论提交成功</span><script>window.setTimeout(""location.href='price.asp?id="&request("id")&"&book_id="&book_id&"'"",1000);</script>"
response.End
end if%>
<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function check()
{
if(checkspace(document.pinglunform.pinglunname.value)) {
	document.pinglunform.pinglunname.focus();
alert("请填写您的姓名！");
	return false;
}
if(checkspace(document.pinglunform.pingluntitle.value)) {
	document.pinglunform.pingluntitle.focus();
alert("请填写评论标题！");
	return false;
}
if(checkspace(document.pinglunform.pingluncontent.value)) {
	document.pinglunform.pingluncontent.focus();
alert("请填写评论正文！");
	return false;
}
	}
//-->
</script>
<title><%=rs_shjia("name")%></title>
<link href="../image/css.css" rel="stylesheet" type="text/css">
<body class="body666">
<!--#include file="top.asp" -->
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td style="padding-left:2px"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="171" style="border-top:1px solid #FFB71D;padding-left:5px"><font color="#B21C00">北京时间:</font><script language=javascript> 
　　today=new Date(); 
　　function date(){ 
　　this.length=date.arguments.length 
　　for(var i=0;i<this.length;i++) 
　　this[i+1]=date.arguments } 
　　var d=new date("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); 
　　document.write( "<font color=#B21C00 style=’font-size:9pt;font-family: 宋体’>", 
　　today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日","</font>" );</script>
</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28"><img src="images/menu_06.gif" width="28" height="23"></td>
<td bgcolor="#FFB71D" style="padding-left:20px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td><iframe src="marqueenews.asp" frameborder="0" scrolling="no" height="18" width="250"></iframe></td>
<td align="right"><font color="#FFFFFF"><b>更多...</b></font></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
<td width="180" valign="top" style="padding-left:2px"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
<td><table style="border:1px solid #C68700" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#F9FCB9" style="padding:8px"><table style="border:1px solid #C68700" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFB71D"><!--#include file="fenlei.asp" --></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td><table style="border:1px solid #C68700" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#F9FCB9" style="padding:8px"><table style="border:1px solid #C68700" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFB71D"><!--#include file="gouwucheinfo.asp"--></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td><!--#include file="pricehot.asp" --></td>
</tr>
</table></td>
<td valign="top" style="padding-left:2px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" align="center"><table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFB71D" style="padding-left:30px">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table style="border:1px solid #E0E0E0" width="95%" border="0" cellpadding="0" cellspacing="5" bgcolor="#F5F5F5">
<%set rs=server.createobject("adodb.recordset")
rs.open"select * from price_shjia where shjiaid="&request("id")&" and book_id="&request("book_id")&" ",conn,1,1
if rs.eof then
else
money=split(rs("money"),"|")
pic=rs("pic")
bookname=rs("bookname")
hid=replace(rs("hid"),"|","<br>")
bookid=rs("bookid")
rs.close
set rs=nothing
end if%>
<tr>
<td width="60%" align="center" valign="top" bgcolor="#FFFFFF" style="padding:5px;border:1px solid #E0E0E0"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td align="center"><a href="../<%=pic%>" target="_blank"><img src="../<%=pic%>" width="320" height="240" border="1" style="border-color:#666666"></a></td>
</tr>
<tr>
<td height="3"></td>
</tr>
<tr>
<td align="center" style="padding-left:5px"><font color="#666666"><b><%=bookname%></b></font></td>
</tr>
<tr>
<td align="center" bgcolor="#C1C1C1" style="padding-left:5px">报价：<%=money(0)%>元</td>
</tr>
<tr>
<td align="center" bgcolor="#EEEEEE" style="padding-left:5px"><a href="../uindex/index.asp?action=goumai&id=<%=bookid%>&from=<%=rs_shjia("name")%>"><font color="#666666">购买产品</font></a>&nbsp;<a href="#" title="收藏"><font color="#666666">加入收藏</font></a></td>
</tr>
</table></td>
<td valign="top" class="shjia14"><font color="red"><b><%=bookname%></b></font><br><%=hid%></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF" style="border:1px solid #E0E0E0"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" bgcolor="#E6E6E6" style="padding-left:10px"><font style="font-size:14px;color:#B21C00"><b>综合参数</b></font></td>
</tr>
<tr>
<td style="padding-left:20px;padding-top:10px">
<%set rs=server.createobject("adodb.recordset")
rs.open"select * from price where bookid="&bookid,conn,1,1
response.write""&rs("content")&""
rs.close
set rs=nothing%></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF" style="border:1px solid #E0E0E0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" bgcolor="#E6E6E6" style="padding-left:10px"><font style="font-size:14px;color:#B21C00"><b>网友评价结果</b></font></td>
</tr>
<tr>
<td style="padding-top:5px">
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_pinglun where bookid="&request("book_id")&" order by pinglundate desc",conn,1,1
j=rs.recordcount
if j>10 then j=10
for i=1 to j%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-bottom:1px dotted #cccccc">
<tr>
<td width="20"><img src="../image/pinglun01.gif" width="20" height="20"></td>
<td width="70%"><a href="../listpl.asp?id=<%=request("book_id")%>#<%=trim(rs("pingluntitle"))%>" target="_blank"><%=trim(rs("pingluntitle"))%></a></td>
<td><%=trim(rs("pinglundate"))%></td>
</tr>
<%if trim(rs("huifu"))<>"" then%>
<tr>
<td colspan="3" style="padding-left:20px"><b><font color="#ff6600">销售商回复：</font></b><%=rs("huifu")%></td>
</tr>
<%end if%>
</table>
<%rs.movenext
next%>
<div align="right"><%if j>0 then%><a href=../listpl.asp?id=<%=request("book_id")%> target=_blank>浏览该商品的全部<%=j%>条评论>></a><%end if%></div>
<%rs.close
set rs=nothing%></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF" style="border:1px solid #E0E0E0">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td height="25" bgcolor="#E6E6E6" style="padding-left:10px"><font style="font-size:14px;color:#B21C00"><b>品头论足</b></font></td>
</tr>
<tr><td>
<table width="500" border="0" cellpadding="0" cellspacing="4">
<form name="pinglunform" method="post" action="?id=<%=request("id")%>&action=save&book_id=<%=request("book_id")%>">
<tr>
<td width="65">姓 名：</td>
<td><input class="wenbenkuang" name="pinglunname" type="text" id="pinglunname" maxlength="18">
</td>
</tr>
<tr>
<td>标 题：</td>
<td><input class="wenbenkuang" name="pingluntitle" type="text" id="pingluntitle" size="50" value="对产品<%=bookname%>的评价">
</td>
</tr>
<tr>
<td valign="top">内 容：</td>
<td><textarea class="wenbenkuang" name="pingluncontent" cols="50" rows="3" id="pingluncontent" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: BORDER-LEFT: COLOR: #333333; BORDER-BOTTOM: HEIGHT: 18px; BACKGROUND-COLOR:"; ";";";"></textarea>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input class="go-wenbenkuang" name="submit" value="提交保存" type="submit" onClick="return check();">
</td>
</tr>
</form>
</table></td></tr></table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="copyright.asp" -->
</body>