Sha256: 60bce6bfef57e5ddc7a7d25a586649ee95e853e876ecb489446c384a2c25d4db
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
<%@ Page Language="C#" AutoEventWireup="true" %> <% // // jQuery File Tree ASP Connector // // Version 1.0 // // Copyright (c)2008 Andrew Sweeny // asweeny@fit.edu // 24 March 2008 // string dir; if(Request.Form["dir"] == null || Request.Form["dir"].Length <= 0) dir = "/"; else dir = Server.UrlDecode(Request.Form["dir"]); System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(dir); Response.Write("<ul class=\"jqueryFileTree\" style=\"display: none;\">\n"); foreach (System.IO.DirectoryInfo di_child in di.GetDirectories()) Response.Write("\t<li class=\"directory collapsed\"><a href=\"#\" rel=\"" + dir + di_child.Name + "/\">" + di_child.Name + "</a></li>\n"); foreach (System.IO.FileInfo fi in di.GetFiles()) { string ext = ""; if(fi.Extension.Length > 1) ext = fi.Extension.Substring(1).ToLower(); Response.Write("\t<li class=\"file ext_" + ext + "\"><a href=\"#\" rel=\"" + dir + fi.Name + "\">" + fi.Name + "</a></li>\n"); } Response.Write("</ul>"); %>
Version data entries
12 entries across 12 versions & 1 rubygems