<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJDTUserList" Title="试题正确/错误用户列表" Codebehind="KS.SJDTUserList.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">

<div style="margin:5px;"><input type="button" class="button" value="显示/关闭题目内容" onclick="jQuery('#tm').toggle()"/> 
    <asp:Button ID="BtnExcel" runat="server" Text="导出Excel" CssClass="button" 
        onclick="BtnExcel_Click" /></div>
<div style="background:#f1f1f1;border:1px solid #ccc;margin:5px;padding:3px;display:none" id="tm">
<%
    if (dr != null)
    {
        Response.Write("<strong>题目：" + dr["title"].ToString()+"<br/></strong>");
        Response.Write(dr["tmnr"].ToString().Replace("\r\n","<br/>"));
    }    
 %></div>

<asp:Repeater ID="Repeater1" runat="server">
          <HeaderTemplate>
           <table width="98%" align="center" border="0" cellpadding="1" cellspacing="1" class="mytable">
 
             <TR class="CTitle sort topbar">
                 <td align="center"><strong>序号</strong></td>
				 <td align="center"><strong>用户名</strong></td>
				 <td align="center"><strong>正确答案</strong></td>
				 <td align="center"><strong>用户答案</strong></td>
				 <td align="center"><strong>是否正确</strong></td>
			</TR>

          </HeaderTemplate>
         <ItemTemplate>      
         <tr class="tdbg"><td align='center'><%# Eval("序号") %></td><td align='center'><%# Eval("用户名") %></td><td align='center'><%#Eval("正确答案") %></td><td align='center'><%#Eval("用户答案")%></td><td align='center'><img src="<%=MyCache.GetCacheConfig(5)+MyCache.GetCacheConfig(0) %>sysimg/default/<%# Convert.ToString(Eval("是否正确")).ToLower()=="true"?"yes":"no"%>.gif" /></td></tr>
         </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>
           
            
 <KS:Page ID="Page1" runat="server" />    
    
     
   
</asp:Content>
