<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if request("action")="del" then  SubjectId=request("WS_TAID") else  SubjectId=request("SubjectId") end if
ColumnName="":Tablename="HX_Talkear"
if SubjectId="" or not isnumeric(SubjectId) then
 response.write "<script>alert('参数错误！');window.close();</script>"
 response.end
end if
Orderby=" where WS_TAID="&SubjectId
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if rs.recordcount<=0 then
 response.write "<script>alert('非法操作！');window.close();</script>"
 response.end
end if
if request("action")="del" then
  SubjectId=rs("WS_TalkEarSubjectId"):rs.delete:WS_S.HX_RSClose rs:response.write "<script>window.opener.location.reload();location.href='readtalker.asp?SubjectId="&SubjectId&"'</script>":response.end
end if
rs("WS_TalkEarKnock")=rs("WS_TalkEarKnock")+1
rs.update
response.Write "<head><title>查看帖子</title><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'></head><body leftmargin='0' topmargin='5' marginwidth='0' marginheight='0'><table width='580'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>查看帖子</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='0' bgcolor=BF9B73><tr><td height='25' bgcolor=FFFBE8 align=right><input type='button' name='Submit2' value='回复帖子' onclick=""javascript:location.href='addtalkear.asp?SubjectId="&SubjectId&"';""> <input type='button' name='Submit2' value='关闭窗口' onclick='javascript:window.close();'>&nbsp;</td></tr><tr bgcolor='#F9F8F2'><td height='25'><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td width='3%'><IMG src='../HXIMAGES/talkear/"&rs("WS_TalkEarPic")&"' align='absmiddle'></td><td width='57%' style='filter:glow(color=red, strength=2);'>"&rs("WS_TalkEarSubject")&"</td><td width='40%' align=right><font  color=red>"&rs("WS_TalkEarName")&"</font> 发表于 <font style='font-size:9pt;color:gray'>【"&rs("WS_TalkEarSendTime")&"】</font>&nbsp;</td></tr></table></td></tr><tr bgcolor='#FFFBE8' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#FFFBE8'><td height='100' valign=top><table width='100%'  border='0' cellspacing='0' cellpadding='5'><tr><td>&nbsp;&nbsp;"&rs("WS_TalkEarcontent")&"</td></tr></table></td></tr><tr><td height='25' bgcolor='#FFFBE8'><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='24' background='../hximages/titleline.gif'><font class='fontmenu'>相关回帖</font></td></tr></table></td></tr>"
	set rers=WS_S.HX_SetRSD(ColumnName,Tablename," where WS_TalkEarSubjectId="&RS("WS_TAID"))
	if rers.recordcount<=0 then
	  response.write "<tr><td height=25 bgcolor=FFFBE8 align=center><font color=FF00000>没有相关回复！</font></td></tr>"
	else
	 do until rers.eof
	response.Write "<tr bgcolor='#F9F8F2'><td height='25'><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td width='3%'><IMG src='../HXIMAGES/talkear/"&rers("WS_TalkEarPic")&"' align='absmiddle'></td><td width='57%' style='filter:glow(color=red, strength=2);'>"&rers("WS_TalkEarSubject")&"</td><td width='40%' align=right><font  color=red>"&rers("WS_TalkEarName")&"</font> 发表于 <font style='font-size:9pt;color:gray'>【"&rers("WS_TalkEarSendTime")&"】</font>&nbsp;</td></tr></table></td></tr><tr bgcolor='#FFFBE8' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#FFFBE8'><td height='100'><table width='100%'  border='0' cellspacing='0' cellpadding='4'><tr><td height='69' valign=top>&nbsp;&nbsp;"&rers("WS_TalkEarcontent")&"</td></tr></table></td></tr>"
     rers.movenext
	 loop
  end if
  call WS_S.HX_RSClose(rers):call WS_S.HX_RSClose(rs)
  response.Write "<tr><td height='25' bgcolor=FFFBE8 align=right><input type='button' name='Submit2' value='回复帖子' onclick=""javascript:location.href='addtalkear.asp?SubjectId="&SubjectId&"';""> <input type='button' name='Submit2' value='关闭窗口' onclick='javascript:window.close();'>&nbsp;</td></tr></table></td></tr></table>"
%>