Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 A little sub dealing with tree-levels
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Halus
Starting Member

20 Posts

Posted - 03 March 2001 :  21:10:34  Show Profile
Maybe anyone that try transform the code to dll will do experiments such as making a little function dealing with tree-levels,
I have done 2: one for 2 level trees, and the other for 3 level trees
==============================
1.
call showTree2("All Forums", "Admin_Home")
.
.
.
.
Sub showTree2(pTree1, pTree2)
Dim HTML As String

HTML = "<table width='100%' border=0><thead class='tree'><tr><td><img src='img/sys/icon_folder_open.gif' border='0'> <a href='default.asp'>"
HTML = HTML & pTree1
HTML = HTML & "</a><br><img src='img/sys/icon_bar.gif' border='0'><img src='img/sys/icon_folder_open_topic.gif' border='0'> "
HTML = HTML & pTree2
HTML = HTML & "</thead></table>"
Response.Write (HTML)
End Sub

2.
call showTree3("All Forums","Admin_Home","admin_home.asp","Admin_Configuration")
.
.
.
.
Sub showTree3(pTree1, pTree2, utree2, pTree3 As Variant)
Dim HTML As String

HTML = "<table width='100%' border=0><thead class='tree'><tr><td><img src='img/sys/icon_folder_open.gif' border='0'> <a href='default.asp'>"
HTML = HTML & pTree1
HTML = HTML & "</a><br><img src='img/sys/icon_bar.gif' border='0'><img src='img/sys/icon_folder_open.gif' border='0'> <a href='"
HTML = HTML & utree2
HTML = HTML & "'>"
HTML = HTML & pTree2
HTML = HTML & "</a><br><img src='img/sys/icon_blank.gif' border='0'><img src='img/sys/icon_bar.gif' border='0'><img src='img/sys/icon_folder_open_topic.gif' border='0'> "
HTML = HTML & pTree3
HTML = HTML & "</thead></table>"
Response.Write (HTML)
End Sub
==============================

P.S.:
1. I use CSS style at the [thead] level, and by this way the [class] tag can be used as little as possible, and there's no need to put so many parameters such as <% =strHeaderFont%>...
2. I put img files in subdirectories.

I think modify the forum to a CSS based one should be done as soon as possible,
because it is easier for maintainence, easier to do MODs, and we can concentrate on things about logical structures...

That's my humble opinion


frankie
Junior Member

Vatican City
304 Posts

Posted - 03 March 2001 :  22:35:18  Show Profile  Visit frankie's Homepage  Send frankie an AOL message  Send frankie an ICQ Message  Send frankie a Yahoo! Message
What a great idea!

Go to Top of Page

chinh10
Junior Member

125 Posts

Posted - 06 March 2001 :  14:25:53  Show Profile
I don't understand ????

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07