📄 adminteachermanage.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminTeacherManage.aspx.cs" Inherits="TeacherManage" %>
<!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="font-size: 12pt">
<form id="form1" runat="server">
<div>
<div>
<div style="text-align: center">
<span style="font-size: 24pt"><strong>教师信息管理<br />
</strong></span>
<br />
<table style="font-size: 12pt; width: 583px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<tr>
<td colspan="3" style="width: 688px; height: 50px; border-bottom-style: solid;">
请选择查询条件:<asp:DropDownList ID="ddlSearch" runat="server" Width="96px">
<asp:ListItem Value="UserID">教师编号</asp:ListItem>
<asp:ListItem Value="UserName">教师姓名</asp:ListItem>
<asp:ListItem Value="ClassifyID">教师分类</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="tbSearch" runat="server"></asp:TextBox>
<asp:ImageButton ID="imbtnSearch" runat="server" ImageUrl="~/images/btn_search_11.png" OnClick="imbtnSearch_Click" /><br />
<span style="font-size: 10pt">(注:如果为空则显示所有教师的信息)</span></td>
</tr>
<tr>
<td colspan="3" style="width: 688px; height: 35px; text-align: center; border-bottom-style: solid;">
添加教师信息
<asp:ImageButton ID="imbtnAdd" runat="server" ImageUrl="~/images/btn_new_a1.gif" OnClick="imbtnAdd_Click" /></td>
</tr>
<tr>
<td colspan="3" style="width: 688px; height: 328px; text-align: left; border-bottom-style: solid;">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ID" ForeColor="#333333" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
SortExpression="ID" />
<asp:BoundField DataField="UserID" HeaderText="教师编号" SortExpression="UserID" />
<asp:BoundField DataField="UserName" HeaderText="教师姓名" SortExpression="UserName" />
<asp:BoundField DataField="UserPassword" HeaderText="密码" SortExpression="UserPassword" />
<asp:BoundField DataField="Email" HeaderText="邮箱" SortExpression="Email" />
<asp:BoundField DataField="ClassifyID" HeaderText="类别" SortExpression="ClassifyID" />
<asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="AdminModifyTeacher.aspx?ID={0}"
Text="查看/修改" />
<asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="DeleteTeacher.aspx?ID={0}"
Text="删除" />
</Columns>
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<asp:Label ID="lbl_noResult" runat="server" ForeColor="Red" Visible="False">没有满足要求的记录</asp:Label></td>
</tr>
<tr>
<td colspan="3" style="width: 688px; height: 30px; text-align: left;">
共有<asp:Label ID="lblCount" runat="server" ForeColor="Red"></asp:Label>条数据</td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -