温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:文件在线管理系统0.30源码
当前文件:
FileManager/WebSite/Manage/Main.aspx,打开代码结构图
FileManager/WebSite/Manage/Main.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Manage_Main" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head> 7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 8
<meta name="author" content="TakWai" /> 9
<title>FileManager|-51aspx.com</title> 10
<link rel="stylesheet" type="text/css" href="../Style/Manage/Style.css" /> 11
<link rel="stylesheet" type="text/css" href="../Style/Manage/Layout.css" /> 12
<script type="text/javascript" src="../Client/jquery-1.1.3.1.pack.js"></script> 13
<script type="text/javascript" src="../Client/Manage.js"></script> 14
15
<link rel="stylesheet" type="text/css" href="../Client/subModal/subModal.css" /> 16
<script type="text/javascript" src="../Client/subModal/common.js"></script> 17
<script type="text/javascript" src="../Client/subModal/submodal.js"></script> 18
</head> 19
<body> 20
<div id="container"> 21
<div id="header"> 22
<h3>FileManager</h3> 23
<span id="rightnav"><a href="Main.aspx?act=logout"><img src="../Images/IcoExit.gif" alt="注销" align="absmiddle" /> 注销</a></span> 24
</div> 25
26
<div id="middle"> 27
<div id="leftFrame"> 28
<div class="box" style="margin-bottom: 15px; display: none;" id="tips"> 29
<span class="msg" id="tipsMsg"></span> 30
</div> 31
32
<%= builder %> 33
34
<div class="box"> 35
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 36
<tr> 37
<td style="width: 60%;"> 38
<form id="insertForm" method="post" action="Main.aspx?act=create&path=<%= Server.UrlEncode(folderPath) %>"> 39
<table border="0" cellpadding="0" cellspacing="0"> 40
<tr> 41
<td class="trtitle" style="width: 60px;">目录名称</td> 42
<td style="width: 210px;"><input type="text" name="txtFolderName" id="txtFolderName" size="35" onfocus="this.className='colorfocus'" onblur="this.className='txt';" class="txt" /></td> 43
<td><input type="hidden" name="txtOldName" id="txtOldName" /><input type="submit" name="submit" id="submit" value="新建" class="btn" /> <input type="button" name="cancel" id="cancel" value="取消" class="btn" onclick="javascript:toCreate('<%= Server.UrlEncode(folderPath) %>');" /> <input type="button" name="btncreate" value="新建文本文档" class="btn" onclick="showPopWin('Notepad.aspx?objfolder=<%= Server.UrlEncode(folderPath) %>', 700, 400, null);" /></td> 44
</tr> 45
</table> 46
</form> 47
</td> 48
<td> 49
<form id="uploadForm" method="post" action="Main.aspx?act=upload&path=<%= Server.UrlEncode(folderPath) %>" enctype="multipart/form-data"> 50
<table border="0" cellpadding="0" cellspacing="0"> 51
<tr> 52
<td class="trtitle" style="width: 60px;">上传文件</td> 53
<td style="width: 230px;"><input type="file" name="fileUpload" id="fileUpload" size="23" class="txt" /></td> 54
<td style="width: 36px"><input type="submit" name="upload" value="添加" class="btn" onclick="javascript:uploadMsg();" /></td> 55
</tr> 56
</table> 57
</form> 58
</td> 59
</tr> 60
</table> 61
</div> 62
63
<div class="box" style="margin-top: 15px;"> 64
<div class="searchBox"> 65
当前路径: <%= currPath %> 目录数: <%= folderNum %> 文件数: <%= fileNum %> 66
</div> 67
<asp:Repeater ID="rptList" runat="server"> 68
<HeaderTemplate> 69
<table border="0" cellpadding="5" cellspacing="0" class="m-table"> 70
<tr class="m-head"> 71
<td><a href="Main.aspx?path=<%= Server.UrlEncode(folderPath) %>&order=name">名称</a></td> 72
<td style="width: 70px;"><a href="Main.aspx?path=<%= Server.UrlEncode(folderPath) %>&order=ext">扩展名</a></td> 73
<td style="width: 70px;"><a href="Main.aspx?path=<%= Server.UrlEncode(folderPath) %>&order=size">大小</a></td> 74
<td style="width: 150px;"><a href="Main.aspx?path=<%= Server.UrlEncode(folderPath) %>&order=modifydate">修改时间</a></td> 75
<td style="width: 120px;">操作选项</td> 76
</tr> 77
<%= backHtml %> 78
</HeaderTemplate> 79
<ItemTemplate> 80
<tr class="m-row1" onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E4F1F8';" onmouseout="this.style.backgroundColor=c;"> 81
<td><%# Eval("FormatName") %></td> 82
<td><%# Eval("Ext") %></td> 83
<td><%# Eval("FormatSize") %></td> 84
<td><%# Eval("FormatModifyDate") %></td> 85
<td> 86
<a href="#" onclick="javascript:toRename('<%# Eval("Name") %>', '<%# Eval("FullName") %>', '<%= Server.UrlEncode(folderPath) %>');"> 87
<img src="../Images/IcoAdd.gif" align="absmiddle" /> 重命名 88
</a> 89
<a href="Main.aspx?act=delete&path=<%= Server.UrlEncode(folderPath) %>&file=<%# Eval("FullName") %>&type=<%# Eval("Type") %>" onclick="javascript:return confirm('确认删除 <%# Eval("Name") %> ?');"> 90
<img src="../Images/IcoDelete.gif" align="absmiddle" /> 删除 91
</a> 92
</td> 93
</tr> 94
</ItemTemplate> 95
<AlternatingItemTemplate> 96
<tr class="m-row2" onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E4F1F8';" onmouseout="this.style.backgroundColor=c;"> 97
<td><%# Eval("FormatName") %></td> 98
<td><%# Eval("Ext") %></td> 99
<td><%# Eval("FormatSize") %></td> 100
<td><%# Eval("FormatModifyDate") %></td> 101
<td> 102
<a href="#" onclick="javascript:toRename('<%# Eval("Name")%>', '<%# Eval("FullName") %>', '<%= Server.UrlEncode(folderPath) %>');"> 103
<img src="../Images/IcoAdd.gif" align="absmiddle" /> 重命名 104
</a> 105
<a href="Main.aspx?act=delete&path=<%= Server.UrlEncode(folderPath) %>&file=<%# Eval("FullName") %>&type=<%# Eval("Type") %>" onclick="javascript:return confirm('确认删除 <%# Eval("Name") %> ?');"> 106
<img src="../Images/IcoDelete.gif" align="absmiddle" /> 删除 107
</a> 108
</td> 109
</tr> 110
</AlternatingItemTemplate> 111
<FooterTemplate> 112
</table> 113
</FooterTemplate> 114
</asp:Repeater> 115
</div> 116
</div> 117
</div> 118
119
<div id="footer"> 120
Copyright © 2007 TakWai All Rights Reserved. Powered by FileManager 0.30 (Build: 070822) <%=((Single)DateTime.Now.Subtract(HttpContext.Current.Timestamp).TotalSeconds).ToString("0.000")%>s,<a href="http://www.51aspx.com/" target="_blank">download from 51aspx.com</a> 121
</div> 122
</div> 123
</body> 124
</html>



