[求助]急求--帮助解读动网论坛dvbbs7.1的部分代码
<P>index.asp源码:<BR><!--#include file="conn.asp"--><BR><!--#include file="inc/const.asp"--><BR><!--#include file="inc/dv_clsother.asp"--><BR><%<BR>Rem 首页页面设置<BR>Const CachePage=false '是否做页面缓存<BR>Const CacheTime=60 '缓存失效时间<BR>Dim XMLDom,page,TopicMode,Cmd</P><P>If Request("w") = "1" Then<BR> Passport_Main()<BR> Response.End<BR>End If</P>
<P>If (Not Response.IsClientConnected) and Dvbbs.userid=0 Then<BR> Session(Dvbbs.CacheName & "UserID")=empty<BR> Response.Clear<BR> Response.End<BR>Else<BR> If Request("action")="xml" Then<BR> Showxml()<BR> Else<BR> Main()<BR> End If<BR>End If<BR>Sub Showxml()<BR> Dim node<BR> Set XMLDOM=Application(Dvbbs.CacheName&"_ssboardlist").cloneNode(True)<BR> If Dvbbs.GroupSetting(37)="0" Then'去掉隐藏论坛<BR> For each node in XMLDOM.documentElement.getElementsByTagName("board")<BR> If node.attributes.getNamedItem("hidden").text="1" Then<BR> node.parentNode.removeChild(node)<BR> End If<BR> Next<BR> End If<BR> Response.Clear<BR> Response.CharSet="gb2312" <BR> Response.ContentType="text/xml"<BR> Response.Write "<?xml version=""1.0"" encoding=""gb2312""?>"&vbNewLine<BR> Response.Write XMLDom.documentElement.XML<BR> Response.Flush<BR> Set XMLDOM=Nothing<BR> Set Dvbbs=Nothing<BR> Response.End<BR>End Sub<BR>Sub Main()<BR> Dvbbs.LoadTemplates("index")<BR> If Dvbbs.BoardID=0 Then<BR> Dvbbs.Stats=Replace(template.Strings(0),"动网先锋论坛",Dvbbs.Forum_Info(0))<BR> Response.Write Dvbbs.mainhtml(18)<BR> Dvbbs.Nav()<BR> Dvbbs.ActiveOnline()<BR> GetForumTextAd(0)<BR> BoardList()<BR> Else<BR> Chk_List_Err()<BR> TopicMode=0<BR> If Request("topicmode")<>"" and IsNumeric(Request("topicmode")) Then TopicMode=Cint(Request("topicmode"))<BR> If Dvbbs.Board_Setting(43)="0" Then<BR> Dvbbs.Stats=Dvbbs.LanStr(7)<BR> Else<BR> Dvbbs.Stats=Dvbbs.LanStr(8)<BR> End If<BR> Response.Write Dvbbs.mainhtml(18)<BR> Dvbbs.Nav()<BR> Dvbbs.ActiveOnline()<BR> Dvbbs.Head_var 1,Application(Dvbbs.CacheName&"_boardlist").documentElement.selectSingleNode("board[@boardid='"&Dvbbs.BoardID&"']/@depth").text,"",""<BR> GetForumTextAd(1)<BR> BoardList()<BR> Page=Request("Page")<BR> If ( Not isNumeric(Page) )or Page="" Then Page=1<BR> Page=Clng(Page)<BR> If Page <1 Then Page=1<BR> If Dvbbs.Board_Setting(43)="0" Then<BR> topicList()<BR> End If<BR> End If<BR> Dvbbs.Footer<BR>End Sub<BR>Sub Chk_List_Err()<BR> If Dvbbs.Board_Setting(1)="1" and Dvbbs.GroupSetting(37)="0" Then<BR> Dvbbs.AddErrCode(26)<BR> ElseIf Request("action")="batch" and Dvbbs.GroupSetting(45)<>"1"Then<BR> Dvbbs.AddErrCode(28)<BR> End If<BR> Dvbbs.showerr()<BR>End Sub<BR>Sub topicList()<BR> Dim Node,modelist,modelistimg,i,cpost,ctopic<BR> cpost=0<BR> ctopic=0<BR> If Application(Dvbbs.CacheName&"_boardlist").documentElement.selectSingleNode("board[@boardid='"&Dvbbs.BoardID&"']/@child").text<>"0" Then<BR> For Each Node In Application(Dvbbs.CacheName&"_boardlist").documentElement.selectNodes("board[@parentid='"&Dvbbs.BoardID&"']/@boardid")<BR> ctopic=ctopic+CLng(Application(Dvbbs.CacheName &"_information_" & node.text).documentElement.selectSingleNode("<a href='mailto:information/@topicnum").text' target="_blank" >information/@topicnum").text</A>)<BR> cpost=cpost+CLng(Application(Dvbbs.CacheName &"_information_" & node.text).documentElement.selectSingleNode("<a href='mailto:information/@postnum").text' target="_blank" >information/@postnum").text</A>)<BR> Next <BR> End If<BR> Set XMLDom=Application(Dvbbs.CacheName &"_boarddata_" & Dvbbs.boardid).cloneNode(True)<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("boarduser")<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("board_ads")<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("board_user")<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("isgroupsetting")<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("rootid")<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("board_setting")<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("sid")<BR> XMLDom.documentElement.firstChild.attributes.removeNamedItem("cid")<BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"boardtype","")).text=Dvbbs.boardtype<BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"forum_online","")).text=MyBoardOnline.Forum_Online<BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"board_useronline","")).text=MyBoardOnline.Board_UserOnline<BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"board_guestonline","")).text=MyBoardOnline.Board_GuestOnline<BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"postnum","")).text=CLng(Application(Dvbbs.CacheName &"_information_" & Dvbbs.boardid).documentElement.selectSingleNode("<a href='mailto:information/@postnum").text)-cpost' target="_blank" >information/@postnum").text)-cpost</A><BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"topicnum","")).text=CLng(Application(Dvbbs.CacheName &"_information_" & Dvbbs.boardid).documentElement.selectSingleNode("<a href='mailto:information/@topicnum").text)-ctopic' target="_blank" >information/@topicnum").text)-ctopic</A><BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"todaynum","")).text=CLng(Application(Dvbbs.CacheName &"_information_" & Dvbbs.boardid).documentElement.selectSingleNode("<a href='mailto:information/@todaynum").text' target="_blank" >information/@todaynum").text</A>)<BR> modelist=Split(Dvbbs.Board_Setting(48),"$$")<BR> modelistimg=Split(Dvbbs.Board_Setting(49),"$$")<BR> For i= 0 to UBound(modelist) -1<BR> Set Node = XMLDom.documentElement.firstChild.appendChild(XMLDom.createNode(1,"mode",""))<BR> Node.text=modelist(i)<BR> If i < UBound(modelistimg) Then Node.attributes.setNamedItem(XMLDom.createNode(2,"pic","")).text=modelistimg(i)<BR> Next<BR> XMLDOM.documentElement.attributes.setNamedItem(XMLDOM.createNode(2,"picurl","")).text=Dvbbs.Forum_PicUrl<BR> If Dvbbs.Forum_Setting(14)="1" Or Dvbbs.Forum_Setting(15)="1" Then <BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"showonline","")).text="1"<BR> Else<BR> XMLDom.documentElement.firstChild.attributes.setNamedItem(XMLDom.createNode(2,"showonline","")).text="0"<BR> End If<BR> XMLDom.documentElement.appendChild(Application(Dvbbs.CacheName &"_boardmaster").documentElement.selectSingleNode("boardmaster[@boardid='"& Dvbbs.boardid&"']").cloneNode(True))<BR> Rem ===============传送论坛信息和设置数据到XML===============================================================<BR> Set Node=XMLDom.documentElement.appendChild(XMLDom.createNode(1,"forum_setting",""))<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"logincheckcode","")).text=Dvbbs.forum_setting(79)'登录验证码设置<BR> If Dvbbs.Forum_ChanSetting(0)=1 And Dvbbs.Forum_ChanSetting(10)=1 Then Node.attributes.setNamedItem(XMLDom.createNode(2,"loginmobile","")).text=""'手机会员登录<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"rss","")).text=Dvbbs.Forum_ChanSetting(2)'rss订阅<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"wap","")).text=Dvbbs.Forum_ChanSetting(1)'wap访问<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"ishot","")).text=Dvbbs.Forum_Setting(44)'热贴最少回复<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pagesize","")).text=Dvbbs.Board_Setting(26)'列表分页大小<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"postalipay","")).text=Dvbbs.Board_Setting(67)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"dispsize","")).text=Dvbbs.Board_Setting(27) '贴子分页大小<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"tools","")).text=Dvbbs.Forum_Setting(90)'道具中心开关<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"newfalgpic","")).text=Dvbbs.Board_Setting(60) '显示新贴标志的设置<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"ForumUrl","")).text=Dvbbs.Get_ScriptNameUrl()<BR> If Dvbbs.Board_Setting(3)="1" Or Dvbbs.Board_Setting(57)="1" Then<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"auditcount","")).text=auditcount<BR> End If<BR> Rem 参数传递<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"action","")).text=Request("action")<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"page","")).text=Page<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"topicmode","")).text=topicmode<BR> If Dvbbs.Boardmaster Then<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"ismaster","")).text="1"<BR> Else<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"ismaster","")).text="0"<BR> End If<BR> If Dvbbs.Board_Setting(68)="1" Then<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"cananony","")).text="1"<BR> Else<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"cananony","")).text="0"<BR> End If<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"canlookuser","")).text=Dvbbs.GroupSetting(1)<BR> If Not IsObject(Application(Dvbbs.CacheName & "_smallpaper")) Then LoadBoardNews_Paper()<BR> For Each Node in Application(Dvbbs.CacheName & "_smallpaper").documentElement.SelectNodes("smallpaper[@s_boardid='"&Dvbbs.Boardid&"']")<BR> XMLDom.documentElement.appendChild(Node.cloneNode(True))<BR> Next<BR> LoadTopiclist()<BR> Response.Write vbNewLine & "<script language=""javascript"" type=""text/javascript"">" & vbNewLine<BR> Response.Write LoadToolsInfo & vbNewLine<BR> Response.Write "</script>" & vbNewLine<BR> If Cint(TopicMode) <> "0" Then<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"modecount","")).text=Dvbbs.Execute("Select Count(*) From Dv_Topic Where Mode="&TopicMode&" and BoardID="&Dvbbs.BoardID&" And IsTop=0")(0)<BR> End If<BR> transform_topicList()<BR>End Sub<BR>Function auditcount()<BR> Dim Rs<BR> Set Rs=Dvbbs.Execute("select count(*) from "& Dvbbs.Nowusebbs &" where boardid=777 and locktopic="&Dvbbs.BoardID)<BR> If IsNull(Rs(0)) Then<BR> auditcount=0<BR> Else<BR> auditcount=Rs(0)<BR> End If<BR> Set Rs=Nothing <BR>End Function<BR>Sub LoadTopiclist()<BR> If (Not Response.IsClientConnected) and Dvbbs.userid=0 Then<BR> Session(Dvbbs.CacheName & "UserID")=empty<BR> Response.Clear<BR> Response.End<BR> End If<BR> Dim Node,nodes,topidlist,Rs,Sql,lastpost,i,PostTime,limitime<BR> If Page=1 Then<BR> topidlist=Dvbbs.CacheData(28,0)<BR> If topidlist="" Then<BR> topidlist=Application(Dvbbs.CacheName &"_information_" & Dvbbs.boardid).documentElement.selectSingleNode("<a href='mailto:information/@boardtopstr").text' target="_blank" >information/@boardtopstr").text</A><BR> ElseIf Trim(Application(Dvbbs.CacheName &"_information_" & Dvbbs.boardid).documentElement.selectSingleNode("<a href='mailto:information/@boardtopstr").text' target="_blank" >information/@boardtopstr").text</A>)<>"" Then<BR> topidlist=topidlist &","& Application(Dvbbs.CacheName &"_information_" & Dvbbs.boardid).documentElement.selectSingleNode("<a href='mailto:information/@boardtopstr").text' target="_blank" >information/@boardtopstr").text</A><BR> End If<BR> If Trim(topidlist) <>"" Then <BR> Set Rs=Dvbbs.Execute("Select topicid,boardid,title,postusername,postuserid,dateandtime,child,hits,votetotal,lastpost,lastposttime,istop,isvote,isbest,locktopic,expression,topicmode,mode,getmoney,getmoneytype,usetools,issmstopic,hidename from dv_topic Where istop > 0 and topicid in ("& Dvbbs.Checkstr(topidlist) &") Order By istop desc, Lastposttime Desc")<BR> If Not Rs.EOF Then<BR> SQL=Rs.GetRows(-1)<BR> Set topidlist=Dvbbs.ArrayToxml(sql,rs,"row","toptopic")<BR> SQL=Empty<BR> For Each Node in topidlist.documentElement.SelectNodes("row")<BR> Node.selectSingleNode("@title").text=Dvbbs.ChkBadWords(Node.selectSingleNode("@title").text)<BR> If Not Node.selectSingleNode("@topicmode").text ="1" Then<BR> Node.selectSingleNode("@title").text=replace(Node.selectSingleNode("@title").text,"<","&lt;")<BR> End If<BR> Node.selectSingleNode("@lastpost").text=Dvbbs.ChkBadWords(Node.selectSingleNode("@lastpost").text)<BR> Node.selectSingleNode("@postusername").text=Dvbbs.ChkBadWords(Node.selectSingleNode("@postusername").text)<BR> i=0<BR> For each lastpost in split(Node.selectSingleNode("@lastpost").text,"$")<BR> Node.attributes.setNamedItem(topidlist.createNode(2,"lastpost_"& i,"")).text=lastpost<BR> i=i+1<BR> Next<BR> If Dvbbs.Board_Setting(60)<>"" And Dvbbs.Board_Setting(60)<>"0" Then<BR> If Dvbbs.Board_Setting(38) = "0" Then<BR> PostTime = Node.selectSingleNode("@lastpost_2").text<BR> Else<BR> PostTime = Node.selectSingleNode("@dateandtime").text<BR> End If<BR> If DateDiff("n",Posttime,Now)+Cint(Dvbbs.Forum_Setting(0)) < CLng(Dvbbs.Board_Setting(61)) Then<BR> Node.attributes.setNamedItem(topidlist.createNode(2,"datedifftime","")).text=DateDiff("n",Posttime,Now)+Cint(Dvbbs.Forum_Setting(0))<BR> End If<BR> End If<BR> Next<BR> XMLDom.documentElement.appendChild(topidlist.documentElement)<BR> End If<BR> Set Rs=Nothing<BR> End If<BR> End If<BR> <BR> If IsSqlDataBase=1 And IsBuss=1 Then<BR> Set Cmd = Server.CreateObject("ADODB.Command")<BR> Set Cmd.ActiveConnection=conn<BR> Cmd.CommandText="dv_list"<BR> Cmd.CommandType=4<BR> Cmd.Parameters.Append cmd.CreateParameter("@boardid",3)<BR> Cmd.Parameters.Append cmd.CreateParameter("@pagenow",3)<BR> Cmd.Parameters.Append cmd.CreateParameter("@pagesize",3)<BR> Cmd.Parameters.Append cmd.CreateParameter("@tl",3)<BR> Cmd.Parameters.Append cmd.CreateParameter("@topicmode",3)<BR> Cmd.Parameters.Append cmd.CreateParameter("@totalrec",3,2)<BR> Cmd("@boardid")=Dvbbs.BoardID<BR> Cmd("@pagenow")=page<BR> Cmd("@pagesize")=Cint(Dvbbs.Board_Setting(26))<BR> Cmd("@topicmode")=TopicMode<BR> Cmd("@tl")=0<BR> Set Rs=Cmd.Execute<BR> If Not Rs.EoF Then<BR> SQL=Rs.GetRows(-1)<BR> Set topidlist=Dvbbs.ArrayToxml(sql,rs,"row","topic")<BR> Else<BR> Set topidlist=Nothing<BR> End If<BR> Else<BR> Set Rs = Server.CreateObject ("adodb.recordset")<BR> If Cint(TopicMode)=0 Then<BR> Sql="Select TopicID,boardid,title,postusername,postuserid,dateandtime,child,hits,votetotal,lastpost,lastposttime,istop,isvote,isbest,locktopic,Expression,TopicMode,Mode,GetMoney,GetMoneyType,UseTools,IsSmsTopic,hidename From Dv_Topic Where BoardID="&Dvbbs.BoardID&" And IsTop=0 Order By LastPostTime Desc"<BR> Else<BR> Sql="Select TopicID,boardid,title,postusername,postuserid,dateandtime,child,hits,votetotal,lastpost,lastposttime,istop,isvote,isbest,locktopic,Expression,TopicMode,Mode,GetMoney,GetMoneyType,UseTools,IsSmsTopic,hidename From Dv_Topic Where Mode="&TopicMode&" and BoardID="&Dvbbs.BoardID&" And IsTop=0 Order By LastPostTime Desc"<BR> End If<BR> Rs.Open Sql,Conn,1,1<BR> If Page >1 Then<BR> Rs.Move (page-1) * Clng(Dvbbs.Board_Setting(26))<BR> End If<BR> If Not Rs.EoF Then<BR> SQL=Rs.GetRows(Dvbbs.Board_Setting(26))<BR> Set topidlist=Dvbbs.ArrayToxml(sql,rs,"row","topic")<BR> Else<BR> Set topidlist=Nothing<BR> End If<BR> End If<BR> SQL=Empty<BR> If Not topidlist Is Nothing Then <BR> For Each Node in topidlist.documentElement.SelectNodes("row")<BR> Node.selectSingleNode("@title").text=Dvbbs.ChkBadWords(Node.selectSingleNode("@title").text)<BR> If Not Node.selectSingleNode("@topicmode").text ="1" Then<BR> Node.selectSingleNode("@title").text=replace(Node.selectSingleNode("@title").text,"<","&lt;")<BR> End If<BR> Node.selectSingleNode("@postusername").text=Dvbbs.ChkBadWords(Node.selectSingleNode("@postusername").text)<BR> i=0<BR> For each lastpost in split(Node.selectSingleNode("@lastpost").text,"$")<BR> Node.attributes.setNamedItem(topidlist.createNode(2,"lastpost_"& i,"")).text=lastpost<BR> i=i+1<BR> Next<BR> If Dvbbs.Board_Setting(60)<>"" And Dvbbs.Board_Setting(60)<>"0" Then<BR> If Dvbbs.Board_Setting(38) = "0" Then<BR> PostTime = Node.selectSingleNode("@lastpost_2").text<BR> Else<BR> PostTime = Node.selectSingleNode("@dateandtime").text<BR> End If<BR> If DateDiff("n",Posttime,Now)+Cint(Dvbbs.Forum_Setting(0)) < CLng(Dvbbs.Board_Setting(61)) Then<BR> Node.attributes.setNamedItem(topidlist.createNode(2,"datedifftime","")).text=DateDiff("n",Posttime,Now)+Cint(Dvbbs.Forum_Setting(0))<BR> End If<BR> End If<BR> Next<BR> XMLDom.documentElement.appendChild(topidlist.documentElement)<BR> End If<BR> Set Rs=Nothing<BR> Dvbbs.SqlQueryNum = Dvbbs.SqlQueryNum + 1<BR>End Sub<BR></P> <P>接上段<BR>index.asp的下半段源码:<BR>Sub transform_topicList()<BR> If (Not Response.IsClientConnected) and Dvbbs.userid=0 Then<BR> Response.Clear<BR> Session(Dvbbs.CacheName & "UserID")=empty<BR> Response.End<BR> End If<BR> Dim proc,XMLStyle,node,cnode<BR> If Not IsObject(Application(Dvbbs.CacheName & "_listtemplate_"& Dvbbs.SkinID)) Then<BR> Set Application(Dvbbs.CacheName & "_listtemplate_"& Dvbbs.SkinID)=Server.CreateObject("Msxml2.XSLTemplate" & MsxmlVersion )<BR> Set XMLStyle=Server.CreateObject("Msxml2.FreeThreadedDOMDocument"& MsxmlVersion )<BR> XMLStyle.loadxml template.html(1) ' <BR> 'XMLStyle.load Server.MapPath("index_list.xslt")<BR> '插入各种图片的设置数据<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="picurl"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.Forum_PicUrl<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="pic_nofollow"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(10)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="pic_follow"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(11)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="ztopic"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(0)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="istopic"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(1)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="opentopic"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(2)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="hottopic"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(3)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="ilocktopic"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(4)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="besttopic"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(5)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="votetopic"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(6)<BR> XMLStyle.documentElement.appendChild(node)<BR> Set Node=XMLStyle.createNode(1,"xsl:variable","<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>")<BR> Set CNode=XMLStyle.createNode(2,"name","")<BR> CNode.text="pic_toptopic1"<BR> Node.attributes.setNamedItem(CNode)<BR> node.text=Dvbbs.mainpic(19)<BR> XMLStyle.documentElement.appendChild(node)<BR> Application(Dvbbs.CacheName & "_listtemplate_"& Dvbbs.SkinID).stylesheet=XMLStyle<BR> End If<BR> Set proc = Application(Dvbbs.CacheName & "_listtemplate_"& Dvbbs.SkinID).createProcessor()<BR> proc.input = XMLDom<BR> proc.transform()<BR> Response.Write proc.output<BR> Set XMLDom=Nothing <BR> Set proc=Nothing<BR>End Sub<BR>Sub LoadBoardlistData()<BR> Dim Node,Xpath,LastPost,BoardiD,Xpath1<BR> Set XMLDom=Application(Dvbbs.CacheName&"_boardlist").cloneNode(True)<BR> XMLDom.documentElement.attributes.setNamedItem(XMLDom.createNode(2,"boardid","")).text=Dvbbs.BoardID<BR> If Dvbbs.Boardid=0 Then<BR> Xpath="board[@depth=1]"<BR> Xpath1="board[@depth=0]"<BR> XMLDom.documentElement.appendChild(Application(Dvbbs.CacheName &"_grouppic").documentElement.cloneNode(True))<BR> If Not IsObject(Application(Dvbbs.CacheName & "_link")) Then LoadlinkList()<BR> XMLDom.documentElement.appendChild(Application(Dvbbs.CacheName & "_link").documentElement.cloneNode(True))<BR> Rem ===============传送论坛信息和设置数据到XML===============================================================<BR> Set Node=XMLDom.documentElement.appendChild(XMLDom.createNode(1,"forum_info",""))<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_type","")).text=Dvbbs.forum_info(0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_maxonline","")).text=Dvbbs.CacheData(5,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_maxonlinedate","")).text=Dvbbs.CacheData(6,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_topicnum","")).text=Dvbbs.CacheData(7,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_postnum","")).text=Dvbbs.CacheData(8,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_todaynum","")).text=Dvbbs.CacheData(9,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_usernum","")).text=Dvbbs.CacheData(10,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_yesterdaynum","")).text=Dvbbs.CacheData(11,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_maxpostnum","")).text=Dvbbs.CacheData(12,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_maxpostdate","")).text=Dvbbs.CacheData(13,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_lastuser","")).text=Dvbbs.CacheData(14,0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_online","")).text=MyBoardOnline.Forum_Online<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_useronline","")).text=MyBoardOnline.Forum_UserOnline<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_guestonline","")).text=MyBoardOnline.Forum_GuestOnline<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"forum_createtime","")).text=FormatDateTime(Dvbbs.Forum_Setting(74),1)<BR> Set Node=XMLDom.documentElement.appendChild(XMLDom.createNode(1,"forum_setting",""))<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"logincheckcode","")).text=Dvbbs.forum_setting(79)'登录验证码设置<BR> If Dvbbs.Forum_ChanSetting(0)=1 And Dvbbs.Forum_ChanSetting(10)=1 Then Node.attributes.setNamedItem(XMLDom.createNode(2,"loginmobile","")).text=""'手机会员登录<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"rss","")).text=Dvbbs.Forum_ChanSetting(2)'rss订阅<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"wap","")).text=Dvbbs.Forum_ChanSetting(1)'wap访问<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_0","")).text=template.pic(0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_1","")).text=template.pic(1)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_2","")).text=template.pic(2)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_3","")).text=template.pic(3)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"issearch_a","")).text=0<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"ForumUrl","")).text=Dvbbs.Get_ScriptNameUrl()<BR> If Dvbbs.Forum_setting(29)="1" Then<BR> If Not IsObject(Application(Dvbbs.CacheName & "_biruser")) Then<BR> Forum_BirUser()<BR> ElseIf Application(Dvbbs.CacheName & "_biruser").documentElement.selectSingleNode("@date").text <> CStr(Date()) Then<BR> Forum_BirUser()<BR> End If<BR> XMLDom.documentElement.appendChild(Application(Dvbbs.CacheName &"_biruser").documentElement.cloneNode(True))<BR> End If<BR> Rem ========================================================================================================================================<BR> Else<BR> Xpath="board[@parentid="&Dvbbs.BoardID&" and @depth="& CLng(XMLDom.documentElement.selectSingleNode("board[@boardid="& Dvbbs.boardid &"]/@depth").text)+1&"]"<BR> Xpath1="board[@boardid="& Dvbbs.Boardid&"]"<BR> End If<BR> If Dvbbs.BoardID<>0 Then<BR> Set Node=XMLDom.documentElement.appendChild(XMLDom.createNode(1,"forum_setting",""))<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_0","")).text=template.pic(0)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_1","")).text=template.pic(1)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_2","")).text=template.pic(2)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"pic_3","")).text=template.pic(3)<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"issearch_a","")).text=1<BR> End If<BR> For Each Node In XMLDom.documentElement.selectNodes(Xpath)<BR> BoardId=Node.selectSingleNode("@boardid").text<BR> If Not IsObject(Application(Dvbbs.CacheName &"_information_" & BoardID) ) Then Dvbbs.LoadBoardinformation BoardID<BR> LastPost=Node.appendChild(Application(Dvbbs.CacheName &"_information_" & BoardID).documentElement.firstChild.cloneNode(True)).selectSingleNode("@lastpost_2").text<BR> If Not IsDate(LastPost) Then LastPost=Now()<BR> If DateDiff("h",Dvbbs.Lastlogin,LastPost)=0 Then Node.attributes.setNamedItem(XMLDom.createNode(2,"newpost","")).text="1"<BR> XMLDom.documentElement.appendChild(Application(Dvbbs.CacheName &"_boardmaster").documentElement.selectSingleNode("boardmaster[@boardid='"& boardid &"']").cloneNode(True))<BR> Next<BR> XMLDOM.documentElement.attributes.setNamedItem(XMLDOM.createNode(2,"picurl","")).text=Dvbbs.Forum_PicUrl<BR> XMLDOM.documentElement.attributes.setNamedItem(XMLDOM.createNode(2,"lastupdate","")).text=Now()<BR> If CachePage Then <BR> Set Application(Dvbbs.CacheName & "_Pagecache_index_" & Dvbbs.BoardID)=XMLDOM.cloneNode(True)<BR> End If <BR>End Sub<BR>Sub BoardList()<BR> If Dvbbs.BoardID=0 Then<BR> ShowNews()<BR> ElseIf Application(Dvbbs.CacheName&"_boardlist").documentElement.selectSingleNode("board[@boardid="&dvbbs.boardid&"]/@nopost").text<>"1" Then <BR> ShowNews()<BR> End If<BR> Dim Node,ShowMod,Xpath1,BoardId<BR> If CachePage Then<BR> If Not IsObject(Application(Dvbbs.CacheName & "_Pagecache_index_" & Dvbbs.BoardID)) Then<BR> LoadBoardlistData()<BR> Else<BR> If DateDiff("s",Application(Dvbbs.CacheName & "_Pagecache_index_" & Dvbbs.BoardID).documentElement.selectSingleNode("@lastupdate").text,Now()) > CacheTime Then <BR> LoadBoardlistData()<BR> Else<BR> Set XmlDom=Application(Dvbbs.CacheName & "_Pagecache_index_" & Dvbbs.BoardID).cloneNode(True)<BR> End If<BR> End If <BR> Else<BR> LoadBoardlistData()<BR> End If<BR> If Dvbbs.GroupSetting(37)="0" Then<BR> For each node in XMLDOM.documentElement.selectNodes("board[@hidden=1]")<BR> XMLDom.documentElement.removeChild(node)<BR> Next<BR> End If<BR> If Dvbbs.BoardID=0 Then<BR> Xpath1="board[@depth=0]"<BR> Else<BR> Xpath1="board[@boardid="& Dvbbs.Boardid&"]"<BR> End If<BR> Set Node=XMLDom.documentElement.selectSingleNode("forum_setting")<BR> If Dvbbs.IsSearch Then<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"issearch","")).text=1<BR> Else<BR> Node.attributes.setNamedItem(XMLDom.createNode(2,"issearch","")).text=0<BR> End If<BR> For Each Node In XMLDom.documentElement.selectNodes(Xpath1)<BR> BoardId=Node.selectSingleNode("@boardid").text<BR> ShowMod=Request.Cookies("List")("list"&BoardId)<BR> If ShowMod<>"" And IsNumeric(ShowMod) Then<BR> Node.selectSingleNode("@mode").text=ShowMod<BR> End If <BR> Next<BR> If Dvbbs.BoardID=0 Then<BR> XMLDom.documentElement.appendChild(Dvbbs.UserSession.documentElement.firstChild.cloneNode(True))<BR> XMLDom.documentElement.appendChild(Dvbbs.UserSession.documentElement.lastChild.cloneNode(True))<BR> If Dvbbs.UserID <>0 Then<BR> '身份切换数据节点<BR> If UBound(Dvbbs.UserGroupParentID) <> -1 Then<BR> For Each Node In Dvbbs.UserGroupParentID<BR> XMLDom.documentElement.appendChild(XMLDom.createNode(1,"myusergroup","")).text=Node<BR> Next<BR> ElseIf Dvbbs.IsUserPermissionOnly = 1 Then<BR> XMLDom.documentElement.appendChild(XMLDom.createNode(1,"myusergroup","")).text=Dvbbs.UserSession.documentElement.selectSingleNode("<a href='mailto:userinfo/@usergroupid2").text' target="_blank" >userinfo/@usergroupid2").text</A><BR> End If<BR> End If<BR> End If<BR> If Dvbbs.Forum_ads(2)="1" or Dvbbs.Forum_ads(13)="1" Then Response.Write "<script language=""javascript"" src=""inc/Dv_Adv.js"" type=""text/javascript""></script>"<BR> transform_BoardList()<BR> If Dvbbs.Boardid=0 Then <BR> If Dvbbs.Forum_Setting(14)="1" Or Dvbbs.Forum_Setting(15)="1" Then <BR> Response.Write "<iframe style=""border:0px;width:0px;height:0px;"" src=""Online.asp?action=1&amp;Boardid=0"" name=""hiddenframe""></iframe>"<BR> Else<BR> Response.Write "<iframe style=""border:0px;width:0px;height:0px;"" src="""" name=""hiddenframe""></iframe>"<BR> End If<BR> End If<BR> If Dvbbs.Forum_ads(2)="1" or Dvbbs.Forum_ads(13)="1" Then<BR> Response.Write "<script language=""javascript"" type=""text/javascript"">" & vbNewLine<BR> If Dvbbs.Forum_ads(2)="1" Then Response.Write Chr(9) & "move_ad('"&Dvbbs.Forum_ads(3)&"','"&Dvbbs.Forum_ads(4)&"','"&Dvbbs.Forum_ads(5)&"','"&Dvbbs.Forum_ads(6)&"');" & vbNewLine<BR> If Dvbbs.Forum_ads(13)="1" Then Response.Write Chr(9) & "fix_up_ad('"& Dvbbs.Forum_ads(8) & "','" & Dvbbs.Forum_ads(10) & "','" & Dvbbs.Forum_ads(11) & "','" & Dvbbs.Forum_ads(9) & "');"& vbNewLine<BR> Response.Write vbNewLine&"</script>"<BR> End If <BR>End Sub<BR>Sub transform_BoardList()<BR> Dim proc,XMLStyle<BR> If (Not Response.IsClientConnected) and Dvbbs.userid=0 Then<BR> Response.Clear<BR> Session(Dvbbs.CacheName & "UserID")=empty<BR> Response.End<BR> Else<BR> If Not IsObject(Application(Dvbbs.CacheName & "_indextemplate_"& Dvbbs.SkinID)) Then<BR> Set Application(Dvbbs.CacheName & "_indextemplate_"& Dvbbs.SkinID)=Server.CreateObject("Msxml2.XSLTemplate" & MsxmlVersion)<BR> Set XMLStyle=Server.CreateObject("Msxml2.FreeThreadedDOMDocument"& MsxmlVersion)<BR> XMLStyle.loadxml template.html(0) ' Server.MapPath("index.xslt")<BR> Application(Dvbbs.CacheName & "_indextemplate_"& Dvbbs.SkinID).stylesheet=XMLStyle<BR> End If<BR> Set proc = Application(Dvbbs.CacheName & "_indextemplate_"& Dvbbs.SkinID).createProcessor()<BR> proc.input = XMLDom<BR> proc.transform()<BR> Response.Write proc.output<BR> Set XMLDom=Nothing <BR> Set proc=Nothing<BR> End If<BR>End Sub<BR>Sub ShowNews()<BR> Dim Rs,proc,NewsDom,XMLStyle<BR> If Not IsObject(Application(Dvbbs.CacheName & "_News")) Then<BR> Set Rs=Dvbbs.Execute("Select boardid,title,addtime,bgs From Dv_bbsnews order by id desc")<BR> Set Application(Dvbbs.CacheName & "_News")=Dvbbs.RecordsetToxml(rs,"news","")<BR> End If<BR> Set NewsDom=Application(Dvbbs.CacheName & "_News").cloneNode(True)<BR> NewsDom.documentElement.attributes.setNamedItem(NewsDom.createNode(2,"boardid","")).text=Dvbbs.BoardID<BR> If not IsObject(Application(Dvbbs.CacheName & "_shownews_"&Dvbbs.SkinID)) Then<BR> Set Application(Dvbbs.CacheName & "_shownews_"&Dvbbs.SkinID)=Server.CreateObject("Msxml2.XSLTemplate" & MsxmlVersion)<BR> Set XMLStyle=Server.CreateObject("Msxml2.FreeThreadedDOMDocument"& MsxmlVersion)<BR> If UBound(template.html)>3 Then<BR> XMLStyle.loadxml template.html(3)<BR> Else<BR> XMLStyle.load Server.MapPath(MyDbPath &"inc\Templates\Dv_News.xslt")<BR> End If<BR> Application(Dvbbs.CacheName & "_shownews_"&Dvbbs.SkinID).stylesheet=XMLStyle<BR> End If<BR> Set proc = Application(Dvbbs.CacheName & "_shownews_"&Dvbbs.SkinID).createProcessor()<BR> proc.input = NewsDom<BR> proc.transform()<BR> Response.Write proc.output<BR> Set NewsDom=Nothing <BR> Set proc=Nothing<BR>End Sub<BR>Sub LoadlinkList()<BR> Dim rs<BR> Set Rs=Dvbbs.Execute("select * From Dv_bbslink Order by islogo desc,id ")<BR> Set Application(Dvbbs.CacheName & "_link")=Dvbbs.RecordsetToxml(rs,"link","bbslink")<BR> Set Rs=Nothing<BR>End Sub<BR>Sub Forum_BirUser()<BR> Dim Rs,SQL,NowMonth,NowDate,todaystr0,todaystr1,node<BR> NowMonth=Month(Date())<BR> NowDate=Day(Date())<BR> If NowMonth< 10 Then<BR> todaystr0="0"&NowMonth<BR> Else<BR> todaystr0=CStr(NowMonth)<BR> End If<BR> If NowDate < 10 Then<BR> todaystr0=todaystr0&"-"&"0"&NowDate<BR> Else<BR> todaystr0=todaystr0&"-"&NowDate<BR> End If<BR> todaystr1=NowMonth&"-"&NowDate<BR> If todaystr0=todaystr1 Then<BR> SQL="select username,Userbirthday from [Dv_user] where Userbirthday like '%"&todaystr1&"' Order by UserID"<BR> Else<BR> SQL="select username,Userbirthday from [Dv_user] where Userbirthday like '%"&todaystr1&"' Or Userbirthday like '%"&todaystr0&"' Order by UserID"<BR> End If<BR> Set Rs=Dvbbs.Execute(SQL)<BR> Set Application(Dvbbs.CacheName & "_biruser")=Dvbbs.RecordsetToxml(rs,"user","biruser")<BR> Set Rs=Nothing<BR> For Each node In Application(Dvbbs.CacheName & "_biruser").documentElement.selectNodes("user")<BR> todaystr0=Node.selectSingleNode("@userbirthday").text<BR> If IsDate(todaystr0) Then<BR> Node.attributes.setNamedItem(Application(Dvbbs.CacheName & "_biruser").createNode(2,"age","")).text=datediff("yyyy",todaystr0,Now())<BR> Else<BR> Application(Dvbbs.CacheName & "_biruser").documentElement.removeChild(node)<BR> End If<BR> Next<BR> Application(Dvbbs.CacheName & "_biruser").documentElement.attributes.setNamedItem(Application(Dvbbs.CacheName & "_biruser").createNode(2,"date","")).text=Date()<BR>End Sub<BR>Function LoadToolsInfo()<BR> Dim Tools_Info,i,ShowTools,TempStr<BR> Dvbbs.Name="Plus_ToolsInfo"<BR> If Dvbbs.ObjIsEmpty() Then<BR> Dim Rs,Sql<BR> Sql = "Select ID,ToolsName From Dv_Plus_Tools_Info order by ID"<BR> Set Rs = Dvbbs.Plus_Execute(Sql)<BR> If Not Rs.Eof Then<BR> Sql = Rs.GetString(,, "§§§", "@#@", "")<BR> End If<BR> Rs.Close : Set Rs = Nothing<BR> Tools_Info = Split(Sql,"@#@")<BR> TempStr = "var ShowTools = new Array();" & vbNewLine<BR> For i=0 To Ubound(Tools_Info)-1<BR> ShowTools = Split(Tools_Info(i),"§§§")<BR> TempStr = TempStr & "ShowTools["&ShowTools(0)&"]='"&Replace(Replace(Replace(ShowTools(1),"\","<a>\\"),"'","\'"),chr(13),"")&"'</A>;"<BR> Next<BR> Dvbbs.value = TempStr & vbNewLine<BR> End If<BR> LoadToolsInfo = Dvbbs.value<BR>End Function</P>
<P>Sub Passport_Main()<BR> Dim UserID,ForumID,token,t,ForumMsg,toUrl,Passport<BR> UserID = Request("uid")<BR> ForumID = Request("fid")<BR> token = Request("token")<BR> Passport = Request("passport")<BR> t = Request("t")<BR> If UserID = "" Or Not IsNumeric(UserID) Then UserID = 0<BR> UserID = cCur(UserID)<BR> If ForumID = "" Or Not IsNumeric(ForumID) Then ForumID = 0<BR> ForumID = cCur(ForumID)<BR> If t = "" Or Not IsNumeric(t) Then t = 1<BR> t = cCur(t)<BR> If UserID = 0 Or ForumID = 0 Or token = "" Or Passport = "" Then<BR> Response.Write "非法的参数!"<BR> Response.End<BR> End If<BR> Dim iForumUrl<BR> Select Case t<BR> Case "1"<BR> ForumMsg = "<li>您成功的注册了论坛通行证帐号,请牢记您填写的通行证帐号和密码。"<BR> toUrl = "reg.asp?action=redir"<BR> Case "2"<BR> ForumMsg = "<li>login suc。"<BR> toUrl = "login.asp?action=redir"<BR> Case Else<BR> ForumMsg = "<li>您成功的注册了论坛通行证帐号,请牢记您填写的通行证帐号和密码。"<BR> toUrl = "index.asp"<BR> End Select<BR> iForumUrl = toUrl & "&ErrorCode=1&ErrorMsg="&ForumMsg&"&passport="&Passport&"&token="&token<BR>%><BR><html><BR><head><BR><!--禁止被框架--><BR><script type="text/javascript" language="JavaScript"><BR><!--<BR>if (top.location !== self.location) {<BR> top.location = "index.asp?w=1&t=<%=t%>&uid=<%=UserID%>&fid=<%=ForumID%>&passport=<%=Passport%>&token=<%=token%>";<BR>}<BR>--><BR></script><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><BR><title>欢迎访问<%=Dvbbs.Forum_Info(0)%></title><BR></head><BR><frameset border=0 rows=*,79 frameborder=0 framespacing=0><BR><frame longdesc="" src="<%=iForumUrl%>" name="MainWin" noresize frameborder="0" marginwidth=0 marginheight=0 scrolling="auto"><BR><frame longdesc="" src="<a href="http://www.dvbbs.net/passport/index.asp?uid=<%=UserID% target="_blank" >&fid=<%=ForumID%>&token=<%=token%>&t=<%=t%>&s=1">http://www.dvbbs.net/passport/index.asp?uid=<%=UserID%>&fid=<%=ForumID%>&token=<%=token%>&t=<%=t%>&s=1</A>" name="top" noresize frameborder="0" marginwidth=0 marginheight=0 scrolling="no"><BR></frameset></P>
<P><noframes><BR><a href="<a href="http://www.dvbbs.net" target="_blank" >http://www.dvbbs.net</A>" target="_top">动网论坛_国内最大的免费论坛软件服务提供</a> 版权所有 2005 <BR>此 html 框架集显示多个 web 页。若要查看此框架集,请使用支持 html 4.0 及更高版本的 web 浏览器。<BR></noframes><BR></html><BR><%<BR>End Sub<BR>%></P>
<P>以下是index.asp的模版page_index中template.html(0)的源码<br><?xml version="1.0" encoding="gb2312"?><br><xsl:stylesheet version="1.0" xmlns:xsl="<a href="http://www.w3.org/1999/XSL/Transform" target="_blank" >http://www.w3.org/1999/XSL/Transform</A>" ><br><xsl:output method="xml" omit-xml-declaration = "yes" indent="yes" version="4.0"/><br> <!--<br> Copyright (C) 2004,2005 AspSky.Net. All rights reserved.<br> Written by dvbbs.net Lao Mi<br> Web: <a href="http://www.aspsky.net/,http://www.dvbbs.net/" target="_blank" >http://www.aspsky.net/,http://www.dvbbs.net/</A><br> Email: <a href="mailto:eway@aspsky.net" target="_blank" >eway@aspsky.net</A><br> --></P>
<P><xsl:template match="/"><br><xsl:if test="<a href='mailto:BoardList/@boardid=0" target="_blank" ><xsl:call-template'>BoardList/@boardid=0"><xsl:call-template</A> name="welcome" /></xsl:if><br><xsl:call-template name="main" /><br><xsl:if test="<a href='mailto:BoardList/@boardid=0" target="_blank" ><xsl:call-template'>BoardList/@boardid=0"><xsl:call-template</A> name="link" /><xsl:call-template name="index_bottom" /></xsl:if><br></xsl:template><br><xsl:template name="main"><br><iframe style="border:0px;width:0px;height:0px;" src="" name="hiddenframe1"></iframe><br><xsl:variable name="boardid" select="<a href='mailto:BoardList/@boardid"/' target="_blank" >BoardList/@boardid"/</A>><br><xsl:choose><br><xsl:when test="$boardid=0"><br><xsl:for-each select="BoardList/board[@parentid =$boardid]"><br><div class="th" style="margin-top:10px;"><br><span id="<a href='mailto:titlepic_{@boardid}" target="_blank" ><a'>titlepic_{@boardid}"><a</A> target="hiddenframe1"><br><xsl:choose><br> <xsl:when test="@mode!='0'"><xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=0&amp;id=<xsl:value-of select="@boardid"/></xsl:attribute><br> <img alt="切换到列表模式" src="<a href='mailto:{/BoardList/@picurl}plus.gif"/' target="_blank" >{/BoardList/@picurl}plus.gif"/</A>><br> </xsl:when><br> <xsl:otherwise><br> <xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=1&amp;id=<xsl:value-of select="@boardid"/><br> </xsl:attribute><br> <img alt="切换到简洁模式" src="<a href="mailto:{/BoardList/@picurl}nofollow.gif" target="_blank" >{/BoardList/@picurl}nofollow.gif</A>" border="0"/><br> </xsl:otherwise><br> </xsl:choose></a></span><br><a href="<a href="mailto:index.asp?boardid={@boardid" target="_blank" >index.asp?boardid={@boardid</A>}" title="进入本分类论坛<a href='mailto:" target="_blank" ><xsl:value-of select="@boardtype'>"><xsl:value-of select="@boardtype</A>" disable-output-escaping="yes" /></a><br></div><br><xsl:choose><br> <xsl:when test="@mode!='0'"><br> <xsl:variable name="tdcount"><br> <xsl:choose><br> <xsl:when test="@simplenesscount=0">4</xsl:when><br> <xsl:otherwise><xsl:value-of select="@simplenesscount" /></xsl:otherwise><br> </xsl:choose><br> </xsl:variable><br> <xsl:variable name="tdwidth"><xsl:value-of select="floor((99.9 div $tdcount))"/>%</xsl:variable><br> <xsl:call-template name="showboard2"><br> <xsl:with-param name="parentid" select="@boardid"/><br> <xsl:with-param name="tdcount" select="$tdcount"/><br> <xsl:with-param name="tdwidth" select="$tdwidth"/><br> <xsl:with-param name="positions" select="0"/><br> </xsl:call-template><br> </xsl:when><br> <xsl:otherwise><br> <xsl:call-template name="showboard1"><br> <xsl:with-param name="parentid" select="@boardid"/><br> </xsl:call-template><br> </xsl:otherwise><br></xsl:choose><br></xsl:for-each><br></xsl:when><br><xsl:otherwise><br><xsl:for-each select="BoardList/board[@boardid =$boardid and @child !=0]"><br><div class="th"><br><span id="<a href='mailto:titlepic_{@boardid}" target="_blank" ><a'>titlepic_{@boardid}"><a</A> target="hiddenframe1"><br><xsl:choose><br> <xsl:when test="@mode!='0'"><xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=0&amp;id=<xsl:value-of select="@boardid"/></xsl:attribute><br> <img alt="切换到列表模式" src="<a href='mailto:{/BoardList/@picurl}plus.gif"/' target="_blank" >{/BoardList/@picurl}plus.gif"/</A>><br> </xsl:when><br> <xsl:otherwise><br> <xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=1&amp;id=<xsl:value-of select="@boardid"/><br> </xsl:attribute><br> <img alt="切换到简洁模式" src="<a href="mailto:{/BoardList/@picurl}nofollow.gif" target="_blank" >{/BoardList/@picurl}nofollow.gif</A>" border="0"/><br> </xsl:otherwise><br> </xsl:choose></a></span><br><xsl:value-of select="@boardtype" disable-output-escaping="yes" />-论坛列表<br></div><br><xsl:choose><br> <xsl:when test="@mode!='0'"><br> <xsl:variable name="tdcount"><br> <xsl:choose><br> <xsl:when test="@simplenesscount=0">4</xsl:when><br> <xsl:otherwise><xsl:value-of select="@simplenesscount" /></xsl:otherwise><br> </xsl:choose><br> </xsl:variable><br> <xsl:variable name="tdwidth"><xsl:value-of select="floor((99.9 div $tdcount))"/>%</xsl:variable><br> <xsl:call-template name="showboard2"><br> <xsl:with-param name="parentid" select="@boardid"/><br> <xsl:with-param name="tdcount" select="$tdcount"/><br> <xsl:with-param name="tdwidth" select="$tdwidth"/><br> <xsl:with-param name="positions" select="0"/><br> </xsl:call-template><br> </xsl:when><br> <xsl:otherwise><br> <xsl:call-template name="showboard1"><br> <xsl:with-param name="parentid" select="@boardid"/><br> </xsl:call-template><br> </xsl:otherwise><br></xsl:choose><br></xsl:for-each><br><br /><br></xsl:otherwise><br></xsl:choose><br></xsl:template><br><xsl:template name="showboard2"><br><xsl:param name="parentid"/><br><xsl:param name="tdwidth"/><br><xsl:param name="positions"/><br><xsl:param name="tdcount"/><br><div class="mainbar" style="height:60px;overflow :hidden;line-height:18px;"><br><xsl:for-each select="/BoardList/board[@parentid = $parentid][position() &gt; $positions and position() &lt; ($tdcount+$positions+1)]"><br><xsl:variable name="boardid" select="@boardid"/><br><div title="<a href="mailto:{@readme" target="_blank" >{@readme</A>}"><br><xsl:if test="last()!=position()"><xsl:attribute name="class">index_left_states</xsl:attribute></xsl:if><br><xsl:attribute name="style">height:60px;width:<xsl:value-of select="$tdwidth"/>;text-align :left;text-indent:5px;<xsl:if test="last()=position()">float:left;</xsl:if></xsl:attribute><br><div><a href="index.asp?boardid={$boardid}"> <xsl:if test="count(../board[@parentid=$boardid]) != 0"><xsl:attribute name="title">有<xsl:value-of select="count(../board[@parentid=$boardid])"/>个下属论坛</xsl:attribute></xsl:if><xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a><xsl:if test="count(../board[@parentid=$boardid]) !=0"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>,1),0);</xsl:attribute>(<xsl:value-of select="count(../board[@parentid=$boardid])"/>)</a></xsl:if></div><br><div>今日贴:<font color="red"><xsl:value-of select="concat(' ',information/@todaynum,' ')"/></font>主题贴:<xsl:value-of select="concat(' ',information/@topicnum,' ')"/></div><br><div>发贴总数:<xsl:value-of select="concat(' ',information/@postnum)"/></div><br></div><br></xsl:for-each><br></div><br><div class="mainbar2" style="height:25px;overflow :hidden;"><br><xsl:for-each select="/BoardList/board[@parentid = $parentid][position() &gt; $positions and position() &lt; ($tdcount+$positions+1)]"><br><xsl:variable name="boardid" select="@boardid"/><br><div><br><xsl:if test="last()!=position()"><xsl:attribute name="class">list1</xsl:attribute></xsl:if><br><xsl:attribute name="style">height:25px;width:<xsl:value-of select="$tdwidth"/>;text-align :left;text-indent:5px;<xsl:if test="last()=position()">float:left;</xsl:if></xsl:attribute><br><xsl:choose><br> <xsl:when test="/BoardList/boardmaster[@boardid=$boardid]/master">版主:<xsl:for-each select="/BoardList/boardmaster[@boardid=$boardid]/master"> <a href="dispuser.asp?name={.}" title="查看版主{.}的资料" target="_blank"><xsl:value-of select="."/></a> </xsl:for-each></xsl:when><br> <xsl:otherwise> 此版暂无版主 </xsl:otherwise><br></xsl:choose><br></div><br></xsl:for-each><br></div><br><xsl:if test="/BoardList/board[@parentid = $parentid][position() &gt; ($tdcount+$positions)]"><br><xsl:call-template name="showboard2"><br><xsl:with-param name="parentid" select="$parentid"/><br><xsl:with-param name="tdwidth" select="$tdwidth"/><br><xsl:with-param name="positions" select="($positions+$tdcount)"/><br><xsl:with-param name="tdcount" select="$tdcount"/><br></xsl:call-template><br></xsl:if><br></xsl:template><br><xsl:template name="showboard1"><br><xsl:param name="parentid"/><br><xsl:for-each select="/BoardList/board[@parentid = $parentid ]"><br><xsl:variable name="boardid" select="@boardid"/><br><div class="mainbar" style="height:60px;"><br><div class="index_right" style="height:44px;line-height:normal;margin-top:8px;"><br> <xsl:choose><br> <xsl:when test="@checkout='1'"><br> <div style="margin-top:18px;">认证论坛,请认证用户进入浏览</div><br> </xsl:when><br> <xsl:otherwise><br> <div>主题:<a href="<a href='mailto:dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1" target="_blank" ><xsl:value-of'>dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1"><xsl:value-of</A> select="<a href="mailto:information/@lastpost_3" target="_blank" >information/@lastpost_3</A>" disable-output-escaping="yes" /></a></div><br> <div>发贴:<a href="<a href='mailto:dispuser.asp?id={information/@lastpost_5}" target="_blank" ><xsl:value-of'>dispuser.asp?id={information/@lastpost_5}"><xsl:value-of</A> select="</div'>information/@lastpost_0"/></a></div</A>><br> <div>日期:<xsl:value-of select="<a href='mailto:information/@lastpost_2"/ target="_blank" ><a'>information/@lastpost_2"/><a</A> href="<a href="mailto:Dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1" target="_blank" >Dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1</A>" title="主题:<a href='mailto:{information/@lastpost_3}" target="_blank" ><img'>{information/@lastpost_3}"><img</A> border="0" src="Skins/Default/lastpost.gif" alt=""/></a></div><br> </xsl:otherwise><br> </xsl:choose><br></div></P>
[align=right][color=#000066][此贴子已经被作者于2007-2-13 15:39:46编辑过][/color][/align]
<P>接上段源码<br>以下是index.asp的模版page_index中template.html(0)的(下半段的)源码<br><div class="index_left_states"><img><br> <xsl:choose><br> <xsl:when test="@checkout=1"><br> <xsl:attribute name="title">认证论坛,<xsl:choose><br> <xsl:when test="@newpost=1">有新贴子</xsl:when><br> <xsl:otherwise>无新贴子</xsl:otherwise><br> </xsl:choose><br> </xsl:attribute><br> <xsl:attribute name="src"><xsl:value-of select="<A>/BoardList/forum_setting/@pic_2"/></xsl:attribute</A>><br> </xsl:when><br> <xsl:when test="@checklock=1"><br> <xsl:attribute name="title">锁定论坛,<xsl:choose><br> <xsl:when test="@newpost=1">有新贴子</xsl:when><br> <xsl:otherwise>无新贴子</xsl:otherwise><br> </xsl:choose><br> </xsl:attribute><br> <xsl:attribute name="src"><xsl:value-of select="<A>/BoardList/forum_setting/@pic_2"/></xsl:attribute</A>><br> </xsl:when><br> <xsl:otherwise><br> <xsl:choose><br> <xsl:when test="@newpost=1"><xsl:attribute name="alt">开放的论坛,有新贴子</xsl:attribute><br> <xsl:attribute name="src"><xsl:value-of select="<A>/BoardList/forum_setting/@pic_1"/></xsl:attribute</A>><br> </xsl:when><br> <xsl:otherwise><xsl:attribute name="alt">开放的论坛,无新贴子</xsl:attribute><br> <xsl:attribute name="src"><xsl:value-of select="<A>/BoardList/forum_setting/@pic_0"/></xsl:attribute</A>><br> </xsl:otherwise><br> </xsl:choose><br> </xsl:otherwise><br> </xsl:choose></img></div><br><div style="text-align :left;"><br> <xsl:if test="@indeximg!=''"><a href="index.asp?boardid=180"><img src="<a href="mailto:{@indeximg" target="_blank" >{@indeximg</A>}" alt="" class="boardlogo"/></a></xsl:if><br> <div><a href="index.asp?boardid=180"> <xsl:if test="count(../board[@parentid=$boardid]) != 0"><xsl:attribute name="title">有<xsl:value-of select="count(../board[@parentid=$boardid])"/>个下属论坛</xsl:attribute></xsl:if><xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a><xsl:if test="count(../board[@parentid=$boardid]) !=0"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>,1),0);</xsl:attribute>(<xsl:value-of select="count(../board[@parentid=$boardid])"/>)</a></xsl:if></div><br> <div style="overflow :hidden;height:38px;"><font face="Arial"><img alt="" src="Skins/Default/Forum_readme.gif" align="middle"/><xsl:value-of select="@readme" disable-output-escaping="yes"/></font></div><br></div><br></div><br><div class="mainbar2" style="height:25px;overflow :hidden;"><br><div class="index_right" style="height:25px;"><br><img src="Skins/Default/Forum_today.gif" alt="今日发贴数" style="margin-top:8px;"/><font color="red"><xsl:value-of select="concat(' ',information/@todaynum,' ')"/></font><br><img src="Skins/Default/forum_topic.gif" alt="主题贴数" /><xsl:value-of select="concat(' ',information/@topicnum,' ')"/><br><img src="Skins/Default/Forum_post.gif" alt="发贴总数" /><xsl:value-of select="concat(' ',information/@postnum)"/><br></div><br><div class="index_left_states" style="height:25px;"></div><br><div style="text-align : left; text-indent:5px;"><br><xsl:choose><br><xsl:when test="<A>/BoardList/forum_setting/@issearch=1</A>"><br><a href="index.asp?BoardID=180&amp;Page=2" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第二页">[2]</a> <br><a href="index.asp?BoardID=180&amp;Page=3" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第三页">[3]</a> <br><a href="index.asp?BoardID=180&amp;Page=4" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第四页">[4]</a> <br><a href="index.asp?BoardID=180&amp;Page=5" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第五页">[5]</a> <br><a href="index.asp?BoardID=180&amp;Page=6" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第六页">[6]</a> <br><a href="index.asp?BoardID=180&amp;Page=7" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第七页">[7]</a> <br><a href="index.asp?BoardID=180&amp;Page=8" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第八页">[8]</a> <br><a href="index.asp?BoardID=180&amp;Page=9" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第九页">[9]</a> <br><a href="index.asp?BoardID=180&amp;Page=10" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十页">[10]</a> <br></xsl:when><br><xsl:otherwise><br><xsl:choose><br> <xsl:when test="/BoardList/boardmaster[@boardid=$boardid]/master">版主:<xsl:for-each select="/BoardList/boardmaster[@boardid=$boardid]/master"> <a href="dispuser.asp?name={.}" title="查看版主{.}的资料" target="_blank"><xsl:value-of select="."/></a> </xsl:for-each></xsl:when><br> <xsl:otherwise> 此版暂无版主 </xsl:otherwise><br></xsl:choose><br></xsl:otherwise><br></xsl:choose><br><xsl:if test="<A>/BoardList/forum_setting/@issearch=1</A> and <A>/BoardList/forum_setting/@issearch_a=1</A>"><br><a href="index.asp?BoardID=180&amp;Page=11" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十一页">[11]</a> <br><a href="index.asp?BoardID=180&amp;Page=12" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十二页">[12]</a> <br><a href="index.asp?BoardID=180&amp;Page=13" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十三页">[13]</a> <br><a href="index.asp?BoardID=180&amp;Page=14" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十四页">[14]</a> <br><a href="index.asp?BoardID=180&amp;Page=15" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十五页">[15]</a> <br><a href="index.asp?BoardID=180&amp;Page=16" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十六页">[16]</a> <br><a href="index.asp?BoardID=180&amp;Page=17" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十七页">[17]</a> <br><a href="index.asp?BoardID=180&amp;Page=18" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十八页">[18]</a> <br><a href="index.asp?BoardID=180&amp;Page=19" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第十九页">[19]</a> <br><a href="index.asp?BoardID=180&amp;Page=20" title="<a href="mailto:{@boardtype" target="_blank" >{@boardtype</A>}第二十页">[20]</a> <br></xsl:if><br></div><br></div><br></xsl:for-each><br></xsl:template><br><xsl:template name="welcome"><br><div class="th"></div><br><div class="mainbar" style="height:120px;text-align :left;"><br><div id="tdleft" style="height:120px; "><br><div style="padding:10px;"><br><xsl:choose><br> <xsl:when test="<a href='mailto:BoardList/userinfo/@userid=0" target="_blank" ><xsl:call-template'>BoardList/userinfo/@userid=0"><xsl:call-template</A> name="guest" /></xsl:when><br> <xsl:otherwise><xsl:call-template name="userinfo" /></xsl:otherwise><br></xsl:choose><br></div><br></div><br><div style="height:120px;float:left;width:320px;" ><br><div style="padding:10px;"><br><div style="float:left;width:140px;height:20px;line-height:20px;">会员总数:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_usernum"/ target="_blank" ></b'>BoardList/forum_info/@forum_usernum"/></b</A>> 人</div><div style="float:left;height:20px;line-height:20px;">最新会员:[ <a href="<a href="mailto:dispuser.asp?name={BoardList/forum_info/@forum_lastuser" target="_blank" >dispuser.asp?name={BoardList/forum_info/@forum_lastuser</A>}" target="_blank"><b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_lastuser"/ target="_blank" ></b></a'>BoardList/forum_info/@forum_lastuser"/></b></a</A>> ]</div><br><br /><hr/><br><div style="float:left;width:140px;height:20px;line-height:20px;">今日发帖:<font class="redfont"><b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_todaynum"/ target="_blank" ></b></font'>BoardList/forum_info/@forum_todaynum"/></b></font</A>> 篇</div><br><div style="float:left;height:20px;line-height:20px;"> 主题总数:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_topicnum"/ target="_blank" ></b'>BoardList/forum_info/@forum_topicnum"/></b</A>> 篇</div><br><div style="float:left;width:140px;height:20px;line-height:20px;">昨日发帖:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_yesterdaynum"/ target="_blank" ></b'>BoardList/forum_info/@forum_yesterdaynum"/></b</A>> 篇</div><br><div style="float:left;height:20px;line-height:20px;"> 帖子总数:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_postnum"/ target="_blank" ></b'>BoardList/forum_info/@forum_postnum"/></b</A>> 篇</div><br><div style="float:left;width:330px;">最高日发帖:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_maxpostnum"/ target="_blank" ></b'>BoardList/forum_info/@forum_maxpostnum"/></b</A>> 篇,发生时间:<xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_maxpostdate"/ target="_blank" ></div'>BoardList/forum_info/@forum_maxpostdate"/></div</A>><br></div><br></div><br></div><br><div class="mainbar1" style="text-align :left;height:36px;line-height:28px;"><br><xsl:if test="<a href="mailto:BoardList/forum_setting/@rss=0" target="_blank" >BoardList/forum_setting/@rss=0</A> or <a href="mailto:BoardList/forum_setting/@wap=1" target="_blank" >BoardList/forum_setting/@wap=1</A>"><br><div class="tableborder5" style="text-align :center;line-height:18px;height:20px;float:right;margin-right:2px;margin-top:6px;font-size:9px;font-family:tahoma,arial;"><br><div class="tabletitle1" style="float:left;width:25px;margin : 1px; 1px; 1px; 1px;">XML</div><br><xsl:if test="<a href='mailto:BoardList/forum_setting/@rss=0" target="_blank" ><div'>BoardList/forum_setting/@rss=0"><div</A> style="float:left;width:45px;margin: 1px 1px 1px 1px ;background-color : #fff;border:1px inset;line-height:16px;"><a href="<a href="http://rss.iboker.com/sub/?{BoardList/forum_setting/@ForumUrl}rssfeed.asp" target="_blank" >http://rss.iboker.com/sub/?{BoardList/forum_setting/@ForumUrl}rssfeed.asp</A>" target="_blank" title="订阅本站面最新帖子">RSS 2.0</a></div></xsl:if><br><xsl:if test="<a href='mailto:BoardList/forum_setting/@wap=1" target="_blank" ><div'>BoardList/forum_setting/@wap=1"><div</A> class="tabletitle1" style="float:left;width:25px;margin :1px;"><a href="wap.asp?Action=readme" target="_blank" title="通过手机访问论坛,把论坛动起来" style="color:#fff;">WAP</a></div></xsl:if><br></div><br></xsl:if><br><div style="float:left;padding:3px;width:49%;height:28px;" ><br><div style="float:left;"><a href="<a href="http://www.yisou.com/search?pid=400107_1006" target="_blank" >http://www.yisou.com/search?pid=400107_1006</A>" target="_blank"><img src="<a href="http://server.dvbbs.net/dvbbs/yisou.gif" target="_blank" >http://server.dvbbs.net/dvbbs/yisou.gif</A>" border="0" alt="一 搜" style="margin-top:10px;margin-left:10px;margin-right:6px;" align="absmiddle"/></a></div><br><form method="POST" action="query.asp" target="_blank"><br><input type="hidden" value="2" name="isWeb"/><br><input type="hidden" value="8" name="stype"/><br><div style="float:left;"><br><input name="keyword" size="20" value="关键字" onmouseover="this.focus()" onblur="if (this.value =='') this.value='请输入关键字' " onfocus="this.select()" onclick="if(this.value=='请输入关键字')this.value=''" style="height : 18px;border:solid 1px #D4D4D4;BACKGROUND-COLOR: #FAFAFA;COLOR: #4d4d4d;FONT-FAMILY: Arial; margin-top:3px;margin-left:0px;margin-right:5px;"/><br></div><br><div style="float:left;"><br><input style="border:solid 1px #D4D4D4;BACKGROUND-COLOR: #FAFAFA; height : 22px;COLOR: #4d4d4d;FONT-FAMILY: Arial; FONT-SIZE:11.5px;margin-top:3px;margin-left:5px;margin-right:5px;" type="submit" value="搜一搜" name="submit"/><br></div><br></form><br></div><br><div style="float:left;padding:3px 0px;height:28px;text-indent:20px;" ><br><a href="query.asp?stype=3&amp;pSearch=0&amp;nSearch=0">查看新贴</a> <br><font face="Wingdings" color="666666">v</font> <br><a href="query.asp?stype=4&amp;pSearch=0&amp;nSearch=0">热门话题</a> <br><font face="Wingdings" color="666666">v</font> <br><a href="infolist.asp?t=toplist&amp;orders=1">发贴排行</a> <br><font face="Wingdings" color="666666">v</font> <br><a href="infolist.asp?t=toplist&amp;orders=7">用户列表</a><br></div><br></div><br></xsl:template><br><xsl:template name="userinfo"><br><div style="float:left;width:80px;height:100px;overflow :hidden;"><a href="<a href="mailto:dispuser.asp?id={BoardList/userinfo/@userid" target="_blank" >dispuser.asp?id={BoardList/userinfo/@userid</A>}" title="查看我的信息"><img src="<a href="mailto:{BoardList/userinfo/@userface" target="_blank" >{BoardList/userinfo/@userface</A>}" alt="查看我的信息" height="60" style="margin-top:12px;margin-left:2px;border:0px"/></a></div><br><div style="float:left;"><br><div>您的帐号 <b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@username" target="_blank" >BoardList/userinfo/@username</A>" /></b> <a href="usersms.asp?action=inbox">收件箱</a><br><xsl:choose><br> <xsl:when test="<a href="mailto:BoardList/userinfo/@usermsg" target="_blank" >BoardList/userinfo/@usermsg</A> !=''"><br> <xsl:variable name="sendmsgnum" select="substring-before(<a href="mailto:BoardList/userinfo/@usermsg" target="_blank" >BoardList/userinfo/@usermsg</A> ,'||')"></xsl:variable><br> <xsl:variable name="sendmsgid" select="substring-before(substring-after(<a href="mailto:BoardList/userinfo/@usermsg" target="_blank" >BoardList/userinfo/@usermsg</A> ,'||') ,'||')"></xsl:variable><br> <xsl:variable name="sendmsguser" select="substring-after(substring-after(<a href="mailto:BoardList/userinfo/@usermsg" target="_blank" >BoardList/userinfo/@usermsg</A> ,'||') ,'||')"></xsl:variable><br> <xsl:choose><br> <xsl:when test="$sendmsgnum != 0 "><bgsound src="skins/default/mail.wav" />(<a href="javascript:openScript('messanger.asp?action=read&amp;id={$sendmsgid}&amp;sender={$sendmsguser}',500,400)"><font class="redfont"><xsl:value-of select="$sendmsgnum" /></font></a>)</xsl:when><br> <xsl:otherwise>(<font color="gray">0</font>) </xsl:otherwise><br> </xsl:choose><br> </xsl:when><br> <xsl:otherwise><br>(<font color="gray">0</font>) <br> </xsl:otherwise><br></xsl:choose><br><xsl:value-of select="' '" /><br><xsl:if test="BoardList/myusergroup"><br><div class="menu_popup" id="regroup"><br><div class="menuitems"><br> <xsl:for-each select="BoardList/myusergroup"><br> <xsl:variable name="groupid" select="."/><br> <a href="cookies.asp?action=ReGroup&amp;GroupID={.}"><xsl:value-of select="/BoardList/grouppic/usergroup[@usergroupid = $groupid]/@usertitle" /></a><br /><br> </xsl:for-each><br></div><br></div><br><a onmouseover="showmenu(event,'','regroup')" style="cursor:hand">切换用户身份</a></xsl:if></div><br><hr/><br><div>注册:<b><xsl:value-of select="substring-before(<a href="mailto:BoardList/userinfo/@joindate,'" target="_blank" >BoardList/userinfo/@joindate,'</A> ')" /></b> 登录 <b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@userlogins" target="_blank" >BoardList/userinfo/@userlogins</A>" /></b> 次 等级:<b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@userclass" target="_blank" >BoardList/userinfo/@userclass</A>" /></b></div><br><div>金钱:<b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@userwealth" target="_blank" >BoardList/userinfo/@userwealth</A>" /></b> 积分:<b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@userep" target="_blank" >BoardList/userinfo/@userep</A>" /></b> 魅力:<b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@usercp" target="_blank" >BoardList/userinfo/@usercp</A>" /></b></div><br><div>主题:<b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@usertopic" target="_blank" >BoardList/userinfo/@usertopic</A>" /></b> 文章:<b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@userpost" target="_blank" >BoardList/userinfo/@userpost</A>" /></b> 精华:<font class="redfont"><b><xsl:value-of select="<a href="mailto:BoardList/userinfo/@userisbest" target="_blank" >BoardList/userinfo/@userisbest</A>" /></b></font> 被删:<b><xsl:value-of select="translate(<a href="mailto:BoardList/userinfo/@userdel,'-',''" target="_blank" >BoardList/userinfo/@userdel,'-',''</A>)" /></b></div><br></div><br></xsl:template><br><xsl:template name="guest"><br><div style="float:right;margin-right:20px;"><br><div>欢迎访问 <b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_type"/ target="_blank" ></b'>BoardList/forum_info/@forum_type"/></b</A>> 您还没有[<a href="reg.asp" class="cblue">注册</a>]或[<a href="login.asp" class="cblue">登录</a>]</div><br><form action="login.asp?action=chk" method="post"><br><div>用户帐号:<input tyep="text" name="username" size="12" /><xsl:if test="<a href="mailto:BoardList/forum_setting/@logincheckcode=1" target="_blank" >BoardList/forum_setting/@logincheckcode=1</A>"> 验证码:<input type="text" name="codestr" size="4" /><img src="DV_getcode.asp" height="18" alt="验证码,看不清楚?请点击刷新验证码" style="cursor : pointer;" onclick="this.src='DV_getcode.asp'"/></xsl:if></div><br><div>用户密码:<input type="password" name="password" size="12" /> Cookie <select name="CookieDate"><option value="0" selected="selected">不保存</option><option value="1">保存一天</option><option value="2">保存一月</option><option value="3">保存一年</option></select> <input type="submit" name="submit" value="登录" /></div><br></form><br><div style="margin-top:10px;"><br><form action="login.asp?action=chk" method="post"><br><a href="<a href="http://www.dvbbs.net/passport/help.asp" target="_blank" >http://www.dvbbs.net/passport/help.asp</A>" target="_blank" title="注册论坛通行证可让您使用一个帐号通行于国内大部分的网络论坛社区,点击查看更详细帮助">通<xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text>行<xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text>证</a><xsl:text disable-output-escaping="yes" >&amp;nbsp;</xsl:text>:<input type="text" name="passport" size="12" /> <input type="submit" name="submit" value="论坛通行证登录" /> [ <a href="lostpass.asp"> 忘记密码</a> ] </form> </div><br></div><br></xsl:template><br><xsl:template name="link"><br><div class="th" style="margin-top:12px;"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>-=> 友情论坛</div><br><div class="mainbar3"><br><div style="padding:10px;line-height:20px;"><br><xsl:for-each select="BoardList/bbslink/link[@islogo=0]"><br><div style="float:left;width:16%;text-align : left;height:20px;"><a href="<a href="mailto:{@url" target="_blank" >{@url</A>}" title="<a href="mailto:{@readme" target="_blank" >{@readme</A>}" target="_blank" ><xsl:value-of select="@boardname"/></a></div><xsl:if test="(position() mod 6)=0 "><br /></xsl:if><br></xsl:for-each><br></div><br><xsl:if test="count(BoardList/bbslink/link[@islogo=0]) mod 6 !=0"><br /></xsl:if><br><hr style="width:98%;"/><br><div style="padding:10px;line-height:40px;"><br><xsl:for-each select="BoardList/bbslink/link[@islogo=1]"><br><div style="float:left;width:16%;text-align : left;height:40px;" title="<a href="mailto:{@boardname" target="_blank" >{@boardname</A>}<br><a href="mailto:{@readme" target="_blank" >{@readme</A>}"> <a href="<a href="mailto:{@url" target="_blank" >{@url</A>}" target="_blank" ><img border="0" src="<a href="mailto:{@logo" target="_blank" >{@logo</A>}" height="31" width="88" alt="<a href="mailto:{@boardname" target="_blank" >{@boardname</A>}<br><a href="mailto:{@readme" target="_blank" >{@readme</A>}" /></a></div><xsl:if test="(position() mod 6)=0 "><br /></xsl:if><br></xsl:for-each><br><xsl:if test="BoardList/bbslink/link[@islogo=1]"><br /></xsl:if><br></div><br></div><br><xsl:if test="BoardList/biruser"><br><br /><br><div class="th"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>≡ 今天过生日的用户(共 <xsl:value-of select="count(BoardList/biruser/user)"/> 人)≡</div><br><div class="mainbar3"><br><div style="padding:10px;line-height:20px;"><br><xsl:for-each select="BoardList/biruser/user"><div style="float:left;width:25%;text-align : left;height:20px;"><br><img src="<a href="mailto:{/BoardList/forum_setting/@pic_3" target="_blank" >{/BoardList/forum_setting/@pic_3</A>}" alt="" />〖祝 <a href="<a href="mailto:dispuser.asp?name={@username" target="_blank" >dispuser.asp?name={@username</A>}" title="祝<a href="mailto:{@age" target="_blank" >{@age</A>}岁生日快乐!" target="_blank"><xsl:value-of select="@username" /></a> 生日快乐〗<br></div><br><xsl:if test="(position() mod 4)=0 or position()=last()"><br /></xsl:if><br></xsl:for-each><br></div><br></div><br></xsl:if><br></xsl:template><br><xsl:template name="index_bottom"><br><br /><br><div class="th"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>-=> 论坛在线情况 [<span id="showstr"><a href="online.asp?action=1&amp;boardid=0" target="hiddenframe"><font id="ifOnlineStr">显示详细列表</font></a></span>] [<a href="boardstat.asp?reaction=online">查看在线用户位置</a>]</div><br><div class="mainbar3" style="height:65px;border-bottom:0px; "><br><div style="padding:5px 10px 0px 10px;line-height:20px;height:60px;"><br><div style="float:left;width:30%;text-align : left;"><br><font class="bluefont">■</font> 当前在线:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_online"/ target="_blank" ></b'>BoardList/forum_info/@forum_online"/></b</A>> 人<br /><br><font class="bluefont">■</font> 在线会员:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_useronline"/ target="_blank" ></b'>BoardList/forum_info/@forum_useronline"/></b</A>> 人<br /><br><font class="bluefont">■</font> 在线访客:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_guestonline"/ target="_blank" ></b'>BoardList/forum_info/@forum_guestonline"/></b</A>> 人<br></div><br><div style="float:left;width:30%;text-align : left;"><br><font class="bluefont">■</font> 建站时间:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_createtime"/ target="_blank" ></b><br'>BoardList/forum_info/@forum_createtime"/></b><br</A> /><br><font class="bluefont">■</font> 最高在线:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_maxonline"/ target="_blank" ></b'>BoardList/forum_info/@forum_maxonline"/></b</A>> 人<br /> <br><font class="bluefont">■</font> 发生时间:<b><xsl:value-of select="<a href='mailto:BoardList/forum_info/@forum_maxonlinedate"/ target="_blank" ></b'>BoardList/forum_info/@forum_maxonlinedate"/></b</A>><br></div><br><div style="float:left;width:39%;text-align : left;"><br><font class="bluefont">■</font> 您的IP是:<b><xsl:value-of select="<a href='mailto:BoardList/agent/@ip"/ target="_blank" ></b><br'>BoardList/agent/@ip"/></b><br</A> /><br><font class="bluefont">■</font> 操作系统:<b><xsl:value-of select="<a href='mailto:BoardList/agent/@platform"/ target="_blank" ></b><br'>BoardList/agent/@platform"/></b><br</A> /><br><font class="bluefont">■</font> 浏 览 器:<b><xsl:value-of select="concat(<a href="mailto:BoardList/agent/@browser,'" target="_blank" >BoardList/agent/@browser,'</A> ',BoardList/agent/@version)"/></b><br></div><br></div><br></div><br><div class="mainbar3"><br><div style="padding:0px 10px 0px 10px;line-height:18px;height:18px;text-align : left;"><br><font class="redfont">■ 在线图例</font>:<xsl:for-each select="BoardList/grouppic/usergroup[@orders!=0]"><img src="<a href="mailto:{/BoardList/@picurl}{@titlepic" target="_blank" >{/BoardList/@picurl}{@titlepic</A>}" alt=""/><xsl:value-of select="concat(' ',@usertitle)" /><xsl:if test="position()!=last() "> ‖ </xsl:if></xsl:for-each><br></div><br><hr style="width:98%;"/><br><div class="mainbar0" style="padding:5px 10px 5px 10px;line-height:18px;text-align : left;display:none;" id="onlinetr"></div><br></div><br><br /><br><div class="itableborder"><br><img src="<a href="mailto:{/BoardList/forum_setting/@pic_0" target="_blank" >{/BoardList/forum_setting/@pic_0</A>}" align="absmiddle" alt="没有新的帖子" /> 没有新的帖子 <img src="<a href="mailto:{/BoardList/forum_setting/@pic_1" target="_blank" >{/BoardList/forum_setting/@pic_1</A>}" align="absmiddle" alt="有新的帖子" /> 有新的帖子 <img src="<a href="mailto:{/BoardList/forum_setting/@pic_2" target="_blank" >{/BoardList/forum_setting/@pic_2</A>}" align="absmiddle" alt="被锁定的论坛" /> 被锁定的论坛<br></div><br></xsl:template><br></xsl:stylesheet><br><br></P>
[align=right][color=#000066][此贴子已经被作者于2007-2-13 15:49:39编辑过][/color][/align]
<br>
<P>问题:<br><br>1、我想在登录论坛后增加个人信息显示项。<br><br>2、贵论坛好像也是用dvbbs的。<br><br> 请问:<br><br> 如何修改可以在这三个地方增加个人信息显示项?<br> <br><br><br><br><br>请站长、版主和高手帮帮忙!!!<br></P>
[align=right][color=#000066][此贴子已经被作者于2007-3-2 17:54:30编辑过][/color][/align]
偌大的一个网站,怎么会没有高手和热心人呢? 你自己 都不知道 想要什么!! <P>怎么会呢?<BR>我就想增加一些个人信息的显项!!!!!!!!!!如:在线时间</P>
页:
[1]
