<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddTest.aspx.cs" Inherits="Admin_Test_AddTest" MaintainScrollPositionOnPostback="true"%>

<!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="../../StyleSheet.css" rel="stylesheet" type="text/css" />

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="listAddLink">
            <a href="javascript:history.back();">返 回</a></div>
        <table cellpadding="0" cellspacing="0" class="form" width="800">
            <tr>
                <td align="left" class="formName" colspan="2">
                    <span style="margin-left: 10px">添加考试</span>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    考试名称：
                </td>
                <td class="inputArea">
                    <asp:TextBox ID="txtTestName" runat="server" CssClass="txt" Width="250px"></asp:TextBox>&nbsp; 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtTestName" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:HyperLink ID="linkViewPaper" runat="server" Target="_blank">查看试卷</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    考试分数：</td>
                <td class="inputArea" valign="middle">
                    总分:<asp:TextBox ID="txtTotalScores" runat="server" CssClass="txt" Width="30px">100</asp:TextBox>&nbsp;通过:<asp:TextBox 
                        ID="txtPassScores" runat="server" CssClass="txt" Width="30px">60</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    考试时长：
                </td>
                <td class="inputArea">
                    <asp:TextBox ID="txtNeededMinutes" runat="server" CssClass="txt" Width="30px">60</asp:TextBox>
                    分钟</td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    考试有效期：</td>
                <td class="inputArea">
                    起始:<asp:TextBox ID="txtEnableDate" runat="server" CssClass="txt"></asp:TextBox>&nbsp;
                    截止:<asp:TextBox
                        ID="txtUnableDate" runat="server" CssClass="txt"></asp:TextBox>&nbsp;
                        <div class="tip"><span class="content">提示：时间格式为：yyyy-mm-dd，例如：2009-03-01</span></div></td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    答案自动保存时间间隔：</td>
                <td class="inputArea">
                    <asp:TextBox ID="txtAutoSaveInterval" runat="server" CssClass="txt" Width="30px">10</asp:TextBox>分钟<div class="tip">
                        <span class="content">提示：考生在答题过程中系统隔一段时间自动保存他们的答案，当然他们也可手动保存。</span></div>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    考试人员：</td>
                <td class="inputArea">
                <table width="100%" border="0px" cellpadding="0" cellspacing="0"><tr><td style="vertical-align: top; height: 15px; text-align: center">
                    所属部门(<asp:Label ID="lblDeptCount2" runat="server" ForeColor="Red" Text="0"></asp:Label>)</td>
                    <td style="vertical-align: top; height: 15px; text-align: center">
                        所在人员(<asp:Label ID="lblUserCount" runat="server" ForeColor="Red" Text="0"></asp:Label>)</td>
                    <td style="vertical-align: top; height: 15px; text-align: center; width: 53px;">
                        操作</td>
                    <td style="vertical-align: top; height: 15px; text-align: center">
                        考试人员(<asp:Label ID="lblUserSelectedCount" runat="server" ForeColor="Red" Text="0"></asp:Label>)</td></tr>
                    <tr>
                        <td style="vertical-align: top; text-align: center">
                            <asp:ListBox ID="lbxDeptList2" runat="server" Height="200px" Width="100px" AutoPostBack="True" DataSourceID="objdsDeptList" DataTextField="DeptName" DataValueField="DeptID" OnSelectedIndexChanged="lbxDeptList2_SelectedIndexChanged">
                            </asp:ListBox>
                            <div class="tip"><span class="content">提示：通过单击选择</span></div>
                            </td>
                        <td style="vertical-align: top; text-align: center">
                            <asp:ListBox ID="lbxUserList" runat="server" Height="200px" Width="150px" SelectionMode="Multiple" DataTextField="Name" DataValueField="UserID">
                            </asp:ListBox>&nbsp;
                            <div class="tip">
                                <span class="content">提示：可以多选通过Ctrl或Shift键。</span></div>
                        </td>
                        <td style="text-align: center; width: 53px;">
                            <asp:Button ID="btnAddSelected" runat="server" CssClass="btn" Font-Size="14px" Text=">"
                                Width="50px" ToolTip="添加选择" OnClick="btnAddSelected_Click" /><br />
                            <br />
                            <asp:Button ID="btnAddAll" runat="server" CssClass="btn" Font-Size="14px" Text=">>"
                                Width="50px" ToolTip="添加全部" OnClick="btnAddAll_Click" /><br />
                            <br />
                            <asp:Button ID="btnDelSelected" runat="server" CssClass="btn" Font-Size="14px" Text="<"
                                Width="50px" ToolTip="删除选择" OnClick="btnDelSelected_Click" /><br />
                            <br />
                            <asp:Button ID="btnDelAll" runat="server" CssClass="btn" Font-Size="14px" Text="<<"
                                Width="50px" ToolTip="删除全部" OnClick="btnDelAll_Click" />
                        </td>
                        <td style="vertical-align: top; text-align: center">
                            <asp:ListBox ID="lbxUserListSelected" runat="server" Height="200px" Width="150px" SelectionMode="Multiple">
                            </asp:ListBox>
                            <div class="tip">
                                <span class="content">提示：可以多选通过Ctrl或Shift键。</span></div>
                        </td>
                    </tr>
                </table>
                    </td>
                   
            </tr>
            <tr>
                <td class="submitArea" colspan="2">
                    <span style="margin-right: 10px">
                        <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                        <asp:Button ID="btnSubmit" runat="server" CssClass="btn" Text="提 交" Width="80px" OnClick="btnSubmit_Click" /></span></td>
            </tr>
        </table>
    
    </div>
        <asp:ObjectDataSource ID="objdsDeptList" runat="server" SelectMethod="GetDeptList"
            TypeName="BLL.BLLDepartment" OnSelected="objdsDeptList_Selected"></asp:ObjectDataSource>
        </form>
</body>
</html>
