📄 maneger.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="maneger.aspx.cs" Inherits="maneger" %>
<%@ Register Src="WebUserControl.ascx" TagName="WebUserControl" TagPrefix="uc2" %>
<!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 style="background-color: #ffffff" bgcolor="#6699cc">
<form id="form1" runat="server">
<div style="text-align: left">
<asp:Image ID="Image1" runat="server" ImageUrl="~/image/logo.JPG" />
<span style="font-size: 24pt"><span style="font-family: 隶书"><strong><span style="color: #3300cc;">管理员信息管理</span></strong>
</span></span>
<hr />
</div>
<table style="width: 958px">
<tr>
<td style="width: 201px; height: 381px;">
<uc2:WebUserControl ID="WebUserControl1" runat="server" />
</td>
<td colspan="2" style="height: 381px">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large" ForeColor="MediumBlue"
Height="16px" Text="管理员身份信息" Width="221px" Font-Names="隶书"></asp:Label><br />
<br />
<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="employeeid" DataSourceID="AccessDataSource1" Height="223px" Width="688px" AllowPaging="True" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px">
<FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
<RowStyle BackColor="White" ForeColor="#003399" />
<Columns>
<asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
<asp:BoundField DataField="employeeid" HeaderText="employeeid" InsertVisible="False"
ReadOnly="True" SortExpression="employeeid" />
<asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
<asp:BoundField DataField="password" HeaderText="password" SortExpression="password" />
<asp:BoundField DataField="sex" HeaderText="sex" SortExpression="sex" />
<asp:BoundField DataField="realname" HeaderText="realname" SortExpression="realname" />
<asp:BoundField DataField="phone" HeaderText="phone" SortExpression="phone" />
<asp:BoundField DataField="address" HeaderText="address" SortExpression="address" />
<asp:CommandField ShowEditButton="True" />
<asp:CommandField ShowDeleteButton="True" />
</Columns>
<PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
</asp:GridView>
</td>
</tr>
<tr>
<td style="width: 201px; height: 18px">
</td>
<td colspan="2" style="height: 18px">
<span style="font-size: 8pt; color: red"> 特别注意:请需要添加管理员信息的人员与经理联系在此不提供添加功能!</span></td>
</tr>
<tr>
<td style="height: 21px; text-align: right;" colspan="3">
<asp:Image ID="Image2" runat="server" ImageUrl="~/back/image/箭头019.gif" />
<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Height="32px" NavigateUrl="~/quite.aspx">退出系统</asp:HyperLink>
</td>
</tr>
</table>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/BDB/BookStore.mdb"
SelectCommand="SELECT * FROM [maneger]" DeleteCommand="DELETE FROM [maneger] WHERE [employeeid] = ?" InsertCommand="INSERT INTO [maneger] ([email], [employeeid], [name], [password], [sex], [realname], [phone], [address]) VALUES (?, ?, ?, ?, ?, ?, ?, ?)" UpdateCommand="UPDATE [maneger] SET [email] = ?, [name] = ?, [password] = ?, [sex] = ?, [realname] = ?, [phone] = ?, [address] = ? WHERE [employeeid] = ?">
<DeleteParameters>
<asp:Parameter Name="employeeid" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="email" Type="String" />
<asp:Parameter Name="name" Type="String" />
<asp:Parameter Name="password" Type="String" />
<asp:Parameter Name="sex" Type="String" />
<asp:Parameter Name="realname" Type="String" />
<asp:Parameter Name="phone" Type="Int32" />
<asp:Parameter Name="address" Type="String" />
<asp:Parameter Name="employeeid" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="email" Type="String" />
<asp:Parameter Name="employeeid" Type="Int32" />
<asp:Parameter Name="name" Type="String" />
<asp:Parameter Name="password" Type="String" />
<asp:Parameter Name="sex" Type="String" />
<asp:Parameter Name="realname" Type="String" />
<asp:Parameter Name="phone" Type="Int32" />
<asp:Parameter Name="address" Type="String" />
</InsertParameters>
</asp:AccessDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -