<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestList.aspx.cs" Inherits="Admin_Test_TestList" %>

<!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" style="width: 900px">
            <a href="SelectPaper.aspx">添加考试</a></div>
        <div class="listTop" style="width: 900px">
            <span class="title">考试安排</span>
        </div>
        <asp:Repeater ID="rplTestList" runat="server" 
            onitemdatabound="rplTestList_ItemDataBound">
            <HeaderTemplate>
           
                 <table border="0" cellpadding="0" cellspacing="0" class="tableList" width="900">
            <tr class="header">
                <td style="width:30px;">
                    编号</td>
                <td>
                    考试名称</td>
                <td>
                   组卷方式 </td>
                <td style="width: 60px;">
                考试时长
                    </td>
                <td style="width: 60px;">
                    试卷总分</td>
                <td style="width: 60px;">
                    通过分数</td>
                <td style="width: 60px;">
                    创建者</td>
                <td style="width: 60px;">
                    有效起始</td>
                     <td style="width: 60px;">
                    有效终止</td>
                <td style="width: 60px;">
                是否过期
                </td>
                <td>
                    操 作</td>
            </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="body">
                <td style="width: 20px">
                    <%#Eval("TestID") %></td>
                <td>
                  <%#Eval("TestName") %></td>
                  <td>
                       <%#Eval("PaperType") %></td>
                <td style="width: 76px">
                    <%#Eval("NeededMinutes") %>分钟</td>
                <td style="height: 18px">
                    <%#Eval("TotalScores") %>分</td>
                <td style="height: 18px">
                    <%#Eval("PassScores") %>分</td>
                <td>
                    <%#Eval("Creator.Name") %></td>
                <td>
                    <%# ((DateTime)Eval("EnableDate")).ToShortDateString() %></td>
                    <td>
                    <%# ((DateTime)Eval("UnabaleDate")).ToShortDateString()%></td>
                 <td>
                  <%# (bool)Eval("HasUnable") == true ? "<span style='color:red;'>已过期</span>" : "未过期"%>
                 </td>
                <td>
                <asp:HiddenField ID="hidTestID" runat="server" Value='<%# Eval("TestID") %>' />
                <asp:HiddenField ID="hidPaperID" runat="server" Value='<%# Eval("Paper.PaperID") %>' />
                    <asp:HiddenField ID="hidPaperType" runat="server" Value='<%# (int)Eval("PaperType") %>' />
                    <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank">试卷</asp:HyperLink>
                     | <a href='ViewTester.aspx?testID=<%#Eval("TestID") %>' target="_blank">考试人员</a> | <a href='ModTest.aspx?testID=<%#Eval("TestID") %>'>设置</a> | <a href='delTest.aspx?testID=<%#Eval("TestID") %>' onclick="return confirm('你确定删除吗？删除之后对应的考试记录和成绩都会被删除？')" title="有警告提示">删除</a></td>
            </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
          
        <div class="listBottom" style="width: 900px">
            <asp:Label ID="lblPageUrl" runat="server" Text="" ForeColor="White"></asp:Label></div>
    </div>
      
    </form>
</body>
</html>
