<% if Session("doclib_user") = "" then response.redirect("doclibrary_login.asp") end if %> STCFOC
HIV Testing
Members Area > Online Documents


<% if request("folder") <> "" then subpath = request("folder") & "/" else subpath = "" end if arrsubpath = Split(subpath, "/") if Ubound(arrsubpath) > 0 then less1 = Ubound(arrsubpath) - 2 prevpath = "" for count = 0 to less1 prevpath = prevpath & arrsubpath(count) & "/" next ppnewlen = len(prevpath) - 1 if ppnewlen > 0 then prevpath = left(prevpath, ppnewlen) end if else prevpath = "" end if Set objfs = CreateObject("Scripting.FileSystemObject") Set objfolder = objfs.GetFolder(Server.MapPath("doclibrary/leadership/" & subpath)) Set objSubfolders = objfolder.SubFolders Set objfiles = objfolder.files %> <% foldercount = 0 For Each objSubfolder in objSubfolders %> <% foldercount = foldercount + 1 Next filecount = 0 For Each objfile in objfiles %> <% filecount = filecount + 1 Next if (foldercount = 0) AND (filecount = 0) then %> <% end if %>
<% if request("folder") = "" then response.Write("Main") else response.Write(request("folder")) end if %> Log Out | Go Up
<%=objSubfolder.Name%>
<%=objfile.Name%>
There are currently no files in this directory