<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../top.htm"--><!--#include file="conn.asp"--><!--#include file="../function.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="../css.css" type="text/css" />
<title>笔记本频道---<%=request.querystring("infortitle")%></title>

</head>

<%
content=request.form("content")
content=replacestr(content)
if not content="" then
techid=request.form("techid")
if session("username")="" then
speaker="盘古网友"
else
speaker=session("username")
end if 
sql="insert into pl(techid,speaker,content) values("+techid+",'"+speaker+"','"+content+"')"
conn.execute sql
end if
%>

<body>
<div class="detailleft">
<%
techid=request.querystring("techid")
if techid="" then
response.write("<center><font font-size=18px color=red> 没有传递参数过来,作息没有检索到!</font></center>")
%>
<!--#include file="../bottom.htm"-->
<%
response.end
end if
set rs=server.CreateObject("adodb.recordset")
sql="select top 1 * from tech where techid="+techid
rs.activeconnection=conn
rs.cursortype=3
rs.open sql
if not rs.eof then
%>

  <table width="100%" height="198" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="55" class="tdtitle"><p><%=rs("techtitle")%></p>
      </td>
    </tr>
    <tr>
      <td height="37" align="center"><a href="#">盘古网</a> <%=cstr(year(rs("techdate")))+"年"+cstr(month(rs("techdate")))+"月"+cstr(day(rs("techdate")))+"日"%> 作者:<%=rs("writer")%> 类型:<a href=""><%=rs("techfrom")%></a> </td>
    </tr>
    <tr>
      <td><%=rs("techcontent")%></td>
    </tr>
    <tr>
      <td height="69"></td>
    </tr>
  </table>
  <%
  end if
 
  %>
</div>

<div class="detailright">
  <div>
    <div class="STYLE1">品牌索尼 IBM 惠普 联想 戴尔 神舟 华硕 Acer<br />
      东芝 苹果 富士通 三星 明基 TCL 方正价位5000元以下  5000-6000元  6000-7000元<br />
      7000-8000元 8000-10000元 10000-12000元<br />
    12000-15000元 15000元以上笔记本电池报价笔记本包报价笔记本电源报价笔记本内存报价笔记本硬盘报价</div>
  </div>
  <div></div>
</div>
<div class="detailright"></div>
<div class="detailright"></div>
<div class="pl">
  <div align="center">
    <table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center"></div></td>
      </tr>
      <tr>
        <td><div align="center">
		<script language="javascript">
function checkcontent()
{
if(window.plform.content.value=="")
{
alert("评论内容不能为空!");
window.plform.content.focus();
return false;
}
return true;
}
</script>
		
		
          <form id="form1" name="plform" method="post" action="" onSubmit="return checkcontent()">
            <p>
              <textarea class="plcontent" name="content" cols="70" rows="10" id="content"></textarea>
            </p>
            <p align="center">
              <input type="submit" name="Submit2" value="提交评论" />
              <input name="inforid" type="hidden" id="inforid" value="<%=rs("techid")%>" />
            </p>
          </form>
          </div></td>
      </tr>
	  <%
	  set plrs=server.createobject("adodb.recordset")
	  sql="select * from pl where inforid="&techid+" order by submitdate desc "
	  plrs.activeconnection=conn
	  plrs.cursortype=3
	  plrs.open sql
	  if not plrs.eof then
	  for i=1 to plrs.recordcount
	  %>
      <tr valign="middle">
        <td>
          <div align="left">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr bgcolor="#006699">
                <td valign="middle" bgcolor="#CCCCCC">&nbsp;&nbsp;<img src="icon/commenthead.gif" width="20" height="24" alt="" />&nbsp;&nbsp;<%=plrs("submitdate")%>&nbsp;&nbsp;<%=plrs("speaker")%></td>
              </tr>
              <tr>
                <td><font color=red>[楼<%=cstr(plrs.recordcount-i+1)%>]:</font><br><%=plrs("content")%></td>
              </tr>
            </table>
        </div></td>
      </tr>
	  <%
	  plrs.movenext
	  next
	  else
	  response.write("<font font-size=12px color=red>暂无评论!</font>")
	  end if
	  %>
      <tr>
        <td><div align="center"></div></td>
      </tr>
    </table>
  </div>
</div>
</body>
</html>
<%
set rs=nothing
set plrs=nothing
conn.close()
%>
<!--#include file="../bottom.htm"-->