📄 examarry_add.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="examArry_add.aspx.cs" Inherits="examArry_add" %>
<!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>
<div>
<table style="width: 732px; height: 206px" border="1" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 74px; height: 24px">
考试类型</td>
<td style="width: 532px; height: 24px">
<asp:DropDownList ID="DListType" runat="server" Width="253px">
<asp:ListItem Selected="True">普通考试</asp:ListItem>
<asp:ListItem>期末考试</asp:ListItem>
<asp:ListItem>期中考试</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 74px; height: 24px">
考试班级</td>
<td style="width: 532px; height: 24px">
<asp:DropDownList ID="DListClass" runat="server" Width="254px" DataSourceID="SqlDataSource1" DataTextField="class_name" DataValueField="class_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [class_ID], [class_name] FROM [class]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="width: 74px; height: 24px">
考试科目</td>
<td style="width: 532px; height: 24px">
<asp:DropDownList ID="DListCourse" runat="server" Width="254px" DataSourceID="SqlDataSource2" DataTextField="course_name" DataValueField="course_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [course_ID], [course_name] FROM [course]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="width: 74px; height: 24px">
考试地点<br />
(教室)</td>
<td style="width: 532px; height: 24px">
<asp:DropDownList ID="DListClassroom" runat="server" Width="254px" DataSourceID="SqlDataSource3" DataTextField="classroom_num" DataValueField="classroom_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [classroom_ID], [classroom_num] FROM [classroom]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="width: 74px; height: 24px">
考试时间</td>
<td style="width: 532px; height: 24px">
<asp:TextBox ID="TxbTime" runat="server" Width="247px"></asp:TextBox>推荐格式:2008-11-21,09:00-13:00<asp:RequiredFieldValidator
ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxbTime" ErrorMessage="请输入考试时间"
Width="250px"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 74px; height: 70px">
监考老师</td>
<td style="width: 532px; height: 70px">
主考:部门<asp:DropDownList ID="DLTchDept1" runat="server" Width="99px" AutoPostBack="True" DataSourceID="SqlDataSource4" DataTextField="dept_name" DataValueField="dept_ID">
</asp:DropDownList> 姓名<asp:DropDownList ID="DLTeacher1" runat="server" Width="151px" DataSourceID="SqlDataSource7" DataTextField="teacher_name" DataValueField="teacher_ID">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [dept_ID], [dept_name] FROM [dept]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [dept_ID], [dept_name] FROM [dept]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource7" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [teacher_ID], [dept_ID], [teacher_name] FROM [teacher_info] WHERE ([dept_ID] = @dept_ID)">
<SelectParameters>
<asp:ControlParameter ControlID="DLTchDept1" Name="dept_ID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:XTeamConnectionString %>"
SelectCommand="SELECT [teacher_ID], [dept_ID], [teacher_name] FROM [teacher_info] WHERE ([dept_ID] = @dept_ID)">
<SelectParameters>
<asp:ControlParameter ControlID="DLTchDept2" Name="dept_ID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<br />
副考:部门<asp:DropDownList ID="DLTchDept2" runat="server" Width="98px" AutoPostBack="True" DataSourceID="SqlDataSource6" DataTextField="dept_name" DataValueField="dept_ID">
</asp:DropDownList>
姓名<asp:DropDownList ID="DLTeacher2" runat="server" Width="151px" DataSourceID="SqlDataSource5" DataTextField="teacher_name" DataValueField="teacher_ID">
</asp:DropDownList>
<asp:Label ID="Label1" runat="server" ForeColor="Red" Text="若只有一位监考老师,请在下拉框中选择相同的选项"
Width="416px"></asp:Label></td>
</tr>
<tr>
<td style="width: 74px; height: 24px">
考试人数</td>
<td style="width: 532px; height: 24px">
<asp:TextBox ID="TxbStunum" runat="server" Width="243px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 74px; height: 9px">
</td>
<td style="width: 532px; height: 9px">
<asp:Button ID="BtnAdd" runat="server" OnClick="BtnAdd_Click" Text="添加" /></td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -