婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 本站用的rss輸出

本站用的rss輸出

熱門標簽:東營電銷 r語言數據可視化地圖標注 本地電話機器人 如何修改多個百度地圖標注 400電話辦理包年 南寧網絡外呼系統運營商 隨州外呼調研系統 高德地圖地圖標注服務中心 微信地圖標注合并了
用了getrows提高效率
復制代碼 代碼如下:

%
Response.Charset = "GB2312"
Response.ContentType="text/xml"
Response.Expires=60
Response.Write("?xml version=""1.0"" encoding=""GB2312""?>")
response.write("?xml-stylesheet type=""text/css"" href=""images/rss.css""?>")
dim RssId,sql,rs,tid,rs_type,sql_type,sqqq,rsshow,thetitle,themon,theday,thedate,theyear
RssId=CheckStr(Request.QueryString("RSSID"))
if not IsInteger(RssId) then RssId=1
'得到子類別的所有id
set rsshow=conn.execute("select tname,counts,tid from infotype where id="RSSID"")
if not (rsshow.eof and rsshow.bof) then
thetitle=split(rsshow("tname"),"|")(rsshow("counts")-1)
tid=rsshow("tid")
end if
rsshow.close
set rsshow=nothing
set rs_type=server.CreateObject("ADODB.RecordSet")
sql_type="select id from infotype where tid like '"tid"%'"
rs_type.open sql_type,conn,1,1
do while not rs_type.EOF
   sqqq=sqqqrs_type("id")","
rs_type.MoveNext
loop 
rs_type.close
set rs_type=nothing
if sqqq="" then sqqq=tid
sql="select top 20 type_id,title,id,content,datetime,author from news where type_id in ("sqqq") and isshow=true order by datetime desc,id desc"
set rs=conn.execute(sql)
if rs.eof or rs.bof then
redim feedcat(0,0)
else
feedrows=rs.getrows()
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
rss version="2.0">
channel>
title>![CDATA[%=thetitle%>-腳本之家-www.jb51.net]]>/title>
link>https://www.jb51.net/link>
description>![CDATA[腳本之家,努力提供沒有錯誤的腳本,網絡編程]]>/description>
language>zh-cn/language>
copyright>![CDATA[Copyright 2006 jb51]]>/copyright>
webMaster>![CDATA[douxy001@gmail.com]]>/webMaster>
generator>jb51 2006/generator> 
%
if ubound(FeedRows,1)=0 then
            Response.Write("item>/item>")
 else
    for i=0 to ubound(FeedRows,2)
thedate=feedrows(4,i)
theyear=year(thedate)
themon=month(thedate)
if len(themon)2 then themon="0"themon
theday=theyearthemon
        %>
            item>
            link>%=siteurl%>/html/%=theday%>/%=FeedRows(2,i)%>.htm/link>
            title>![CDATA[%=FeedRows(1,i)%>]]>/title>
            author>%=FeedRows(5,i)%>/author>
            %
IF FeedRows(3,i)>"" and not isnull(FeedRows(3,i)) then
Response.Write("description>![CDATA["ubbcode(left(FeedRows(3,i),500))"]]>/description>")
               end if
%>
            pubDate>%=FeedRows(4,i)%>/pubDate>

        /item>
%
next
end if
%>
/channel>
/rss>

標簽:德州 益陽 黃石 寧夏 宿遷 果洛 拉薩 西雙版納

巨人網絡通訊聲明:本文標題《本站用的rss輸出》,本文關鍵詞  本站,用的,rss,輸出,本站,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《本站用的rss輸出》相關的同類信息!
  • 本頁收集關于本站用的rss輸出的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 大同市| 成武县| 金秀| 太和县| 延庆县| 林芝县| 彭水| 建平县| 漳浦县| 乌鲁木齐县| 阜宁县| 左云县| 西畴县| 无棣县| 荥经县| 甘洛县| 博白县| 虹口区| 杂多县| 徐州市| 寻甸| 沙湾县| 南宁市| 板桥市| 抚州市| 沂源县| 商丘市| 社会| 岑巩县| 伊宁市| 来宾市| 繁昌县| 江华| 广宁县| 锡林郭勒盟| 犍为县| 宜章县| 达日县| 敦化市| 伊吾县| 新昌县|