📄 bookman.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookMan.aspx.cs" Inherits="BookMan" %>
<!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 runat="server">
<title>图书信息管理系统-->图书信息维护</title>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center">
<table border="1" cellpadding="0" cellspacing="0" style="width: 600px; height: 360px">
<tr>
<td colspan="2" style="width: 600px; height: 30px; background-color: silver;">
<span style="font-size: 18pt">图书信息管理系统--</span>图书信息维护</td>
</tr>
<tr>
<td style="width: 150px; height: 300px">
<asp:Label ID="lbl_Level" runat="server">系统管理员</asp:Label><br />
<asp:Label ID="lbl_UserName" runat="server"></asp:Label><br />
<a href="login.aspx">注销</a><br />
<br />
<br /><a href="UserMan.aspx">用户信息维护</a>
<br /><a href="ReaderMan.aspx">读者信息维护</a>
<br /><a href="BookMan.aspx">图书信息维护</a>
<br />
<br />
<br />
<br />
</td>
<td style="width: 450px; height: 300px">
<div style="text-align: center">
<table border="0" cellpadding="0" cellspacing="0" style="width: 448px; height: 298px">
<tr>
<td style="width: 448px; height: 30px; text-align: left">
查找管理编号为<asp:TextBox ID="txtkey" runat="server" Width="87px"></asp:TextBox>的图书<asp:Button
ID="btnSearch" runat="server" Text="开 始" OnClick="btnSearch_Click" Width="73px" /></td>
</tr>
<tr>
<td style="width: 448px; height: 239px; text-align: left;">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="15" AllowPaging="True" CellPadding="1" DataKeyNames="BookID" ForeColor="#333333" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 90px; height: 19px; text-align: center;">
<%# Eval("BookID")%>
</td>
<td style="width: 90px; height: 19px; text-align: center;">
<%# Eval("BookName")%>
</td>
<td style="width: 90px; height: 19px; text-align: center;">
<%# Eval("ManID")%>
</td>
<td style="width: 50px; height: 19px; text-align: center;">
<asp:LinkButton ID="lblupdate" runat="server" PostBackUrl='<%# "BookModify.aspx?BookID="+ Eval("BookID") %>'>修改</asp:LinkButton></td>
<td style="width: 50px; height: 19px; text-align: center;">
<asp:LinkButton ID="lbldel" runat="server" CommandName="delete" OnClientClick="return confirm('确定要删除该图书吗?')">删除</asp:LinkButton></td>
</tr>
</table>
</ItemTemplate>
<HeaderTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 90px; height: 19px; text-align: center">
图书编号</td>
<td style="width: 90px; height: 19px; text-align: center">
图书名</td>
<td style="width: 90px; height: 19px; text-align: center">
管理编号</td>
<td style="width: 50px; height: 19px; text-align: center">
修改
</td>
<td style="width: 50px; height: 19px; text-align: center">
删除
</td>
</tr>
</table>
</HeaderTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView></td>
</tr>
<tr>
<td style="width: 448px; height: 30px; text-align: left;">
<a href="BookAdd.aspx">添加新图书信息</a></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" style="width: 600px; height: 30px; background-color: gainsboro;">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -