<!--#include file="conn.asp"-->
<%hw_id=request("hw_id")
chkid(hw_id)
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select hw_name from WrzcNet_hw where hw_id="&hw_id&""
rs.open sql,conn,1,1
if rs.eof then
response.write "<script language=javascript>alert('Error!');history.go(-1);</script>"
response.End
else
hw_name=rs("hw_name")
end if
rs.close
set rs=nothing%><title><%if hw_name<>"" then%><%=hw_name%><%end if%>Comments</title>
<meta name="Keywords" content="<%if hw_name<>"" then%><%=hw_name%>,<%end if%><%=sitename%>">
<meta name="Description" content="<%if hw_name<>"" then%><%=hw_name%>,<%end if%><%=sitename%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<link rel="stylesheet" type="text/css" href="Skin/<%=WrzcNet_skin%>/css.css"></head>
<p style="margin: 3px"><b></b></p>

<TABLE width="99%" border=0 cellPadding=3 cellSpacing=0>
<tr><td class="sort">&nbsp;<IMG src="Skin/<%=WrzcNet_skin%>/home.gif" border=0 align="absmiddle">   
	<a href="index.asp">Home</a> >>&nbsp;<a href="views.asp?hw_id=<%=hw_id%>"><%=hw_name%></a>Comments:</td>
</tr></table>
<div class="d10"></div>
<%
page=request("page")
if page="" then page=1
if not(isnumeric(page)) then page=1
if page<1 then page=1
page=int(page)
set rs=server.createobject("adodb.recordset")
if commentshow=1 then
sql="select * from WrzcNet_comment where dateid="&hw_id&" order by id desc"
else
sql="select * from WrzcNet_comment where dateid="&hw_id&" and c_c=1 order by id desc"
end if
rs.open sql,conn,1,1
if not rs.eof then
rs.pagesize=lookpage
totalrec=rs.recordcount
totalpage=rs.pagecount
if page>totalpage then page=totalpage
rs.absolutepage=page
rs.cachesize=rs.pagesize
i=0
do while not rs.eof and (i<rs.pagesize)
i=i+1
%>
<table border="0" cellpadding="3" cellspacing="0" width="99%" class="cartshow1">
<tr><td width="50" align="right"><IMG src="Skin/<%=WrzcNet_skin%>/dot3.gif" border=0 align="absmiddle"></td>
<td width="200"><b><%=rs("title")%></b></td>
<td class="anse">(Name:<%=rs("Mail")%>&nbsp;&nbsp;<%=rs("date")%>)</td></tr>
<tr><td></td><td colspan="2"><font color="#4D8B9E">Comment:<%=replace(rs("Comment"),vbcrlf,"&nbsp;")%></font></td></tr>
<%if rs("c_c")=1 then%><tr><td></td><td colspan="2"><font color="#800000">Re: <%=rs("adminfu")%></font></td></tr><%end if%>
<tr><td colspan="3" height="2" background="Img/dot_menu.gif"></td></tr></table>
<%rs.movenext  
loop
else

end if
rs.close
set rs=nothing%>
<div class="d10"></div>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<form action=<%=filename%>?hw_id=<%=hw_id%> method=post>
<tr><td height="2" class="sortb"></td></tr>
<tr><td height="23" class="sortb"> 
<p style="line-height: 150%; margin: 5px">Page:<%=page%>/Total:<%=totalpage%>&nbsp;&nbsp;
<%if page-1>0 then%><a href="<%=filename%>?hw_id=<%=hw_id%>&page=<%=page-1%>">Prev</a><%else%>Prev<%end if%>&nbsp;&nbsp;
<%if page+1<=totalpage then%> <a href="<%=filename%>?hw_id=<%=hw_id%>&page=<%=page+1%>">Next</a><%else%>Next<%end if%>&nbsp;&nbsp;
Go to page::<input type="text" name="page" value="<%=page+1%>" size="1" style="text-align: center" class=input><input type="submit" value="GO" class=input><br>
Page:<%for i=1 to totalpage
if i=page then%>
<font color="#FF0000"><b><%=i%></b></font>
<%else%>
<a href="<%=filename%>?page=<%=i%>&hw_id=<%=hw_id%>"><%=i%></a>
<%end if
next%>
</td>
</tr></form></table>