当前位置: 网学 > 编程文档 > ASP > 正文

asp javascript在线管理

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17
ath, x.Attributes, "路径: \"" + x.Path + "\"", "属性: " + GetAttribute(x.Attributes));if(!x.isRootFolder){a[a.length-1]=(new Array).concat(a[a.length-1],Array("创建时间: " + FormatDateTime(x.DateCreated), "修改时间: " + FormatDateTime(x.DateLastModified), "访问时间: " + FormatDateTime(x.DateLastAccessed)))};try{a[a.length-1]=(new Array).concat(a[a.length-1],Array("", "目录数: " + x.subfolders.count + " ", "文件数: " + x.files.count + " "))};catch(e){a[a.length-1]=(new Array).concat(a[a.length-1],Array("", "<span class=error>错误: 没有权限</span>"))};this.CurrentFolder = a;return a;};this.GetFolderList = function(sFolderSpec){var fso = this.fso;var a = new Array();var folder = fso.GetFolder(sFolderSpec);var e = new Enumerator(folder.SubFolders);if(!folder.isRootFolder){a[a.length] = new Array(true, "<font face=''wingdings 3'' class=''ItemIconStyle''>Í</font>", "<span class=''ItemTitle''><nobr>..</nobr></span>", "",folder.ParentFolder,folder.ParentFolder.attributes,"","","","");};else{a[a.length] = new Array(true, "<font face=''wingdings'' class=''ItemIconStyle''>:</font>", "<span class=''ItemTitle''>..</span>", "","","","","","","");};for (; !e.atEnd(); e.moveNext()){var x = e.item();a[a.length] = new Array(true, "<font face=''wingdings'' class=''ItemIconStyle''>0</font>", "<span class=''ItemTitle''><nobr>" + x.name + "</nobr></span>", x.Name, x.Path, x.Attributes, "", x.Type, FormatDateTime(x.DateLastModified), GetAttribute(x.Attributes, true), "路径: \"" + x.Path + "\"", "属性: " + GetAttribute(x.Attributes), "创建时间: " + FormatDateTime(x.DateCreated), "修改时间: " + FormatDateTime(x.DateLastModified), "访问时间: " + FormatDateTime(x.DateLastAccessed));};var folder = fso.GetFolder(sFolderSpec);var e = new Enumerator(folder.Files);for (; !e.atEnd(); e.moveNext()){var x = e.item();a[a.length] = new Array(true, GetIconByType_File(x.name), "<span class=''ItemTitle''><nobr>" + x.name + "</nobr></span>", x.Name, x.Path, x.Attributes, FormatSize(x.size), x.Type, FormatDateTime(x.DateLastModified), GetAttribute(x.Attributes, true), "路径: \"" + x.Path + "\"", "类型: " + x.Type, "大小: " + FormatSize(x.size), "属性: " + GetAttribute(x.Attributes), "创建时间: " + FormatDateTime(x.DateCreated), "修改时间: " + FormatDateTime(x.DateLastModified), "访问时间: " + FormatDateTime(x.DateLastAccessed));};return a;};this.DownloadFile = function(sTarget){try{var fso = this.fso;var file = fso.GetFile(sTarget);var sFileName = file.name;var sFileSize = file.size;fso = null;var st = new ActiveXObject("ADODB.Stream");with(st) { mode=3; type=1; open(); loadFromFile(sTarget); };Response.addHeader("Content-Disposition", "attachment; filename=" + sFileName);Response.addHeader("Content-Length", sFileSize);Response.charSet = "UTF-8";Response.contentType = "application/octet-stream";Response.binaryWrite(st.read());st.close();st = nul
  • 下一篇资讯: 查询翻页优化第1/2页
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号