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

<!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" />
        <style type="text/css">
    .txtBlank
    {
            width:30px;
    }
     .divContent
        {
             overflow:auto;
              width:770px;
              margin:5px;
        }
       .txt
       {
            border-width:0;
            border-bottom:solid 1px black;
       }
    </style>
    <script type="text/javascript">
     function dispTitle()
    {
            var e1=document.getElementById("lblFillBlankListCount");
            if(e1.innerText=="0")
                {
                    var e=document.getElementById("trFillBlank");
                    e.style.display="none";
                }
             
            var e2=document.getElementById("lblJudgeListCount");
            if(e2.innerText=="0")
                {
                    var e=document.getElementById("trJudge");
                    e.style.display="none";
                }
             
            var e3=document.getElementById("lblSingleSelectionCount");
            if(e3.innerText=="0")
                {
                    var e=document.getElementById("trSingleSelection");
                    e.style.display="none";
                }   
             
            var e4=document.getElementById("lblMultiSelectionCount");
            if(e4.innerText=="0")
                {
                    var e=document.getElementById("trMultiSelection");
                    e.style.display="none";
                }
                
           var e5=document.getElementById("lblSimpleAnswerCount");
            if(e5.innerText=="0")
                {
                    var e=document.getElementById("trSimpleAnswer");
                    e.style.display="none";
                }
      }   
    </script>
</head>
<body onload="dispTitle()">
    <form id="form1" runat="server">
            <table cellpadding="0" cellspacing="0" class="form" width="800px">
                <tr>
                    <td class="formName" align="left">
                     <span style="margin-left:10px">查看试卷</span>
                    </td>
                </tr>
                <tr id="trFillBlank">
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        填空题(<asp:Label ID="lblFillBlankListCount" runat="server" Text="0"></asp:Label>)
                        每题<asp:Label ID="lblFillBlankScores" runat="server" Text="0"></asp:Label>
                        分 共<asp:Label ID="lblFillBlankTotalScores" runat="server" Text="0"></asp:Label>
                        分</td>
                </tr>
                
                 <tr>
                    <td>
                    <div style="text-align:left;">
                          <asp:Repeater ID="rptSubjectOfFillBlankList" runat="server" 
                    >
                    <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                    </HeaderTemplate>
                <ItemTemplate>
                     <tr>
                        <td >
                            (<%#Eval("Index")%>) <%#Eval("Question")%> <span style="color:Red"> 答案：<%# Eval("Answer")%></span></td>
                    </tr>     
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
               </asp:Repeater>
                        </div>
                   
                        </td>
                </tr>
                 <tr id="trJudge">
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                       判断题(<asp:Label ID="lblJudgeListCount" runat="server" Text="0"></asp:Label>)
                        每题<asp:Label ID="lblJudgeScores" runat="server" Text="0"></asp:Label>
                        分 共<asp:Label ID="lblJudgeTotalScores" runat="server" Text="0"></asp:Label>
                        分</td>
                </tr>
                
                 <tr>
                    <td>
                      <div style="text-align:left;">
                          <asp:Repeater ID="rptSubjectOfJudgeList" runat="server" 
                    >
                    <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                    </HeaderTemplate>
                <ItemTemplate>
                     <tr>
                        <td >
                         (<%#Eval("Index")%>) <%#Eval("Question")%> (<span style="color:Red"><%#(bool)Eval("Answer") ? "Y" : "N"%></span>)
                         </td>
                    </tr>     
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
               </asp:Repeater>
                        </div>
                    </td>
                </tr>
                  <tr id="trSingleSelection">
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        单选题(<asp:Label ID="lblSingleSelectionCount" runat="server" Text="0"></asp:Label>)
                        每题<asp:Label ID="lblSingleSelectionScores" runat="server" Text="0"></asp:Label>
                        分 共<asp:Label ID="lblSingleSelectionTotalScores" runat="server" Text="0"></asp:Label>
                        分</td>
                </tr>
                
                 <tr>
                    <td >
                    <div style="text-align:left">
                     <asp:Repeater ID="rptSubjectOfSingleSelectionList" runat="server" 
                   >
               <HeaderTemplate>
                     <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                        <b>
                         (<%#Eval("Index")%>)  <%#Eval("Question") %> (<span style="color:Red;"><%# Eval("Answer")%></span>)
                         </b><br />
                           <table width="100%">
                           <tr align="left"><td style="width:50%">A:<%#Eval("SelectA")%></td><td>B:<%#Eval("SelectB")%></td></tr>
                            <tr align="left"><td style="width:50%">C:<%#Eval("SelectC")%></td><td>D:<%#Eval("SelectD")%></td></tr>
                           </table>
                            </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                     </table>
                </FooterTemplate>
               </asp:Repeater>
                    </div>
                   </td>
                </tr>
                  <tr id="trMultiSelection">
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        多选题(<asp:Label ID="lblMultiSelectionCount" runat="server" Text="0"></asp:Label>)
                        每题<asp:Label ID="lblMultiSelectionScores" runat="server" Text="0"></asp:Label>
                        分 共<asp:Label ID="lblMultiSelectionTotalScores" runat="server" Text="0"></asp:Label>
                        分</td>
                </tr>
                
                 <tr>
                    <td >
                      <div style="text-align:left">
                     <asp:Repeater ID="rptSubjectOfMultiSelectionList" runat="server" 
                   >
               <HeaderTemplate>
                     <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                        <b>
                         (<%#Eval("Index")%>)  <%#Eval("Question")%> (<span style="color:Red;"><%# Eval("Answer")%></span>)
                         </b><br />
                           <table width="100%">
                           <tr align="left"><td style="width:50%">A:<%#Eval("SelectA")%></td><td>B:<%#Eval("SelectB")%></td></tr>
                            <tr align="left"><td style="width:50%">C:<%#Eval("SelectC")%></td><td>D:<%#Eval("SelectD")%></td></tr>
                           </table>
                            </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                     </table>
                </FooterTemplate>
               </asp:Repeater>
                    </div>
                    </td>
                </tr>
                  <tr id="trSimpleAnswer">
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        简答题(<asp:Label ID="lblSimpleAnswerCount" runat="server" Text="0"></asp:Label>)&nbsp; 
                        共<asp:Label ID="lblSimpleAnswerTotalScores" runat="server" Text="0"></asp:Label>
                        分</td>
                </tr>
                
                 <tr>
                    <td >
                    <asp:Repeater ID="rptSubjectOfSimpleAnswerList" runat="server" 
                    >
                <HeaderTemplate>
                     <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                        <div style="width:20px;  float:left; margin:0;margin-top:5px;">(<%#Eval("Index")%>)</div>
                        <div class="divContent">
                          <%#Eval("Question")%>(<%#Eval("Scores")%>分)
                            </div>
                            <div class="divContent" style="color:Red">
                            答案：<%# Eval("Answer")%>
                            </div>
                            </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                     </table>
                </FooterTemplate>
               </asp:Repeater>
                   </td>
                </tr>
                <tr>
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                       其他信息
                    </td>
                </tr>
                
                 <tr>
                    <td >
                    试卷名称：<span style="color:Black"><asp:Label ID="lblPaperName" runat="server" Text=""></asp:Label></span>&nbsp;
                    试卷所属部门：<span style="color:Black"><asp:Label ID="lblPaperType" runat="server" Text=""></asp:Label></span>
                       </td>
                </tr>
                <tr>
                    <td  class="submitArea">
                         <span style="margin-right:10px">
                         <b style="color:White;">
                         该试卷共<asp:Label ID="lblTotalScores" runat="server" Text="0"></asp:Label>
                         分</b>
                         <input type="button" value="关 闭" class="btn" onclick="javascript:window.close()" />
                            </span></td>
                </tr>
            </table>
              
    </form>
</body>
</html>
