📄 admin_fileedit.aspx
字号:
<%@ Page language="c#" Codebehind="Admin_FileEdit.Aspx.cs" AutoEventWireup="false" Inherits="XfokSite.Manage.EditFile" validateRequest="false" %>
<!--#include file="Admin_Header.Aspx" -->
<script language="javascript">
function CreateDir()
{
dirName = prompt('请输入你要建立的目录名称:','');
if ((dirName) && (dirName!=""))
{
document.forms['XfokForm'].elements['funcParam'].value = dirName;
__doPostBack('CreateDir', '');
}
}
function CreateFile()
{
fileName = prompt('请输入你要建立的文本文件名称:','');
if ((fileName) && (fileName!=""))
{
document.forms['XfokForm'].elements['funcParam'].value = fileName;
__doPostBack('CreateFile', '');
}
}
function CopyMove(op)
{
destPath = prompt('请输入目的目录的虚拟路径:','');
if ((destPath) && (destPath!=""))
{
document.forms['XfokForm'].elements['funcParam'].value = destPath;
document.forms['XfokForm'].elements['funcExtraParam'].value = op;
__doPostBack('CopyMove', '');
}
}
function Delete()
{
if (confirm('你确认要删除这个目录或者文件?'))
__doPostBack('Delete','');
}
function SetAttributes(path)
{
attribs = prompt('请给这个目录或者文件输入新的属性.\nA=Archive(存档),R=ReadOnly(只读),H=Hidden(隐藏),S=System(系统):','');
if ((attribs) && (attribs!=""))
{
document.forms['XfokForm'].elements['funcParam'].value = path;
document.forms['XfokForm'].elements['funcExtraParam'].value = attribs;
__doPostBack('SetAttributes', '');
}
}
function Rename(path)
{
newName = prompt('请输入新的目录或者文件名称:','');
if ((newName) && (newName!=""))
{
document.forms['XfokForm'].elements['funcParam'].value = path;
document.forms['XfokForm'].elements['funcExtraParam'].value = newName;
__doPostBack('Rename', '');
}
}
</script>
<form id="XfokForm" method="post" runat="server" enctype="multipart/form-data">
<input type="hidden" id="funcParam" runat="server" NAME="funcParam"> <input type="hidden" id="funcExtraParam" runat="server" NAME="funcExtraParam">
<table cellSpacing="1" cellPadding="5" width="100%" align="center" border="0">
<tr>
<td class="bevel1" height="22">编辑文件
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellPadding="5" cellSpacing="1" class="bevel2">
<tbody>
<tr>
<td colspan="3">
<asp:TextBox runat="server" Width="99%" Rows="20" TextMode="MultiLine" ID="FileContent" CssClass="FileEdit" />
</td>
</tr>
<tr>
<td colspan="3">
<asp:TextBox runat="server" Width="350px" ID="SaveAsPath" CssClass="TextBox" />
<asp:Button runat="server" Text="保存" ID="Save" CssClass="Button" Width="80px" />
<asp:Button runat="server" Text="返回文件管理器" ID="Back" CssClass="Button" Width="150px" CausesValidation="False" />
</td>
</tr>
<tr>
<td colspan="3">
<asp:RequiredFieldValidator ID="ValidateSaveAsPath" runat="server" ControlToValidate="SaveAsPath" Display="dynamic">*
The Save As path is required </asp:RequiredFieldValidator>
<asp:Label runat="server" ID="Status" CssClass="StatusMessage" Visible="False" Width="100%" />
</td>
</tr>
</tbody>
</table>
</form>
<!--#include file="Admin_Footer.Aspx" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -