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

📄 filesedit.ascx

📁 99分钟定时程序。
💻 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/bgbrick.gif);}
img{vertical-align:bottom}
form{margin:0;padding:0}
a{color:#000080;text-decoration:none;}
a:hover{color:#ff3333;text-decoration:underline}
.button{width:65px;height:22px;padding-top:1px;}
.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;
}
//-->
</script>
</head>
<body>
<center>
<div style="text-align:left;width:772px;background:#ffffff;border:solid;border-color:#CCCCCC;border-width:0 1px;">
<table align="center" width="100%" border="0" style="background:#DDDDDD">
	<tr>
		<td height="18">&nbsp;</td>
	</tr>
</table>
<table align="center" width="100%" cellspacing="0" style="background:#EFEFEF;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:#DDDDDD">
	<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="button" value="读文件"></form></td>
	</tr>
</table>
<table align='center' width="100%" style='margin:1px 0;border-top:solid 1px #EEEEEE;border-bottom:solid 1px #EEEEEE;'>
	<tr>
		<td align="center">
			<spbdev:SpbPanel id="EditFileCont" runat="server">
				<form action="<%=SelfName%>" method=post>
				<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>
				<p style='text-align:right;margin-top:6px;padding-right:16px;'><spbdev:SpbLabel id="ReadOnlyDesc" allowHtml="true" runat="server"><font color="red">该文件为只读文件,本系统允许您继续编辑,但请谨慎!</font>&nbsp;&nbsp;&nbsp;&nbsp;</spbdev:SpbLabel><input type='submit' <%=ButtonStatus%> class='button' value='保存编辑'> <input type='reset' class='button' value='复原'></p>
				</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>
<table align="center" width="100%" border=0 cellpadding='0' cellspacing='0' height='64'>
	<tr>
		<td height='15'></td>
	</tr>
	<tr>
		<td height='49' align='center' valign='top' style='line-height:16px;'>  <font face='Arial'>Powered By:<a href='http://www.SpbDev.com' target='_blank'>SpbDev</a> Skin:Default Design:netasp<br>Process Time:<%=precessTime%> ms Load Time:<script language='javascript'>d=new Date();endTime=d.getTime();document.write((endTime-startTime)/1000);</script> s</font></td>
	</tr>
</table>
<table align="center" width="100%" border=0 cellpadding='0' cellspacing='0'>
	<tr>
		<td style='height:2px;background:#7DD16A'></td>
	</tr>
	<tr>
		<td style='height:23px;background:#eeeeee url(<%=TemplateSourceDirectory%>/image/pageBottomBg.gif);'></td>
	</tr>
	<tr>
		<td style='height:2px;background:#7DD16A'></td>
	</tr>
</table>
</div>
</center>
</body>
</html>

⌨️ 快捷键说明

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