<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJPaperAnalysis" Title="卷面分析" Codebehind="KS.SJPaperAnalysis.Aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <asp:Panel ID="ListPanel" runat="server" Width="100%">
   <script>
       document.title = '卷面分析[<%=dr!=null?dr["title"].ToString():String.Empty %>] ';
       var box = null;
       function openWin(title, url, width, height) {
           if (width == null) width = 760;
           if (height == null) height = 450;
           box = jQuery.dialog.open(url,{ id: 'topbox', lock: true, title: title,  width: width, height: height, close: function () {
               
           }
           });
       }
       function showUserList(tmid, flag,tkn) {
           openWin('查看题号['+tmid+']试题的考生答题详情', 'KS.SJDTUserList.aspx?tkn='+tkn+'&sjid=<%=sjId %>&tmid=' + tmid + '&flag=' + flag);
       }
   </script>
 <div id="manage_top" class="toptitle menu_top_fixed">
        
       卷面分析[<span style="color:Red"><%=dr!=null?dr["title"].ToString():String.Empty %></span>]   
       &nbsp;限制时间：<%=dr!=null?dr["kssj"].ToString():string.Empty %>分钟 
       
      </div>     

 <div class="menu_top_fixed_height"></div>   
<style>
.anstable{border:#E5E5E5 1px solid;padding:1px;width:80%;}
.anstable split. td{background:#FAFAFA;font-size:12px;padding-left:12px;}
.anstable .t{background:#DBE9F6;height:28px;line-height:28px;}
.anstable .t td{font-size:12px;padding-left:12px;padding-right:12px;}
.pxs img,.pxj img{ padding-left:5px;vertical-align:middle; width:18px;}
</style>
<div class="content-area">
 <div class="myTitle clearfix">
 	    <span style="font-size:12px">
        整体统计情况： 
        试卷总分：<%=dr != null ? dr["score"].ToString() : string.Empty%>分&nbsp;
        参加人数：<%=Kesion.NET.WebSite.Admin.Exam.Admin_ZGSJTotal.GetEnterExamNum(sjId)%>人 已批改<%=Kesion.NET.WebSite.Admin.Exam.Admin_ZGSJTotal.GetExamPGNum(sjId)%>份 平均得分<%=Kesion.NET.WebSite.Admin.Exam.Admin_ZGSJTotal.GetAgvScore(sjId)%>分
        
        <%=TJQK%>
        </span>
        <div class="fr">
		   <a href="KS.SJPaperAnalysis.Aspx?sjid=<%=sjId %>&flag=0" class="button pxs"> 正确率升序 <img src="/admin/images/sx.png"/></a>
           <a href="KS.SJPaperAnalysis.Aspx?sjid=<%=sjId %>&flag=1" class="button pxj"> 正确率降序 <img src="/admin/images/jx.png"/></a>
		</div>
    </div>
    
         
        <asp:Repeater ID="Repeater1" runat="server"  onitemdatabound="Repeater1_ItemDataBound" >
          <HeaderTemplate>
          <table width="98%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable mytable">

          </HeaderTemplate>
         <ItemTemplate>
         
             <TR class="CTitle sort topbar">
                 <td align="center" nowrap>
                 <span style='cursor:pointer' id='t<%# Eval("typeid") %>' class="toggleArea" onclick="showToggle(<%# Eval("typeid") %>);">
                 </span></td>
				 <td colspan="6" style="text-align:left;padding-top:2px;padding-bottom:2px;padding-left:10px;">
				 
				 <strong>
				 第<%# UtilsAutoID.CapitalFigures(Utils.StrToInt(Convert.ToString(Eval("orderid")), 1)-1)%>大题&nbsp;
				 <%#Eval("typename")%>
				 <div style="display:none">
				 <%#Eval("intro")%>
				 </div>
				</strong>
				
				</td>
			</TR>
			 <tbody id="xt<%# Eval("typeid") %>" class="showArea">
			 <tr class="bar" align="center">
			  <td style="height:24px">序号</td><td width="450">内容</td><td>分数</td><td>答题人数</td><td>正确人数</td><td>错误人数</td><td>正确率</td>
			 </tr>
             <asp:Repeater ID="Repeater2" runat="server">
               <ItemTemplate>
               <tr class="tdbg"> 
                  <td style="text-align:center" width="48"> <strong><%# DataBinder.Eval(Container.DataItem,"OrderID") %></strong></td>
                  <td >
                  
                  <a href="javascript:;" onClick="jQuery('#con<%# Eval("tmid") %>').toggle();" style="font-weight:bold">显示/关闭题目内容</a>
                  
                   <div id="con<%# Eval("tmid") %>" style="display:none">
                 
		            <%# Kesion.Exam.Function.ReplaceTKTTags(Utils.replaceBR(Convert.ToString(DataBinder.Eval(Container.DataItem, "TMNR"))),1,1)%>
		            
		            <div style='height:5px;border-bottom:1px dashed #cccccc;overflow:hidden'></div>
			        <span class="tips">
		          <div>参考答案： <%# Kesion.Exam.Function.GetCKDA(Utils.StrToInt(Eval("tmtype")),Convert.ToString(Eval("answer")))%></div>
		          <%# GetXTQK(Utils.StrToInt(Eval("tmType")),Utils.StrToInt(Eval("optionNum")) ,Utils.StrToInt(Eval("tmid"))) %>
		          <%# string.IsNullOrEmpty(Convert.ToString(Eval("dajs"))) ? "" : "答案解释：" + Utils.replaceBR(Convert.ToString(DataBinder.Eval(Container.DataItem, "dajs")))%>
			        </span>
			       </div>
			     </div>    
			    </td>
		          <td align="center" style="height:30px;font-weight:bold"><%# DataBinder.Eval(Container.DataItem,"TMFS") %>分</td>
		          
		          <%# Eval("GetUserAnswerList")     %>
		          
                </tr>
               </ItemTemplate>
             </asp:Repeater>
             
         </tbody>  
  
         </ItemTemplate>
          <FooterTemplate>
           <tr class="tdbg" style="display:<%# bool.Parse((Repeater1.Items.Count==0).ToString())?"":"none"%>">
                <td class="Ctd" style="text-align:center" colspan="4">
                </td>
               </tr> 
           </table>
          </FooterTemplate>
        </asp:Repeater>
           
           
 <div style="margin-top:30px" class="noprint">
    <table width="99%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable"> 
        <tr>
            <td class="righttd" style="height:50px" colspan="2">
            <input type="hidden" name="ZGTDFQK" id="ZGTDFQK" />
            <input type="hidden" name="TotalScore" id="TotalScore" />
             <asp:Button ID="BtnSubmit" Text="导出Excel" runat="server" CssClass="button" onclick="BtnSubmit_Click" />
              &nbsp;<input type="button" class="button" value=" 打印 " onclick="window.print()" />
              &nbsp;<input type="button" class="button" value=" 关闭 " onclick="window.close();" />
             </td>
        </tr>
        </table>
</div>
         
        
         

         <asp:Panel ID="Panel1" runat="server" Height="30px" CssClass="noprint" Width="100%">
                <br />
                <br />
        <script type="text/javascript">
            showtips('<span class="state"><strong>说明：</strong><br /></span>系统不能统计主观题的正确率，客观题的正确率已作了统计。');
		</script>

            </asp:Panel>
</asp:Panel>

</div>
</asp:Content>
