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

📄 filemain.aspx

📁 OA系统源码 办公应用软件源码 asp.net 开发
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileMain.aspx.cs" Inherits="File_FileMain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>文件管理主体部分</title>
    <link href="../css/style.css" type="text/css" rel="stylesheet"/>
</head>
<body topmargin="0">
    <form id="form1" runat="server">
    <div style="width:100%;height:500px; background-color:#A5CFE8">
   <table class="" borderColor="#cccccc" cellSpacing="0" cellPadding="0" bgColor="#A5CFE8" border="0"  width="99%">
										<tr>
											<td noWrap width="1">
												<asp:imagebutton id="imgbtnBack" Width="56px" Height="20px" onmouseover="this.src='../images/file/fmback1.gif';" onmouseout="this.src='../images/file/fmback.gif';" runat="server" ImageUrl="../images/file/fmback.gif" ImageAlign="AbsBottom" ToolTip="后退一步"></asp:imagebutton></td>
											<td noWrap width="1">
												<asp:imagebutton id="imgbtnUp" Width="31px" Height="20px"  onmouseover="this.src='../images/file/fmup1.gif';" onmouseout="this.src='../images/file/fmup.gif';" runat="server" ImageUrl="../images/file/fmup.gif" ImageAlign="AbsBottom" ToolTip="向上一级"></asp:imagebutton></td>
											<td noWrap="noWrap" width="1">
												<asp:imagebutton id="imgbtnSeach" Width="58px" Height="20px"  onmouseover="this.src='../images/file/fmseach1.gif';" onmouseout="this.src='../images/file/fmseach.gif';" runat="server" ImageUrl="~/images/file/fmseach.gif" ImageAlign="AbsBottom" ToolTip="搜索文件或文件夹"></asp:imagebutton></td>
											<td width="33"><asp:imagebutton id="imgbtnFolderShow"  Width="67px" Height="22px"  runat="server" ImageAlign="AbsBottom" ImageUrl="../images/file/fmfoldershow1.gif"></asp:imagebutton></TD>
											<td width="33"><asp:imagebutton id="imgbtnNewFolder"  Width="22px" Height="20px"  onmouseover="this.src='../images/file/fmnewfolder1.gif';" onmouseout="this.src='../images/file/fmnewfolder.gif';" runat="server" ImageAlign="AbsBottom" ImageUrl="../images/file/fmnewfolder.gif" ToolTip="新增文件夹" OnClick="imgbtnNewFolder_Click"></asp:imagebutton></td>
											<td noWrap width="1"><asp:imagebutton id="imgbtnNewFile" Width="22px" Height="20px"  onmouseover="this.src='../images/file/fmnewfile1.gif';" onmouseout="this.src='../images/file/fmnewfile.gif';" runat="server" ImageAlign="AbsBottom" ImageUrl="../images/file/fmnewfile.gif" ToolTip="新增文件" OnClick="imgbtnNewFile_Click"></asp:imagebutton></td>
											<td noWrap></td>
											<td noWrap style="width: 91%"></td>
										</tr>
									</table>
									<table borderColor="#cccccc" cellSpacing="0" cellPadding="0" bgColor="#A5CFE8" border="0" height="51" style="width: 99%">
										<tr>
											<td noWrap width="31"><asp:label id="lblAddress" runat="server" Height="22px" Text="地址:"  Width="37px"></asp:label></td>
											<td noWrap style="width: 398px">
												<div  style="WIDTH: 457px; POSITION: relative; HEIGHT: 23px"><asp:textbox id="txtFolderPath" runat="server" Height="26px" Width="425px"></asp:textbox><asp:image id="imgDrive" runat="server" ImageUrl="../images/file/img-folder.gif"></asp:image>
												</div>
											</td>
											<td noWrap style="width: 60px">
												<asp:imagebutton id="imgbtnGoto"  Width="51px" Height="20px"  runat="server" ImageUrl="../images/file/fmgoto.gif" ImageAlign="AbsBottom"></asp:imagebutton></td>
										</tr>
									</table>
						<asp:GridView ID="gvFileInfo" Width="99%" runat="server" BackColor="#FFF7E7" BorderColor="#DEBA84"
                          BorderStyle="None" BorderWidth="1px" AutoGenerateColumns="False" DataKeyNames="fileid" AllowPaging="True" PageSize="5" OnRowCommand="gvFileInfo_RowCommand" OnSelectedIndexChanged="gvFileInfo_SelectedIndexChanged">
                          <FooterStyle BackColor="#F7DFB5" ForeColor="#000066" />
                          <RowStyle ForeColor="#000066" BackColor="#BFE6F9"   HorizontalAlign="Center" />
                          <SelectedRowStyle BackColor="#738A9C" ForeColor="White" />
                          <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                          <HeaderStyle BackColor="#66CCFF"  HorizontalAlign="Center"/>
                          <Columns>                           
                           <asp:TemplateField>
                        		
												<ItemTemplate>
                                                    &nbsp;<asp:ImageButton ID="imbnChlin" runat="server" ImageUrl='<%# "~/"+Eval("Filtypemodel.FileTypeImage").ToString() %>'
                                                       Style="position: relative" CommandName="CH" CommandArgument='<%# Eval("FileId") %>' />
												</ItemTemplate>
                         </asp:TemplateField>
                           <asp:TemplateField HeaderText="名称">                        
                          <ItemTemplate>     
                         <asp:HyperLink ID="hlFileName" runat="server" Text='<%# Eval("FileName") %>'></asp:HyperLink>
                         </ItemTemplate>
                          </asp:TemplateField>   
                              <asp:TemplateField HeaderText="类型">
                                  <ItemTemplate>
                                      <asp:Label ID="lbType" runat="server" Style="position: relative" Text='<%# Eval("Filtypemodel.FileTypeName") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                          <asp:BoundField DataField="remark" HeaderText="备注" />  
                              <asp:TemplateField HeaderText="所有者">
                                  <ItemTemplate>
                                      <asp:Label ID="lbUser" runat="server" Style="position: relative" Text='<%# Eval("userinmo.UserName") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                           <asp:BoundField DataField="createdate" HeaderText="创建日期" />                           
                                                          
                          <asp:TemplateField>                        
                          <ItemTemplate>     
                          <asp:ImageButton ID="imgbtnDetail" ImageUrl="~/images/file/detail.gif" Width="16px" height="13px" AlternateText="属性" runat="server" CommandArgument='<%#Eval("FileId") %>' CommandName="SX" />                     
                          </ItemTemplate>
                          </asp:TemplateField>  
                          
                            <asp:TemplateField>                        
                          <ItemTemplate>     
                          <asp:ImageButton ID="imgbtnMove" ImageUrl="~/images/file/fmmove.gif" Width="16px" height="16px" AlternateText="移至" runat="server" CommandName="MO" CommandArgument='<%#Eval("FileId") %>' />                     
                          </ItemTemplate>
                          </asp:TemplateField>  
                          
                            <asp:TemplateField>                        
                          <ItemTemplate>     
                          <asp:ImageButton ID="imgbtnDelete" ImageUrl="~/images/file/delete.gif" Width="13px" height="13px" AlternateText="删除" runat="server" CommandName="DE"  CommandArgument='<%#Eval("FileId") %>'/>                     
                          </ItemTemplate>
                          </asp:TemplateField>                                                  
                          </Columns>
                      </asp:GridView>						
								
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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