<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin.Exam.Admin_ExamCtbs" Codebehind="KS.ExamCtbs.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
<div id="manage_top" class="menu_top_fixed">
     <ul class="titleTab">
      <li><a href="KS.SJScore.aspx">成绩管理</a></li>
      <li><a href="KS.ZGSJPG.aspx">试卷批改</a></li>
      <li><a href="KS.ZGMonitor.aspx">实时监控</a></li>
      <li><a href="KS.SJTotal.aspx">成绩排名/分析</a></li>
      <li><a href="KS.SJTrainingRecord.aspx">随机练习记录</a></li>
      <li class="curr"><a href="KS.ExamCtbs.aspx">错题记录</a></li>
      <li><a href="KS.SJReviews.aspx">考后心得</a></li>
   </ul>
</div>  
<div class="menu_top_fixed_height"></div>
 <asp:Panel ID="ListPanel" runat="server" Width="100%">
   <script src="../../<%=MyCache.GetSJCacheConfig(1) %>/exam.js"></script>
   <script src="http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML"></script> <!--数学公式-->
    <%if (Kesion.APPCode.EditorAPI.EditorTag()=="UM"){ %>
<link rel="stylesheet" href="../../UMEditor/third-party/mathquill/mathquill.css"/>
<script src="../../UMEditor/third-party/mathquill/mathquill.min.js"></script>
    <%} %>

  
<style>
.categorynav{line-height:25px;width:97%;margin:0 auto;margin-bottom:10px;border:1px solid #DEEFFA;background-color:#F7FBFE;padding:5px 0px 5px 10px; height:100%; overflow:hidden;}
ul,li{padding:0px;margin:0px}
.categorynav li{width:160px;float:left;}
</style>
<div class="content-area">
         <div class="quickSearch clearfix">   
             <div class="quickSelect">
                <asp:DropDownList ID="DrpClassID" runat="server" onchange="location.href='?classid='+this.value;" Width="130">
                <asp:ListItem Value="0">--按分类查看--</asp:ListItem>
                </asp:DropDownList>
             </div>
             <div class="SearchBox fl">
                 <asp:DropDownList ID="DrpTJ" runat="server" style="margin-right:8px;">
                 <asp:ListItem Value="1">用户名</asp:ListItem>
                 <asp:ListItem Value="2">试题内容</asp:ListItem>
                 </asp:DropDownList>
                 <asp:TextBox ID="TxtKeyWord" runat="server" CssClass="textbox" />
                 <asp:Button ID="BtnSearch" runat="server" CssClass="button" Text="开始搜索" onclick="BtnSearch_Click" />
             </div>
             <div class="property">
            	 <div class="name button ml15">筛选</div>
                 <div class="propertyBox">
                 	<ul class="tabs">
                        <span class="screen fl">题目类型：</span>
                        <li<%=KSCMS.S("showType")==""?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?<%=UtilsQueryParam.Get("showtype") %>"><span>所有试题</span></a></li>
                        <li<%=KSCMS.S("showType")=="1"?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?showType=1&<%=UtilsQueryParam.Get("showtype") %>"><span>主观题</span></a></li>
                        <li<%=KSCMS.S("showType")=="2"?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?showType=2&<%=UtilsQueryParam.Get("showtype")%>"><span>单选题</span></a></li>
                        <li<%=KSCMS.S("showType")=="3"?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?showType=3&<%=UtilsQueryParam.Get("showtype")%>"><span>多选题</span></a></li>
                        <li<%=KSCMS.S("showType")=="4"?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?showType=4&<%=UtilsQueryParam.Get("showtype")%>"><span>判断题</span></a></li>
                        <li<%=KSCMS.S("showType")=="5"?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?showType=5&<%=UtilsQueryParam.Get("showtype")%>"><span>填空题</span></a></li>
                        <li<%=KSCMS.S("showType")=="6"?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?showType=6&<%=UtilsQueryParam.Get("showtype")%>"><span>阅读分析</span></a></li>
                        <li<%=KSCMS.S("showType")=="7"?" class='active'":string.Empty %>><a href="KS.ExamCtbs.Aspx?showType=7&<%=UtilsQueryParam.Get("showtype")%>"><span>会计分录题</span></a></li>
                    </ul>
                 </div>
             </div>
         </div>
          <table width="99%" border="0" cellpadding="1" cellspacing="1" class="CTable mytable">
              <tr class="CTitle topbar">
               <td height="25" width="48" align="center">选择</td>
               <td width="849" style="text-align:left">&nbsp;&nbsp;<b>题目内容</b></td>
               <td width="30" align="center"><b>用户名</b></td>
               <td width="40" align="center"><b>加入时间</b></td>
               <td width="30" align="center"><b>操作</b></td>
              </tr>
       
        <asp:Repeater ID="Repeater1" runat="server"  >
          <HeaderTemplate>
          </HeaderTemplate>
         <ItemTemplate>
           <tr class="CtrMouseOut" onmouseover="this.className='CtrMouseOver'" onmouseout="this.className='CtrMouseOut'" onclick="chk(this)"> 
                <td class="Ctd" width="50" nowrap="nowrap" align="center">
                	<input type="checkbox"  name="ids" id="ids" value='<%# Eval("id") %>' />
                </td>
                <td class="Ctd" style="word-break:break-all">
                    <strong><%# ReplaceTMNR(Convert.ToString(DataBinder.Eval(Container.DataItem, "Title")), Convert.ToInt32(Eval("tmid")))%></strong>
                    <div style='height:2px;overflow:hidden'></div> 
                    <%# ReplaceTMNR(Convert.ToString(DataBinder.Eval(Container.DataItem, "TMNR")),Convert.ToInt32(Eval("tmid")))%>
                </td>
                
                <td  class="splittd Ctd" align="center">
                    <%#DataFactoryUser.GetOnlyValue("select top 1 username from KS_user where userid="+Utils.StrToInt(Eval("userid").ToString())) %>
                </td>
                <td  class="splittd Ctd" align="center" width="150">
                     <%#Eval("adddate").ToString() %>
                </td>
                <td  class="splittd Ctd" align="center" width="120">
                    <a class="greenFont" title="删除" onClick="return(confirm('确定删除该错题吗?'))" href="?action=delst&ids=<%# Eval("id") %>">删除</a>
                </td>
          </tr>
           
             
         </ItemTemplate>
          <FooterTemplate>
              <asp:Label ID="lblEmptyZP" Text="<tr class='tdbg'><td height='50' style='text-align:center' colspan=4>没有错题！！！</td></tr>" CssClass="text_hei_12" runat="server" Visible='<%#bool.Parse((Repeater1.Items.Count==0).ToString())%>'>
         	</asp:Label>

          </FooterTemplate>
        </asp:Repeater>
          </table>

      	<div class="listedit">
      	 	<input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全部选中</label>
        	<asp:LinkButton ID="delclassbutton" runat="server" onclick="delclassbutton_Click" CssClass="button">删除错题本</asp:LinkButton>
      	</div>
  		<KS:Page ID="Page1" runat="server" />

      
</asp:Panel>
</div>

</asp:Content>
