📄 add_teacherall.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_teacherall.aspx.cs" Inherits="human_manage_system_teacher_manage_teacher_all_set_add_teacherall" %>
<!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>
<link href="~/css/mm.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4">
教师综合信息添加</td>
</tr>
<tr>
<td style="width: 100px; height: 21px">
部门</td>
<td style="width: 344px; height: 21px">
<asp:DropDownList ID="tldept" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
DataTextField="dept_name" DataValueField="dept_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [dept_ID], [dept_name] FROM [dept]"></asp:SqlDataSource>
</td>
<td style="width: 112px; height: 21px">
教师</td>
<td style="width: 100px; height: 21px">
<asp:DropDownList ID="tname" runat="server" DataSourceID="SqlDataSource2" DataTextField="teacher_name"
DataValueField="teacher_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [teacher_ID], [teacher_name], [dept_ID] FROM [teacher_info] WHERE ([dept_ID] = @dept_ID)">
<SelectParameters>
<asp:ControlParameter ControlID="tldept" DefaultValue="1" Name="dept_ID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="width: 100px">
信息类型</td>
<td style="width: 344px">
<asp:DropDownList ID="type" runat="server" Width="98px">
<asp:ListItem>奖励</asp:ListItem>
<asp:ListItem>惩罚</asp:ListItem>
<asp:ListItem>其他</asp:ListItem>
<asp:ListItem Selected="True">----请选择----</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 112px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 199px">
内容</td>
<td style="width: 344px; height: 199px">
<asp:TextBox ID="tcontent" runat="server" TextMode="MultiLine" Height="177px" Width="330px"></asp:TextBox></td>
<td style="width: 112px; height: 199px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tcontent"
ErrorMessage="内容不能为空"></asp:RequiredFieldValidator></td>
<td style="width: 100px; height: 199px">
</td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 344px">
<asp:Button ID="btn_addteacherall" runat="server" OnClick="btn_addteacherall_Click"
Text="添加" /></td>
<td style="width: 112px">
<asp:Button ID="Button2" runat="server" Text="重置" OnClick="Button2_Click" /></td>
<td style="width: 100px">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -