<!--#include file="conn.asp"-->
<%
dim rs,sql

   set rs=server.CreateObject("adodb.recordset")
   sql ="Select * from kw_wt where id="&int(request.QueryString("wtid"))&""
   rs.open sql,conn,1,3
      if session("showid")<>int(request.QueryString("wtid")) then
      rs("djs")=rs("djs")+1
      rs.update
	  session("showid")=int(request.QueryString("wtid"))
      end if
response.Write("document.write('<font color=""#999999"">离问题结束还有"&int((20*24-DateDiff("h",rs("twtime"),now()))/24)&"天"&(20*24-DateDiff("h",rs("twtime"),now())) mod 24&"小时</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#009900>浏览数&nbsp;&nbsp;"&rs("djs")&"</font>');")

rs.close
set rs=nothing
closedb
%>