fmNewFile.aspx
上传用户:autodoor
上传日期:2022-08-04
资源大小:9973k
文件大小:17k
源码类别:

.net编程

开发平台:

Others

  1. <%@ Page language="c#" Codebehind="fmNewFile.aspx.cs" AutoEventWireup="false" Inherits="qminoa.Webs.FM.fmNewFile" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title></title>
  6. <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
  7. <meta content="Visual C# 7.0" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <LINK href="../lynn.css" type="text/css" rel="stylesheet">
  11. </HEAD>
  12. <body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout">
  13. <form id="Form1" method="post" encType="multipart/form-data" runat="server">
  14. <FONT face="宋体">
  15. <TABLE style="WIDTH: 100%; POSITION: absolute; HEIGHT: 100%" cellSpacing="0" cellPadding="0" width="734" border="0">
  16. <TR>
  17. <TD style="HEIGHT: 12px" vAlign="top" noWrap align="middle" height="14"></TD>
  18. </TR>
  19. <TR>
  20. <TD vAlign="top" noWrap align="middle">
  21. <TABLE id="Table1" cellSpacing="0" cellPadding="1" width="300" bgColor="black" border="0">
  22. <TR>
  23. <TD>
  24. <TABLE id="Table2" style="WIDTH: 501px; HEIGHT: 100%" cellSpacing="0" cellPadding="0" bgColor="white" border="0">
  25. <TR>
  26. <TD style="WIDTH: 544px" vAlign="top" noWrap align="left">
  27. <TABLE id="Table3" cellSpacing="0" cellPadding="0" width="100%" border="0">
  28. <TR>
  29. <TD noWrap><IMG alt="" src="img/button/filepro.gif" align="absBottom">
  30. </TD>
  31. </TR>
  32. </TABLE>
  33. <TABLE id="Table4" style="WIDTH: 100%" cellSpacing="0" cellPadding="0" border="0">
  34. <TR>
  35. <TD class="boxform" style="PADDING-RIGHT: 15px; PADDING-LEFT: 20px; PADDING-BOTTOM: 15px; WIDTH: 59800%; PADDING-TOP: 20px" vAlign="top" noWrap align="left">
  36. <DIV style="WIDTH: 100%; POSITION: relative; HEIGHT: 168px" ms_positioning="GridLayout">
  37. <asp:label id="Label1" style="Z-INDEX: 101; LEFT: 1px; POSITION: absolute; TOP: 1px" runat="server" Height="20px" CssClass="tttable">文件名</asp:label>
  38. <asp:textbox id="txtFileName" style="Z-INDEX: 102; LEFT: 64px; POSITION: absolute; TOP: 1px" runat="server" Height="23px" Width="430px" BorderStyle="Inset"></asp:textbox>
  39. <asp:label id="Label2" style="Z-INDEX: 103; LEFT: 2px; POSITION: absolute; TOP: 30px" runat="server" CssClass="tttable">位置</asp:label>
  40. <asp:label id="Label4" style="Z-INDEX: 104; LEFT: 3px; POSITION: absolute; TOP: 83px" runat="server" CssClass="tttable">备注</asp:label>
  41. <asp:textbox id="txtNote" style="Z-INDEX: 105; LEFT: 64px; POSITION: absolute; TOP: 85px" runat="server" Height="41px" Width="435px" BorderStyle="Inset" TextMode="MultiLine"></asp:textbox>
  42. <asp:label id="Label3" style="Z-INDEX: 106; LEFT: 0px; POSITION: absolute; TOP: 58px" runat="server" CssClass="tttable">关键字</asp:label>
  43. <asp:textbox id="txtKeyWord" style="Z-INDEX: 107; LEFT: 64px; POSITION: absolute; TOP: 57px" runat="server" CssClass="edline" Width="434px" BorderStyle="Inset"></asp:textbox>
  44. <asp:requiredfieldvalidator id="RequiredFieldValidator1" style="Z-INDEX: 120; LEFT: 496px; POSITION: absolute; TOP: 5px" runat="server" CssClass="err" ErrorMessage="文件名不能为空" ControlToValidate="txtFileName" Font-Size="X-Small">*</asp:requiredfieldvalidator>
  45. <asp:label id="lblFileLoc" style="Z-INDEX: 121; LEFT: 64px; POSITION: absolute; TOP: 29px" runat="server" CssClass="td" Font-Size="X-Small"></asp:label>
  46. <HR style="Z-INDEX: 123; WIDTH: 100%; POSITION: absolute; TOP: 136px; HEIGHT: 1px" width="100" SIZE="1">
  47. <asp:label id="Label6" style="Z-INDEX: 124; LEFT: 1px; POSITION: absolute; TOP: 145px" runat="server" CssClass="tttable">创建时间</asp:label>
  48. <asp:label id="lblCDate" style="Z-INDEX: 125; LEFT: 65px; POSITION: absolute; TOP: 146px" runat="server" Font-Size="X-Small"></asp:label>
  49. <asp:label id="Label7" style="Z-INDEX: 126; LEFT: 350px; POSITION: absolute; TOP: 145px" runat="server" Font-Size="X-Small">所有者</asp:label>
  50. <asp:label id="lblEName" style="Z-INDEX: 127; LEFT: 404px; POSITION: absolute; TOP: 148px" runat="server" Font-Size="X-Small"></asp:label></DIV>
  51. <TABLE id="Table5" style="WIDTH: 100%; HEIGHT: 10px" cellSpacing="0" cellPadding="0" border="0">
  52. <TR>
  53. <TD style="WIDTH: 72px" vAlign="top" noWrap width="72">
  54. <asp:linkbutton id="cmdFileIco" runat="server" Height="26px" CssClass="td" Width="84px" Font-Size="X-Small"  CausesValidation="False">文件图标>></asp:linkbutton></TD>
  55. <TD noWrap width="100%">
  56. <DIV id="DIV1" style="LEFT: 0px; WIDTH: 100%; POSITION: relative; TOP: 0px; HEIGHT: 57px" runat="server" ms_positioning="GridLayout" Visible="false"  CausesValidation="False">
  57. <asp:radiobutton id="rdoOther" style="Z-INDEX: 129; LEFT: 1px; POSITION: absolute; TOP: 3px" runat="server" ToolTip="默认文件图标" Text="<img src=img/button/other.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  58. <asp:radiobutton id="rdoWord" style="Z-INDEX: 129; LEFT: 65px; POSITION: absolute; TOP: 3px" runat="server" Width="39px" ToolTip="微软Word文档" Text="<img src=img/button/word.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  59. <asp:radiobutton id="rdoExcel" style="Z-INDEX: 129; LEFT: 132px; POSITION: absolute; TOP: 3px" runat="server" ToolTip="微软电子表格文档" Text="<img src=img/button/excel.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  60. <asp:radiobutton id="rdoPpt" style="Z-INDEX: 129; LEFT: 196px; POSITION: absolute; TOP: 3px" runat="server" ToolTip="微软PowerPoint演示文档" Text="<img src=img/button/ppt.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  61. <asp:radiobutton id="rdoAccess" style="Z-INDEX: 129; LEFT: 260px; POSITION: absolute; TOP: 3px" runat="server" ToolTip="微软Access文档" Text="<img src=img/button/access.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  62. <asp:radiobutton id="rdoHtml" style="Z-INDEX: 129; LEFT: 328px; POSITION: absolute; TOP: 3px" runat="server" ToolTip="超文本文档" Text="<img src=img/button/html.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  63. <asp:radiobutton id="rdoBmp" style="Z-INDEX: 129; LEFT: 0px; POSITION: absolute; TOP: 30px" runat="server" ToolTip="图片文档" Text="<img src=img/button/bmp.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  64. <asp:radiobutton id="rdoZip" style="Z-INDEX: 129; LEFT: 65px; POSITION: absolute; TOP: 30px" runat="server" ToolTip="压缩文档" Text="<img src=img/button/zip.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  65. <asp:radiobutton id="rdoNote" style="Z-INDEX: 129; LEFT: 130px; POSITION: absolute; TOP: 30px" runat="server" ToolTip="文本文档" Text="<img src=img/button/note1.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  66. <asp:radiobutton id="rdoMedia" style="Z-INDEX: 129; LEFT: 195px; POSITION: absolute; TOP: 30px" runat="server" ToolTip="多媒体文档" Text="<img src=img/button/media.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  67. <asp:radiobutton id="rdoPdf" style="Z-INDEX: 129; LEFT: 260px; POSITION: absolute; TOP: 30px" runat="server" ToolTip="Adobe Acrobat文档" Text="<img src=img/button/pdf.gif align=absmiddle>" GroupName="type"></asp:radiobutton>
  68. <asp:radiobutton id="rdoExe" style="Z-INDEX: 129; LEFT: 328px; POSITION: absolute; TOP: 30px" runat="server" ToolTip="执行文件" Text="<img src=img/button/exe.gif align=absmiddle>" GroupName="type"></asp:radiobutton></DIV>
  69. </TD>
  70. </TR>
  71. </TABLE>
  72. <HR width="100%" SIZE="1">
  73. <asp:datagrid id="dgdFileInf" runat="server" CssClass="table" Width="100%" BorderStyle="Solid" AllowSorting="True" PageSize="1" CellPadding="2" BorderColor="#F7F7F7" AutoGenerateColumns="False" BorderWidth="1px" BackColor="#F7F7F7" GridLines="None" ForeColor="Black">
  74. <SelectedItemStyle BackColor="Transparent"></SelectedItemStyle>
  75. <EditItemStyle ForeColor="Black" BackColor="Black"></EditItemStyle>
  76. <AlternatingItemStyle BorderColor="White" BackColor="White"></AlternatingItemStyle>
  77. <ItemStyle CssClass="textcenter" BackColor="#DEDFDE"></ItemStyle>
  78. <HeaderStyle CssClass="headcenter"></HeaderStyle>
  79. <FooterStyle CssClass="headcenter"></FooterStyle>
  80. <Columns>
  81. <asp:BoundColumn Visible="False" DataField="fileId" HeaderText="主键"></asp:BoundColumn>
  82. <asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="fileId" DataNavigateUrlFormatString="Download.aspx?fid={0}" DataTextField="fname" HeaderText="名称"></asp:HyperLinkColumn>
  83. <asp:BoundColumn DataField="size" ReadOnly="True" HeaderText="大小(KB)">
  84. <HeaderStyle Wrap="False" HorizontalAlign="Center"></HeaderStyle>
  85. <ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>
  86. </asp:BoundColumn>
  87. <asp:BoundColumn DataField="Ftype" HeaderText="类型">
  88. <HeaderStyle Wrap="False"></HeaderStyle>
  89. <ItemStyle Wrap="False"></ItemStyle>
  90. </asp:BoundColumn>
  91. <asp:BoundColumn DataField="cdate" ReadOnly="True" HeaderText="创建时间">
  92. <HeaderStyle Wrap="False" HorizontalAlign="Center"></HeaderStyle>
  93. <ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>
  94. </asp:BoundColumn>
  95. <asp:ButtonColumn Text="&lt;img src=img/delete.gif border=0 alt=删除/&gt;" CommandName="Delete">
  96. <HeaderStyle HorizontalAlign="Center" Width="10px"></HeaderStyle>
  97. <ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>
  98. </asp:ButtonColumn>
  99. </Columns>
  100. <PagerStyle HorizontalAlign="Center" ForeColor="DarkSlateBlue" BackColor="PaleGoldenrod"></PagerStyle>
  101. </asp:datagrid>
  102. <TABLE id="Table6" style="WIDTH: 100%; HEIGHT: 15px" cellSpacing="0" cellPadding="0" border="0">
  103. <TR>
  104. <TD class="td" style="COLOR: #009999" vAlign="top" noWrap align="left">操作提示:请在文件名处单击右键,并选取"目标另存为"以下载文件!</TD>
  105. </TR>
  106. <TR>
  107. <TD vAlign="top" noWrap align="middle" height="10"></TD>
  108. </TR>
  109. </TABLE>
  110. <TABLE id="Table7" style="WIDTH: 100%; HEIGHT: 1px" cellSpacing="0" cellPadding="0" border="0">
  111. <TR>
  112. <TD class="tttable" style="WIDTH: 56px; HEIGHT: 1px" vAlign="top" noWrap align="left">
  113. <asp:label id="lblFileName" runat="server" Font-Size="X-Small">文件名:</asp:label></TD>
  114. <TD class="td" style="WIDTH: 365px; HEIGHT: 20px" vAlign="top" noWrap align="left">
  115. <INPUT id="File1" style="WIDTH: 372px; HEIGHT: 20px" type="file" size="42" name="File1" runat="server">
  116. </TD>
  117. <TD class="td" style="WIDTH: 74px; HEIGHT: 1px" vAlign="top" noWrap align="left">
  118. <asp:button id="cmdUpFile" runat="server" Height="20px" CssClass="td" Width="61px" Text="上传" CausesValidation="False"></asp:button></TD>
  119. </TR>
  120. </TABLE>
  121. <TABLE id="Table8" cellSpacing="0" cellPadding="0" width="100%" border="0">
  122. <TR>
  123. <TD noWrap>
  124. <HR style="WIDTH: 100%; HEIGHT: 1px" width="1" SIZE="1">
  125. </TD>
  126. </TR>
  127. </TABLE>
  128. <TABLE id="Table9" style="WIDTH: 100%; HEIGHT: 18px" cellSpacing="0" cellPadding="0" border="0">
  129. <TR>
  130. <TD class="td" style="WIDTH: 70px" noWrap>
  131. <asp:linkbutton id="cmdRightSet" runat="server" Height="30px" Width="87px" Font-Size="X-Small"  CausesValidation="False">权限设定>></asp:linkbutton></TD>
  132. <TD class="td" style="WIDTH: 83px" noWrap><FONT size="3"></FONT></TD>
  133. <TD class="td" style="WIDTH: 102px" noWrap></TD>
  134. <TD class="td" style="WIDTH: 160px" noWrap align="right"></TD>
  135. <TD class="td" noWrap width="80">
  136. <asp:linkbutton id="cmdRightAdd" runat="server" Height="14px" Width="84px" Visible="False" Font-Size="X-Small"><img src="img/add.gif" border="0" align="absbottom" Visible="False">&nbsp;新增...</asp:linkbutton></TD>
  137. </TR>
  138. </TABLE>
  139. <asp:datagrid id="dgdRight" runat="server" CssClass="td" Width="100%" BorderStyle="Solid" Visible="False" CellPadding="2" BorderColor="#F7F7F7" AutoGenerateColumns="False" BorderWidth="1px" BackColor="#F7F7F7" GridLines="None" ForeColor="Black" DataKeyField="conid">
  140. <SelectedItemStyle BackColor="Transparent"></SelectedItemStyle>
  141. <EditItemStyle ForeColor="Black" BackColor="Black"></EditItemStyle>
  142. <AlternatingItemStyle BorderColor="White" BackColor="White"></AlternatingItemStyle>
  143. <ItemStyle CssClass="textcenter" BackColor="#DEDFDE"></ItemStyle>
  144. <HeaderStyle CssClass="headcenter"></HeaderStyle>
  145. <FooterStyle CssClass="headcenter"></FooterStyle>
  146. <Columns>
  147. <asp:BoundColumn Visible="False" DataField="ConId" HeaderText="key"></asp:BoundColumn>
  148. <asp:BoundColumn DataField="EmpName" ReadOnly="True" HeaderText="部门/人员"></asp:BoundColumn>
  149. <asp:TemplateColumn HeaderText="管理">
  150. <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
  151. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  152. <ItemTemplate>
  153. <asp:RadioButton id="radAdmin" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"AdminFlag") %>' GroupName="flag">
  154. </asp:RadioButton>
  155. </ItemTemplate>
  156. </asp:TemplateColumn>
  157. <asp:TemplateColumn HeaderText="写入">
  158. <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
  159. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  160. <ItemTemplate>
  161. <asp:RadioButton id="radWrite" runat="server" GroupName="flag" Checked='<%# DataBinder.Eval(Container.DataItem,"WriteFlag") %>'>
  162. </asp:RadioButton>
  163. </ItemTemplate>
  164. <EditItemTemplate>
  165. <FONT face="宋体"></FONT>
  166. </EditItemTemplate>
  167. </asp:TemplateColumn>
  168. <asp:TemplateColumn HeaderText="读取">
  169. <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
  170. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  171. <ItemTemplate>
  172. <asp:RadioButton id="radRead" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"ReadFlag") %>' GroupName="flag">
  173. </asp:RadioButton>
  174. </ItemTemplate>
  175. </asp:TemplateColumn>
  176. <asp:ButtonColumn Text="&lt;img src=img/delete.gif border=0 alt=删除 /&gt;" CommandName="Delete">
  177. <HeaderStyle Width="18px"></HeaderStyle>
  178. </asp:ButtonColumn>
  179. </Columns>
  180. <PagerStyle HorizontalAlign="Center" ForeColor="DarkSlateBlue" BackColor="PaleGoldenrod"></PagerStyle>
  181. </asp:datagrid></TD>
  182. </TR>
  183. </TABLE>
  184. <TABLE id="Table10" style="PADDING-RIGHT: 20px; PADDING-LEFT: 20px" cellSpacing="0" cellPadding="0" width="100%" border="0">
  185. <TR>
  186. <TD class="td" noWrap height="10"></TD>
  187. </TR>
  188. <TR>
  189. <TD class="td" noWrap>
  190. <asp:imagebutton id="cmdSaveExi" runat="server" ImageUrl="img/button/saveexi.gif"></asp:imagebutton>
  191. <asp:imagebutton id="cmdExit" runat="server" CausesValidation="False" ImageUrl="img/button/exit.gif"></asp:imagebutton></TD>
  192. </TR>
  193. </TABLE>
  194. <asp:validationsummary id="ValidationSummary1" runat="server" ShowSummary="False" ShowMessageBox="True"></asp:validationsummary>
  195. <asp:label id="lblErr" runat="server" CssClass="err" Font-Size="X-Small"></asp:label>
  196. <asp:label id="lblID" runat="server" Visible="False" Font-Size="X-Small"></asp:label>
  197. <asp:label id="lblFileID" runat="server" Visible="False" Font-Size="X-Small"></asp:label>
  198. <asp:label id="lblURL" runat="server" Visible="False" Font-Size="X-Small"></asp:label></TD>
  199. </TR>
  200. </TABLE>
  201. </TD>
  202. </TR>
  203. </TABLE>
  204. </TD>
  205. </TR>
  206. </TABLE>
  207. </FONT>
  208. </form>
  209. </body>
  210. </HTML>