📄 a_teachers.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="A_Teachers.aspx.cs" Inherits="A_Teachers" Title="开放式实验室预约系统-老师管理" %>
<%@ Register Assembly="devBiz.Web.UI" Namespace="devBiz.Web.UI.WebControls" TagPrefix="dbz" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset id="fsList" runat="server" style="text-align: left">
<legend runat="server" id="legendList">老师列表</legend>
<div align="left">
<asp:Button ID="btnNewBatch" runat="server" Text="新增" Width="100px" OnClick="btnNewBatch_Click"/></div>
<asp:GridView ID="TeachersList" runat="server" OnPageIndexChanging="BatchList_PageIndexChanging" OnRowCommand="BatchList_RowCommand" OnRowCreated="BatchList_RowCreated" OnRowDataBound="BatchList_RowDataBound" OnSorting="BatchList_Sorting" AutoGenerateColumns="False" >
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID">
<ItemStyle Width="20px" />
</asp:BoundField>
<asp:ButtonField HeaderText="编辑" Text="编辑" CommandName="TeacherEdit" ButtonType="Button" >
<ItemStyle Width="40px" />
</asp:ButtonField>
<asp:BoundField DataField="Name" HeaderText="姓名"/>
<asp:BoundField DataField="Sex" HeaderText="性别">
<ItemStyle Width="150px" />
</asp:BoundField>
<asp:BoundField DataField="Department" HeaderText="所在系">
<ItemStyle Width="60px" />
</asp:BoundField>
<asp:BoundField DataField="Account" HeaderText="登入账号" />
</Columns>
</asp:GridView>
</fieldset>
<br />
<fieldset id="fsItem" runat="server" style="text-align: left">
<legend id="legendItem" runat="server">Edit</legend>
<br />
<table id="Table1" cellpadding="0" cellspacing="0" width="80%" border="0" runat="server">
<tr>
<td style="width: 145px; height: 24px">
姓名</td>
<td style="width: 501px; height: 24px; text-align: left;">
<asp:TextBox ID="tbxName" runat="server"></asp:TextBox><span style="color: red">* </span>
</td>
</tr>
<tr>
<td style="width: 145px; height: 24px">
性别</td>
<td style="width: 501px; height: 24px; text-align: left;">
<asp:DropDownList ID="ddlSex" runat="server">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 145px; height: 24px;">
所在系
</td>
<td style="width: 501px; text-align: left; height: 24px;">
<asp:TextBox ID="tbxDepartment" runat="server" MaxLength="4"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 145px; height: 25px;">
平台账号
</td>
<td style="width: 501px; text-align: left; height: 25px;">
<asp:TextBox ID="tbxAccount" runat="server"></asp:TextBox><span style="color: red">* </span>
</td>
</tr>
<tr>
<td style="width: 145px; height: 26px;">
密码
</td>
<td style="width: 501px; text-align: left; height: 26px;">
<asp:TextBox ID="tbxPassword" runat="server" TextMode="Password" Width="153px" MaxLength="10"></asp:TextBox><span style="color: red">* </span>
</td>
</tr>
<tr>
<td colspan="2" align="center" style="height: 24px; text-align: left">
<asp:Label ID="lbMsg" runat="server" ForeColor="Red" Text="Label"></asp:Label><br />
<asp:Button id="btn_Save" runat="server" Text=" 保存 " CssClass="button" ToolTip="保存当前用户的更改" Width="100px" OnClick="btn_Save_Click"></asp:Button><asp:Button id="btnDel" runat="server" Text=" 删除 " CssClass="button" ToolTip="删除当前记录" OnClick="btnDel_Click"></asp:Button>
<asp:TextBox ID="tbxKeyID" runat="server" Visible="false" Width="89px">-1</asp:TextBox></td>
</tr>
</table>
</fieldset>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -