📄 admin_file.aspx
字号:
<%@ Page language="c#" Codebehind="Admin_File.Aspx.cs" AutoEventWireup="false" Inherits="XfokSite.Manage.Admin_File" %>
<!--#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>
<tr bgColor="#f6f6f3">
<td bgColor="#f6f6f3">
<a href="javascript:CreateDir();"><img border="0" src="./Images/Files/NewFolder.gif" Alt="建立一个新目录"></a>
<asp:LinkButton ID="CreateDir" runat="server" OnClick="CreateDir_Click" />
<a href="javascript:CreateFile();"><img border="0" src="./Images/Files/NewFile.gif" Alt="新建一个文本文件"></a>
<asp:LinkButton ID="CreateFile" runat="server" OnClick="CreateFile_Click" Visible="False" />
<a href="javascript:CopyMove('copy');"><img border="0" src="./Images/Files/Copy.gif" Alt="拷贝选中的目录或文件"></a> <a href="javascript:CopyMove('move');"><img border="0" src="./Images/Files/Move.gif" Alt="移动选中的目录或者文件"></a>
<asp:LinkButton ID="CopyMove" runat="server" OnClick="CopyMove_Click" Visible="False" />
<a href="javascript:Delete();"><img border="0" src="./Images/Files/Delete.gif" Alt="删除选中的目录或文件"></a>
<asp:LinkButton ID="Delete" runat="server" OnClick="Delete_Click" Visible="False" />
<asp:LinkButton ID="SetAttributes" runat="server" OnClick="SetAttributes_Click" Visible="False" />
<asp:LinkButton ID="Rename" runat="server" OnClick="Rename_Click" Visible="False" /> </td>
</tr>
<tr bgColor="#f6f6f3">
<td bgColor="#f6f6f3">
<asp:Label runat="server" ID="FolderDescription"></asp:Label>
</td>
</tr>
</table>
<asp:Table ID="FoldersAndFiles" runat="server" border="0" CellPadding="4" CellSpacing="1" Width="100%" align="Center">
<asp:TableRow CssClass="bevel1">
<asp:TableCell Width="36px" Font-Bold="True">
<asp:CheckBox id="CheckBox1" runat="server" onClick="SelectAll(this.form)"></asp:CheckBox>
</asp:TableCell>
<asp:TableCell Font-Bold="True" Text="目录/文件"></asp:TableCell>
<asp:TableCell Width="25px" Font-Bold="True"></asp:TableCell>
<asp:TableCell Width="45px" Font-Bold="True"></asp:TableCell>
<asp:TableCell Width="50px" Font-Bold="True" HorizontalAlign="Center" Text="属性"></asp:TableCell>
<asp:TableCell Width="80px" Font-Bold="True" HorizontalAlign="Right" Text="大小"></asp:TableCell>
<asp:TableCell Width="140px" Font-Bold="True" Text="创建日期"></asp:TableCell>
<asp:TableCell Width="140px" Font-Bold="True" Text="修改日期"></asp:TableCell>
</asp:TableRow>
</asp:Table>
<table cellSpacing="0" cellPadding="5" width="100%" align="center" border="0">
<tr>
<td class="fm2">
<asp:Label ID="PageList" runat="Server" Visible="true" />
</td>
</tr>
<tr>
<td class="fm2">
<input type="file" ID="UploadedFile" runat="server" size="35" NAME="UploadedFile">
<asp:Button ID="Upload" runat="server" Text="上传" CssClass="Button" OnClick="Upload_Click" />
</td>
</tr>
<tr>
<td class="fm2"> <asp:Label ID="StatusMessage" runat="server" CssClass="StatusMessage" Visible="False" Width="100%" /></td>
</tr>
</table>
<asp:Label ID="FolderStyle" runat="Server" Text="fm2" Visible="false" />
<asp:Label ID="FileStyle" runat="Server" Text="fm2" Visible="false" />
</form>
<!--#include file="Admin_Footer.Aspx" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -