<!-- #include file="../include/skin.asp" -->
<%
tit="上传文件下载"

call web_head(2,0,4,0,0)
'----------------------------中间 开始----------------------------
call upload_download()
'----------------------------中间 结束----------------------------
call web_end(0,4)

sub upload_download()
  dim id,url,upload_path
  upload_path=web_dim(13)
  id=trim(request.querystring("id"))
  sql="select top 1 url from upload where types=1 and id="&id
  set rs=joekoe_cms.exec(sql,1)
  if rs.eof then
    rs.close
    response.write joekoe_cms.js_put("alert(""上传的文件为无效的上传或不存在！"");window.close();",1)
    exit sub
  end if
  url=rs(0)
  rs.close
  call format_redirect(upload_path&url)
end sub
%>