📄 add_teacher.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_teacher.aspx.cs" Inherits="_Default" %>
<!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" />
<script language="javascript" type="text/javascript">
// <!CDATA[
function TABLE1_onclick() {
}
function TABLE1_onclick() {
}
// ]]>
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table cellpadding="0" cellspacing="0" id="TABLE1" onclick="return TABLE1_onclick()" border="1">
<tr>
<td colspan="6" style="height: 18px">
教师信息添加</td>
</tr>
<tr>
<td style="width: 1916px; height: 68px">
教师姓名</td>
<td style="width: 87px; height: 68px">
<asp:TextBox ID="t_name" runat="server" Width="100px"></asp:TextBox><span style="color: #ff6666">*</span></td>
<td style="width: 38px; height: 68px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="t_name"
ErrorMessage="姓名不能为空" Width="102px"></asp:RequiredFieldValidator></td>
<td style="width: 2775px; height: 68px">
职称</td>
<td style="width: 59px; height: 68px">
<asp:DropDownList ID="rate" runat="server" Width="100px" DataSourceID="SqlDataSource1" DataTextField="rate_name" DataValueField="rate_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [rate_ID], [rate_name] FROM [rate]"></asp:SqlDataSource>
</td>
<td style="width: 100px; height: 68px">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 14px">
性别</td>
<td style="width: 87px; height: 14px">
<asp:DropDownList ID="t_sex" runat="server">
<asp:ListItem Selected="True">男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 38px; height: 14px">
</td>
<td style="width: 2775px; height: 14px">
<span style="font-size: 8pt; color: #ff6666">:<span style="font-size: 12pt; color: #000000">所属部门</span></span></td>
<td style="width: 59px; height: 14px; font-size: 12pt; color: #000000;">
<asp:DropDownList ID="dept" runat="server" DataSourceID="SqlDataSource2" DataTextField="dept_name" DataValueField="dept_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [dept_ID], [dept_name] FROM [dept]"></asp:SqlDataSource>
</td>
<td style="width: 100px; height: 14px">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 13px">
受聘时间</td>
<td style="width: 87px; height: 13px">
<asp:TextBox ID="twork_time" runat="server" Width="135px"></asp:TextBox></td>
<td style="width: 38px; height: 13px">
</td>
<td style="width: 2775px; height: 13px">
联系地址</td>
<td style="width: 59px; height: 13px">
<asp:TextBox ID="t_address" runat="server"></asp:TextBox></td>
<td style="width: 100px; height: 13px">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 18px">
年龄</td>
<td style="width: 87px; height: 18px">
<asp:TextBox ID="t_age" runat="server" Width="60px"></asp:TextBox><span style="color: #ff6666">*</span></td>
<td style="width: 38px; height: 18px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="t_age"
ErrorMessage="年龄不能为空" Width="100px"></asp:RequiredFieldValidator></td>
<td style="width: 2775px; height: 18px">
籍贯</td>
<td style="width: 59px; height: 18px">
<asp:TextBox ID="t_born" runat="server"></asp:TextBox></td>
<td style="width: 100px; height: 18px">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 21px">
联系电话</td>
<td style="width: 87px; height: 21px">
<asp:TextBox ID="t_phone" runat="server"></asp:TextBox></td>
<td style="width: 38px; height: 21px">
</td>
<td style="width: 2775px; height: 21px">
电子邮箱</td>
<td style="width: 59px; height: 21px">
<asp:TextBox ID="t_mail" runat="server"></asp:TextBox></td>
<td style="width: 100px; height: 21px">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 24px;">
政治面貌</td>
<td style="width: 87px; height: 24px;">
<asp:TextBox ID="t_fea" runat="server"></asp:TextBox></td>
<td style="width: 38px; height: 24px;">
</td>
<td style="width: 2775px; height: 24px;">
身份证号码</td>
<td style="width: 59px; height: 24px;">
<asp:TextBox ID="t_IDcard" runat="server"></asp:TextBox></td>
<td style="width: 100px; height: 24px;">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 22px;">
教学组长</td>
<td style="width: 87px; height: 22px;">
<asp:CheckBox ID="tIS_head" runat="server" /></td>
<td style="width: 38px; height: 22px;">
</td>
<td style="width: 2775px; height: 22px;">
解聘时间</td>
<td style="width: 59px; height: 22px; font-style: normal;">
<asp:TextBox ID="tfire_work" runat="server" Width="104px"></asp:TextBox><span style="font-size: 8pt;
color: #ff6666">格式2008-11-12</span></td>
<td style="width: 100px; height: 22px;">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 20px;">
是否在职</td>
<td style="width: 87px; height: 20px;">
<asp:CheckBox ID="tIS_work" runat="server" /></td>
<td style="width: 38px; height: 20px;">
</td>
<td style="width: 2775px; height: 20px;">
是否解聘</td>
<td style="width: 59px; height: 20px;">
<asp:CheckBox ID="tIS_fire" runat="server" Width="101px" /></td>
<td style="width: 100px; height: 20px;">
</td>
</tr>
<tr>
<td style="width: 1916px; height: 26px">
备注</td>
<td colspan="2" style="height: 26px">
<asp:TextBox ID="t_intru" runat="server" TextMode="MultiLine" Height="74px" Width="214px"></asp:TextBox></td>
<td style="width: 2775px; height: 26px">
照片</td>
<td style="width: 59px; height: 26px">
<asp:Image ID="t_image" runat="server" Height="85px" Width="123px" />
<asp:FileUpload ID="upload_image" runat="server" /></td>
<td style="width: 100px; height: 26px">
</td>
</tr>
<tr>
<td style="height: 5px" colspan="3">
<asp:Button ID="btn_addteacher" runat="server" Text="添加" OnClick="btn_addteacher_Click" /></td>
<td colspan="2" style="height: 5px">
</td>
<td style="width: 100px; height: 5px">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -