<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJKnowledgeAnalysis" Title="知识点分析卷面" Codebehind="KS.SJKnowledgeAnalysis.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">
        
      <strong>整体统计情况：</strong> 
    试卷总分：<%=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)%>分

      </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;}
</style>
<div class="content-area">
    
         
        <asp:Repeater ID="Repeater1" runat="server"  onitemdatabound="Repeater1_ItemDataBound" >
          <HeaderTemplate>
          <table width="98%" align="center" border="0" cellpadding="1" cellspacing="1" class="mytable">

          </HeaderTemplate>
         <ItemTemplate>
         
             <TR class="CTitle sort topbar">
                 <td align="center" nowrap>
                 <%# UtilsAutoID.CapitalFigures(Container.ItemIndex)%>、</td>
				 <td colspan="6" style="text-align:left;padding-top:2px;padding-bottom:2px;padding-left:10px;">
				 <strong>
				 知识点：<%# Eval("title") %>
				</strong>
				
				</td>
			</TR>
			 <tbody id="xt<%# Eval("id") %>" 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><%# Container.ItemIndex + 1%></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">
                  <strong><%# Eval("title") %></strong><br />
		            <%# 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>
		          <%# Kesion.NET.WebSite.Admin_SJPaperAnalysis.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>
		          
		          <%#Kesion.NET.WebSite.Admin_SJPaperAnalysis.GetUserAnswerList(Convert.ToInt16(Eval("TmType")), Convert.ToInt32(Eval("tmid")), Convert.ToString(Eval("answer")), Convert.ToString(Eval("tmfs")))%>
		          
                </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%">
              
        <script type="text/javascript">
            showtips('<span class="state"><strong>操作说明：</strong><br /></span>系统不能统计主观题的正确率，客观题的正确率已作了统计。');
		</script>

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

</asp:Content>
