leibie.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:5k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="leibie.aspx.cs" Inherits="gxxz_leibie" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <style type="text/css"> 
  4. div.RoundedCorner{background: #5AAE18} 
  5. b.rtop, b.rbottom{display:block;background: #FFF} 
  6. b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
  7. b.r1{margin: 0 4px} 
  8. b.r2{margin: 0 3px} 
  9. b.r3{margin: 0 2px} 
  10. b.rtop b.r4, {margin: 0 1px;height: 1px}
  11. .style1 {
  12. font-size: 13px;
  13. color: #FFFFFF;
  14. font-weight: bold;
  15. </style>
  16. <html xmlns="http://www.w3.org/1999/xhtml">
  17. <head>
  18. <title></title>
  19. <link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
  20. </head>
  21. <body>
  22. <div align="center">
  23.   <table width="75%" border="0" cellspacing="0" cellpadding="0">
  24.     <tr>
  25.       <td>
  26.   <div class="RoundedCorner"> 
  27.     <div align="center"><b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1">类 别 更 新</span></div>
  28.   </div>
  29.   </td>
  30.     </tr>
  31.   </table>
  32. </div>
  33. <div align="center">
  34.   <table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  35.     <tr>
  36.       <td bgcolor="#FFFFFF">
  37.       <form id="f1" runat="server">
  38.         <table width="99%" border="0" cellpadding="0" cellspacing="0">
  39.           <tr>
  40.             <td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="5" cellspacing="0" bgcolor="#399CA0">
  41.                 <tr bgcolor="#FFFFFF">
  42.                   <td colspan="2"></td>
  43.                   </tr>
  44.                 <tr bgcolor="#FFFFFF">
  45.                   <td colspan="18"></td>
  46.                   </tr>
  47.                 <tr bgcolor="#FFFFFF">
  48.                   <td colspan="7"></td>
  49.                   </tr>
  50.                 <tr bgcolor="#FFFFFF">
  51.                   <td><div align="right">类 别:</div></td>
  52.                   <td width="511">
  53.                       <asp:DropDownList ID="ddl_type" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1"
  54.                           DataTextField="ftype_filetype" DataValueField="ftype_id">
  55.                       </asp:DropDownList><asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Select"
  56.                           TypeName="COM.OA.BLL.filetypeBLL"></asp:ObjectDataSource>
  57.                   </td>
  58.                 </tr>
  59.                 <tr bgcolor="#FFFFFF">
  60.                 <%
  61.                     int id = Int32.Parse(this.Request.Params["id"]);
  62.                     COM.OA.Entity.files f = COM.OA.BLL.filesBLL.Select(id);
  63.                     //取文件名称
  64.                     int startIndex = f.f_filename.LastIndexOf(@"") + 1;
  65.                     string fileName = f.f_filename.Substring(startIndex);
  66.                     //取文件后辍 
  67.                     int start = f.f_filename.LastIndexOf(".") + 1;
  68.                     string hz = f.f_filename.Substring(start);
  69.                     Session.Add("file",f);
  70.                     string imgPath = "";
  71.                     switch (hz)
  72.                     {
  73.                         case "txt": imgPath = "../img/icon/txt.gif";
  74.                             break;
  75.                         case "bat": imgPath = "../img/icon/bat.gif";
  76.                             break;
  77.                         case "jpg": imgPath = "../img/icon/jpg.gif";
  78.                             break;
  79.                         case "asp": imgPath = "../img/icon/asp.gif";
  80.                             break;
  81.                         case "doc": imgPath = "../img/icon/doc.gif";
  82.                             break;
  83.                         case "gif": imgPath = "../img/icon/gif.gif";
  84.                             break;
  85.                         case "bmp": imgPath = "../img/icon/bmp.gif";
  86.                             break;
  87.                         case "dll": imgPath = "../img/icon/dll.gif";
  88.                             break;
  89.                         case "mp3": imgPath = "../img/icon/mp3.gif";
  90.                             break;
  91.                         case "swf": imgPath = "../img/icon/swf.gif";
  92.                             break;
  93.                     }
  94.                        
  95.                  %>
  96.                   <td><div align="right">文 件:</div></td>
  97.                   <td>&nbsp;<img src='<%=imgPath %>'>&nbsp;<a href="../gxxz/upload/<%=fileName %>" target="_blank" title=""><%=fileName %></a>
  98.                       &nbsp;&nbsp;
  99.                   </td>
  100.                 </tr>
  101.                 <tr bgcolor="#FFFFFF">
  102.                   <td width="69"></td>
  103.                   <td>
  104.                       <asp:Button ID="btnUpdate" runat="server" Height="27px" Text=" 更 新 " Width="70px" OnClick="btnUpdate_Click" />&nbsp;
  105.                       
  106.                       <input name="按钮" type="button" style="FONT-SIZE: 12px; HEIGHT: 27px"   onClick="javascript:history.go(-1)" value= " 取 消 " >                      </td>
  107.                 </tr>
  108.                 <tr bgcolor="#FFFFFF">
  109.                   <td colspan="2"></td>
  110.                 </tr>
  111.             </table></td>
  112.           </tr>
  113.         </table>
  114.       </form></td>
  115.     </tr>
  116.   </table>
  117. </div>
  118.     </body>
  119. </html>