<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<%
id=request("id")
if id="" then response.Redirect"index.asp"
sql="select a.*,b.[names] as classname,'"&cf_root&"'+b.[html] as classurl from cw_info as a,cw_class as b where a.classid=b.id and a.id="&id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
  title=rs("title")
  content=rs("content")
  addtime=rs("addtime")
  classid=rs("classid")
  pic=rs("pic")
  classname=rs("classname")
  classurl=rs("classurl")
end if
rs.close
set rs=nothing
if pic<>"" then
  pic=cf_host&cf_root&pic
else
  pic=cf_host&cf_root&"skins/"&cf_skin&"images/nopic.jpg"
end if
data=cw_redtemp(cf_root&"skins/"&cf_skin,tp_wap_news_show)
data=cw_include(data)     
data=cw_system(data)
data=replace(data,"{cw:show_id}",id)
data=replace(data,"{cw:show_title}",title)
data=replace(data,"{cw:show_addtime}",addtime)
data=replace(data,"{cw:show_content}",content)
data=replace(data,"{cw:show_pic}",pic)
data=replace(data,"{cw:show_classname}",classname)
data=replace(data,"{cw:show_classurl}",classurl)
data=cw_loop(data)
data=cw_function(data)
data=cw_if(data)
response.Write(data)
%>