⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filesedit.ascx

📁 本系统是在asp版《在线文件管理器》的基础上设计制作
💻 ASCX
字号:
<%@ Control Inherits="SpbDev.FilesWebPages.UCFilesEdit" Language="C#"%>
<%@ Register TagPrefix="spbdev" Namespace="SpbDev.FilesWebControls" Assembly="SpbDev.Files"%>
<html>
<head>
<title><%=FilesSysName%> - 文件在线编辑</title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<style type="text/css">
<!--
body,table,td{font-size:12px;color:#000000;}
body{margin:1px;padding:0;background:#ffffff url(<%=TemplateSourceDirectory%>/image/FilesPageBg.gif);}
img{vertical-align:bottom}
form{margin:0;padding:0}
a{color:#000080;text-decoration:none;}
a:hover{color:#ff3333;text-decoration:underline}
.BtnSize2{width:36px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize2.gif);}
.BtnSize3{width:52px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize3.gif);}
.BtnSize4{width:68px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize4.gif);}
.BtnSize5{width:84px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize5.gif);}
.BtnSize6{width:100px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize6.gif);}
.InputTxt{border:solid 1px #6666AA;}
//-->
</style>
<script language="javascript">
<!--
var startTime,endTime;
var d=new Date();
startTime=d.getTime();
var scriptName="<%=SelfName%>";
var sCurPath="<%=Str.JsParamEnc(EditFilePath)%>";
String.prototype.trim=function(){
	return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.urlEnc=function()
{
	var str=this.replace(/!/g,"%21");
	str=str.replace(/"/g,"%22");
	str=str.replace(/#/g,"%23");
	str=str.replace(/\$/g,"%24");
	str=str.replace(/%/g,"%25");
	str=str.replace(/&/g,"%26");
	str=str.replace(/'/g,"%27");
	str=str.replace(/\(/g,"%28");
	str=str.replace(/\)/g,"%29");
	str=str.replace(/\*/g,"%2A");
	str=str.replace(/\+/g,"%2B");
	str=str.replace(/,/g,"%2C");
	str=str.replace(/\./g,"%2E");
	str=str.replace(/\//g,"%2F");
	str=str.replace(/:/g,"%3A");
	str=str.replace(/;/g,"%3B");
	str=str.replace(/</g,"%3C");
	str=str.replace(/=/g,"%3D");
	str=str.replace(/>/g,"%3E");
	str=str.replace(/\?/g,"%3F");
	str=str.replace(/@/g,"%40");
	str=str.replace(/\[/g,"%5B");
	str=str.replace(/\\/g,"%5C");
	str=str.replace(/]/g,"%5D");
	str=str.replace(/\^/g,"%5E");
	str=str.replace(/`/g,"%60");
	str=str.replace(/\{/g,"%7B");
	str=str.replace(/\|/g,"%7C");
	str=str.replace(/}/g,"%7D");
	str=str.replace(/~/g,"%7E");
	str=str.replace(/ /g,"+");
	return str;
}
function checkForm(oF)
{
	if(oF.CodePage.options.selectedIndex==0)
	{
		var bRslt=window.confirm("您尚未指定保存文件时的字符编码。\n使用服务器默认字符编码保存文件?");
		if(!bRslt){
			oF.CodePage.focus();
		}
		return bRslt;
	}
	else
	{
		return true;
	}
}
//-->
</script>
</head>
<body>
<center>
<div style="position:relative;text-align:left;width:772px;background:#ffffff;border:solid;border-color:#333333;border-width:0 1px;">
<table align="center" width="100%" border="0" style="background:#4279BD">
	<tr>
		<td height="18"><img src="<%=TemplateSourceDirectory%>/image/FilesLogo.gif" style="position:absolute;left:10px;top:-1px;"></td>
	</tr>
</table>
<table align="center" width="100%" cellspacing="0" style="background:#268CBE url(<%=TemplateSourceDirectory%>/image/FilesBanner.gif) right;border-top:solid 1px #ffffff;border-bottom:solid 1px #ffffff;">
	<tr>
		<td width="40%">&nbsp;&nbsp;<%=FilesSysName%> <%=FilesVersion%></td>
		<td height="55" align="center">&nbsp;</td>
	</tr>
</table>
<table align="center" width="100%" border="0" style="background:#4279BD">
	<tr>
		<td colspan="2" height="18"><form method="get" action="<%=Str.InputEnc(SelfName)%>" style="padding:0;margin:0"> 位置:<input type="text" name="key" style="margin:2px 3px 0;width:614px;border:solid 1px #000099;" value="<%=Str.InputEnc(EditFilePath)%>" class="InputTxt"> <input type="submit" class="BtnSize3" value="读文件"></form></td>
	</tr>
</table>
<table align='center' width="100%" style='margin:1px 0;'>
	<tr>
		<td align="center">
			<spbdev:SpbPanel id="EditFileCont" runat="server">
				<form action="<%=SelfName%>" method="post" onsubmit="return checkForm(this)">
				<input type='hidden' name='act' value='saveEdit'><input type='hidden' name='key' value="<%=Str.InputEnc(EditFilePath)%>"><textarea name='fileCont' wrap="off" style='border:solid 1px #000099;word-break:keep-all;overflow:auto' cols='102' rows='33'><%=Str.TextEnc(EditFileContent)%></textarea>
				<table width="96%" height="26" align="center" border="0" cellspacing="0">
					<tr>
						<td width="50%">
							文件编码:
							<select name="CodePage">
								<option value="0">-请选择-</option>
								<option value="936">GBK(简体中文)</option>
								<option value="20936">GB2312(简体中文)</option>
								<option value="65000">Unicode UTF-7</option>
								<option value="65001">Unicode UTF-8</option>
								<option value="1200">Unicode</option>
								<option value="1201">Unicode Big-Endian </option>
							</select>
						</td>
						<td align="right"><spbdev:SpbLabel id="ReadOnlyDesc" allowHtml="true" runat="server"><font color="red">该文件为只读文件,本系统允许您继续编辑,但请谨慎!</font>&nbsp;&nbsp;&nbsp;&nbsp;</spbdev:SpbLabel><input type='submit' <%=ButtonStatus%> class='BtnSize4' value='保存编辑'> <input type='reset' class='BtnSize2' value='复原'></td>
					</tr>
				</table>
				</form>
			</spbdev:SpbPanel>
			<spbdev:SpbPanel id="EditErrInfo" runat="server"><font color="red"><%=EditErrDesc%></font></spbdev:SpbPanel>
			<spbdev:SpbPanel id="OutOfRootDir" runat="server"><b><font color="#FF3333">无权访问当前目录</font>:您只有对目录 <a href="FilesExplorer.aspx?path=<%=Str.UrlEnc(UserRootPath)%>"><%=Str.HtmlEnc(UserRootPath)%></a> 及其子目录的访问权限!</b></spbdev:SpbPanel>
		</td>
	</tr>
</table>
	<br>
	<table align="center" width="100%" cellspacing=0 border="0" class="txtWhite">
		<tr bgcolor="#4279BD">
			<td height="28" align="right">&nbsp;&nbsp;</td>
		</tr>
	</table>
	<table align="center" width="100%" border=0 cellpadding='0' cellspacing='0'>
		<tr>
			<td height='22'></td>
		</tr>
		<tr>
			<td height='85' align='center' valign='top' style='line-height:22px;padding-top:6px'>  <font face='Arial'>程序名称:<a href="http://www.spbdev.com/Licence/FilesNet.aspx?id=">FilesNet <%=Version.Major.ToString()%>.<%=Version.Minor.ToString()%></a> 发布站点:<a href='http://www.SpbDev.com' target='_blank'>SpbDev</a> 当前风格:蓝色天空<br>执行时间:<%=precessTime%> 毫秒 页面装载:<script language='javascript'>d=new Date();endTime=d.getTime();document.write((endTime-startTime)/1000);</script> 秒</font><!--数据库查询:<%=QueryTimes%>次--></td>
		</tr>
	</table>
</div>
</center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -