1.tblCategory
Field Name Type
Root binary description tree off or on (root of directory)
ID Auto Number keyword
The sort integer identifies the integer of the field's contents (if Root is on state sort 0) indicating the order of the displayed directories
The Name text (255) can contain identifiers in HTML
HREF text (255) allows null
2.tblPages
ID Auto Number
Sort integer keyword
Name text (255)
HREF text (255)
strSQL = "Select Tblcategory.root, Tblcategory.[id], tblcategory.sort as Catsort, Tblpages.sort as Linksort, TblCategory." [Name] as CatName, tblcategory.href as Caturl, Tblpages.[name] as linkname, tblpages.href as Linkurl from Tblcategory left JOIN tblpages on Tblcategory.[id] = Tblpages.[id] ORDER by Tblcategory.root ASC, Tblcategory.sort, Tblpages.sort "
Rs.Open strSQL, Conn, 2, 2
If not rs.eof then Rs.movefirst
CurrentID = ""%>
〈html>
〈head>
〈link rel= "stylesheet" href= "Ftie4style.css" >
!--infrastructure code for the-->
〈script src= "Ftiens4.js" >〈/script>
!--Execution of the code that actually builds the specific tree-->
〈script>
Usetextlinks = 1
〈%
Do as not rs.eof
If Rs ("Root") = True Then%>
Folderstree = Gfld ("〈%= rs (" CatName ")%>", "〈%= Rs (" Caturl ")%>")
〈% Else%>
Aux1 = INSFLD (Folderstree, Gfld ("〈%= rs (" CatName ")%>", "〈%= rs (" Caturl ")%>))
〈% CurrentID = Rs ("ID")
Savedid = Rs ("ID")
Do While CurrentID = Savedid and not rs.eof
If Rs ("Linkname") 〈> "" Then%>
Insdoc (Aux1, Glnk (0, "〈%= rs (" linkname ")%>", "〈%= rs (" Linkurl ")%>))
〈%
End If
Rs.movenext
If not rs.eof then CurrentID = rs ("ID")
Loop
End If
If CurrentID = "" Then Rs.movenext
Loop%>
〈/script>
〈script>
Initializedocument ()
〈/script>
〈base target= "Basefrm" >
〈title>〈/title>
〈/head>
〈body bgcolor= "White" >
〈/body>
〈/html>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.