📄 fileinmanager.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileInManager.aspx.cs" Inherits="File_FileInManager" %>
<!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>
<form id="form1" runat="server">
<div>
<TABLE cellSpacing="0" cellPadding="1" width="300" border="0">
<TR>
<TD style="WIDTH: 544px; height: 944px;" vAlign="top" noWrap align="left">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD noWrap><IMG alt="" src="../images/file/filepro.gif" align="absBottom">
</TD>
</TR>
</TABLE>
<TABLE style="WIDTH: 100%" cellSpacing="0" cellPadding="0" border="0">
<TR>
<TD style="PADDING-RIGHT: 15px; PADDING-LEFT: 20px; PADDING-BOTTOM: 15px; WIDTH: 59800%; PADDING-TOP: 20px" vAlign="top" noWrap align="left">
<DIV style="WIDTH: 100%; POSITION: relative; HEIGHT: 168px; z-index: 100;">
<asp:label id="Label1" style="Z-INDEX: 101; LEFT: 1px; POSITION: absolute; TOP: 1px" runat="server" Height="20px" Width="57px">文件名</asp:label>
<asp:textbox id="txtFileName" CssClass="inputCss" style="Z-INDEX: 102; LEFT: 64px; POSITION: absolute; TOP: 1px" runat="server" Height="23px" Width="430px"></asp:textbox>
<asp:label id="Label2" style="Z-INDEX: 103; LEFT: 2px; POSITION: absolute; TOP: 30px" runat="server" Width="47px">位置</asp:label>
<asp:label id="Label4" style="Z-INDEX: 104; LEFT: 3px; POSITION: absolute; TOP: 81px" runat="server" Width="39px">备注</asp:label>
<asp:textbox id="txtRemark" CssClass="textArea" style="Z-INDEX: 105; LEFT: 64px; POSITION: absolute; TOP: 70px" runat="server" Height="41px" Width="435px" TextMode="MultiLine"></asp:textbox>
<asp:requiredfieldvalidator id="RequiredFieldValidator1" style="Z-INDEX: 120; LEFT: 500px; POSITION: absolute; TOP: 5px" runat="server" CssClass="err" ErrorMessage="文件名不能为空" ControlToValidate="txtFileName" Width="11px" >*</asp:requiredfieldvalidator>
<asp:label id="lblFileLocation" style="Z-INDEX: 121; LEFT: 64px; POSITION: absolute; TOP: 29px" runat="server" Width="309px"></asp:label>
<HR style="Z-INDEX: 123; WIDTH: 100%; POSITION: absolute; TOP: 136px; HEIGHT: 1px" width="100" SIZE="1">
<asp:label id="Label6" style="Z-INDEX: 124; LEFT: 1px; POSITION: absolute; TOP: 145px" runat="server" CssClass="tttable">创建时间</asp:label>
<asp:label id="lblCreateDate" style="Z-INDEX: 125; LEFT: 65px; POSITION: absolute; TOP: 146px" runat="server" Width="192px"></asp:label>
<asp:label id="Label7" style="Z-INDEX: 126; LEFT: 350px; POSITION: absolute; TOP: 145px" runat="server" >所有者</asp:label>
<asp:label id="lblFileOwner" style="Z-INDEX: 127; LEFT: 404px; POSITION: absolute; TOP: 143px" runat="server" ></asp:label></DIV>
<TABLE style="WIDTH: 100%; HEIGHT: 10px" cellSpacing="0" cellPadding="0" border="0">
<TR>
<TD style="WIDTH: 72px; height: 47px;" vAlign="top" noWrap width="72">
<asp:linkbutton id="lnkbtnFileIco" runat="server" Height="26px" Width="84px" CausesValidation="False">文件图标>></asp:linkbutton></TD>
<TD noWrap width="100%" style="height: 47px">
<asp:RadioButtonList ID="RadioButtonList1" runat="server" Style="position: relative" RepeatColumns="6" RepeatDirection="Horizontal">
</asp:RadioButtonList></TD>
</TR>
</TABLE>
<HR width="100%" SIZE="1" id="HR1" color="#0000ff">
<asp:GridView ID="gvAccessoryFileInfo" Width="99%" runat="server" BorderColor="#DEBA84" DataKeyNames="AccessoryId"
BorderStyle="None" BorderWidth="1px" AutoGenerateColumns="False" PageSize="5" OnRowCommand="gvAccessoryFileInfo_RowCommand" OnRowDataBound="gvAccessoryFileInfo_RowDataBound" >
<FooterStyle BackColor="#F7DFB5" ForeColor="#000066" />
<RowStyle HorizontalAlign="Center" />
<SelectedRowStyle ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<HeaderStyle BackColor="#66CCFF" HorizontalAlign="Center"/>
<Columns>
<asp:TemplateField HeaderText="名称">
<ItemTemplate>
<asp:Label ID="lblLinkAccessoryName" runat="server" Text='<%# Eval("AccessoryName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="AccessorySize" HeaderText="大小(KB)" />
<asp:TemplateField HeaderText="类型">
<ItemTemplate>
<asp:Label ID="lbType" runat="server" Style="position: relative" Text='<%# Eval("Filetype.FileTypeName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="CreateDate" HeaderText="创建日期" />
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton ID="imgbtnDelete" ImageUrl="~/images/file/delete.gif" Width="13px" height="13px" AlternateText="删除" runat="server" CommandName="remove" CommandArgument='<%#Eval("AccessoryId") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<TABLE style="WIDTH: 100%; HEIGHT: 15px" cellSpacing="0" cellPadding="0" border="0">
<TR>
<TD style="COLOR: #009999" vAlign="top" noWrap align="left">操作提示:请在文件名处单击右键,并选取"目标另存为"以下载文件!</TD>
</TR>
<TR>
<TD vAlign="top" height="10"></TD>
</TR>
</TABLE>
<TABLE style="WIDTH: 100%; HEIGHT: 1px" cellSpacing="0" cellPadding="0" border="0">
<TR>
<TD class="tttable" style="WIDTH: 56px; HEIGHT: 1px" vAlign="top" noWrap align="left">
<asp:label id="lblFileName" runat="server" >文件名:</asp:label></TD>
<TD style="WIDTH: 365px; HEIGHT: 20px" vAlign="top" noWrap align="left">
<asp:FileUpload ID="fileBrowser" runat="server" CssClass="buttonCss" Width="371px"/></TD>
<TD style="WIDTH: 74px; HEIGHT: 1px" vAlign="top" noWrap align="left">
<asp:button id="btnUpFile" runat="server" Height="20px" Width="61px" Text="上传" CssClass="buttonCss" CausesValidation="False" OnClick="btnUpFile_Click" ></asp:button></TD>
</TR>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD noWrap>
<HR style="WIDTH: 100%; HEIGHT: 1px" width="1" SIZE="1" color="blue">
<input id="hidFileId" runat="server" style="z-index: 101; left: 32px; position: absolute; top: 591px; width: 57px;"
type="hidden" />
</TD>
</TR>
</TABLE>
</TD>
</TR>
<tr>
</tr>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD align="center"><input id="hidAccessoryCount" style="z-index: 102; left: 115px; position: absolute; top: 590px; width: 57px;" runat="server" type="hidden" />
<asp:imagebutton id="imgbtnSaveExit" runat="server" ImageUrl="../images/file/saveexi.gif" Width="64px" Height="20px" OnClick="imgbtnSaveExit_Click" ></asp:imagebutton>
<asp:imagebutton id="imgbtnExit" runat="server" CausesValidation="False" ImageUrl="../images/file/exit.gif" Width="40px" Height="20px" OnClick="imgbtnExit_Click" ></asp:imagebutton></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -