📄 leibie.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="leibie.aspx.cs" Inherits="gxxz_leibie" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<style type="text/css">
div.RoundedCorner{background: #5AAE18}
b.rtop, b.rbottom{display:block;background: #FFF}
b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18}
b.r1{margin: 0 4px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, {margin: 0 1px;height: 1px}
.style1 {
font-size: 13px;
color: #FFFFFF;
font-weight: bold;
}
</style>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div align="center">
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="RoundedCorner">
<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>
</div>
</td>
</tr>
</table>
</div>
<div align="center">
<table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
<tr>
<td bgcolor="#FFFFFF">
<form id="f1" runat="server">
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="5" cellspacing="0" bgcolor="#399CA0">
<tr bgcolor="#FFFFFF">
<td colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="18"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="7"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">类 别:</div></td>
<td width="511">
<asp:DropDownList ID="ddl_type" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1"
DataTextField="ftype_filetype" DataValueField="ftype_id">
</asp:DropDownList><asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Select"
TypeName="COM.OA.BLL.filetypeBLL"></asp:ObjectDataSource>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<%
int id = Int32.Parse(this.Request.Params["id"]);
COM.OA.Entity.files f = COM.OA.BLL.filesBLL.Select(id);
//取文件名称
int startIndex = f.f_filename.LastIndexOf(@"\") + 1;
string fileName = f.f_filename.Substring(startIndex);
//取文件后辍
int start = f.f_filename.LastIndexOf(".") + 1;
string hz = f.f_filename.Substring(start);
Session.Add("file",f);
string imgPath = "";
switch (hz)
{
case "txt": imgPath = "../img/icon/txt.gif";
break;
case "bat": imgPath = "../img/icon/bat.gif";
break;
case "jpg": imgPath = "../img/icon/jpg.gif";
break;
case "asp": imgPath = "../img/icon/asp.gif";
break;
case "doc": imgPath = "../img/icon/doc.gif";
break;
case "gif": imgPath = "../img/icon/gif.gif";
break;
case "bmp": imgPath = "../img/icon/bmp.gif";
break;
case "dll": imgPath = "../img/icon/dll.gif";
break;
case "mp3": imgPath = "../img/icon/mp3.gif";
break;
case "swf": imgPath = "../img/icon/swf.gif";
break;
}
%>
<td><div align="right">文 件:</div></td>
<td> <img src='<%=imgPath %>'> <a href="../gxxz/upload/<%=fileName %>" target="_blank" title=""><%=fileName %></a>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="69"></td>
<td>
<asp:Button ID="btnUpdate" runat="server" Height="27px" Text=" 更 新 " Width="70px" OnClick="btnUpdate_Click" />
<input name="按钮" type="button" style="FONT-SIZE: 12px; HEIGHT: 27px" onClick="javascript:history.go(-1)" value= " 取 消 " > </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"></td>
</tr>
</table></td>
</tr>
</table>
</form></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -