<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJReviews" Title="考后心得管理" Codebehind="KS.SJReviews.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <asp:Panel ID="ListPanel" runat="server" Width="100%">
	<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><a href="KS.ExamCtbs.aspx">错题记录</a></li>
          <li class="curr"><a href="KS.SJReviews.aspx">考后心得</a></li>
       </ul>
    </div>  
    <div class="menu_top_fixed_height"></div>
    <div class="content-area"> 
     <asp:Panel ID="sjpannel" runat="server" Width="100%">   
         <% if (Utils.StrToInt(KSCMS.S("sjid"))==0) 
            {%>
            <div class="tabs_header">
                <ul class="tabs">
                    <li class='active'><a href="KS.SJReviews.aspx">考后心得</a></li>
                    <li><a href="KS.SJReviewsCmt.aspx">心得回复数据</a></li>
                </ul>
            </div>        
  			
         <%}%>  
 		 <div class="quickSearch clearfix">
            <div class="SearchBox fl">
                <asp:DropDownList ID="DrpType" runat="server" style="margin-right:8px;">
                    <asp:ListItem Value="0">试卷名称</asp:ListItem>
                    <asp:ListItem Value="1">发表者</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox CssClass="textbox" ID="TxtKeyWord" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="开始搜索"  CssClass="button" onclick="Button1_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.SJReviews.Aspx?sjid=<%=sjid %>"><span>所有心得</span></a></li>
                        <li<%=KSCMS.S("showType")=="1"?" class='active'":string.Empty %>><a href="KS.SJReviews.Aspx?showType=1&sjid=<%=sjid %>"><span>未审核的心得</span></a></li>
                        <li<%=KSCMS.S("showType")=="2"?" class='active'":string.Empty %>><a href="KS.SJReviews.Aspx?showType=2&sjid=<%=sjid %>"><span>已审核的心得</span></a></li>
                    </ul>
                 </div>
            </div>
         </div> 
  	</asp:Panel>   
    <asp:Panel ID="PanelShow" runat="server" Width="100%" Visible="false"> 
    	 <div class="courseInfo">
			<%if (dt.Rows.Count>0) { %>
                <style>
				.info{ font-size:12px;}
				.info span{ margin-right:20px;}
				</style>
                <div class="myTitle">
                	<div class="info fr">
                    	<span>发布者：<em title="系统"><%=dt.Rows[0]["Inputer"].ToString() %></em></span>
                     	<span>时间：<%=dt.Rows[0]["AddDate"].ToString() %></span><span>类型：<%=Kesion.NET.WebExam.Admin.Exam.Admin_SJ.GetSJDtfs(Utils.StrToInt(dt.Rows[0]["dtfs"].ToString())) %></span>                          
                    	<span>考试时长：<%=dt.Rows[0]["KSSJ"].ToString() %></span>
                    	<span>总分：<%=dt.Rows[0]["Score"].ToString() %></span>
                        <span>考试人数：<%=dt.Rows[0]["TestHits"].ToString() %></span>
                    </div>
                    <a href="" title="前台页" target="_blank"><%=dt.Rows[0]["title"].ToString() %></a>
                </div>
            <%} %>
         </div>
         <div class="TabTitle md20">
            <span><a href="KS.SJScore.Aspx?sjid=<%=sjid %>">考试成绩</a></span>
            <span class="active"><a href="KS.SJReviews.Aspx?sjid=<%=sjid %>">考试心得</a></span>
         </div>
    </asp:Panel>      

    <KS:ksgv id="List" cssclass="CTable" runat="server" AutoGenerateColumns="False" EmptyDataText="没有考生发表考后心得!" PagerType="CustomNumeric" Width="99%"  GridLines="None" OnRowDataBound="List_RowDataBound" OnRowCommand="List_RowCommand" OnRowCreated="List_RowCreated">
        <Columns>
         	<asp:TemplateField HeaderText="选择">
              
                <itemstyle horizontalalign="Center" width="40px" />
                <itemtemplate>
                	<input type="checkbox"  name="ids" id="ids" value="<%#Eval("id") %>" />
                </itemtemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="试卷名称">
               <itemstyle width="400"/>
                <itemtemplate>
                    <a title="浏览试卷" href="<%#Kesion.HtmlTags.BasicField.GetRewriteUrl("examview",Convert.ToInt32(Eval("sjid").ToString())) %>" target="_blank"><%# Utils.CutStr(Convert.ToString(Eval("title")),40) %></a>
            	</itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="心得内容">
            	<itemstyle VerticalAlign="Top" />
                <itemtemplate>
                  <span style="cursor:pointer" onmousedown='parent.openWin("查看考后心得详情","exam/KS.SJShowReviews.aspx?ID="+<%# Eval("id") %>,false);return false;'>
                	<%# Utils.CutStr(Convert.ToString(Eval("content")),160) %>
                  </span>
                </itemtemplate>
            </asp:TemplateField>
			<asp:TemplateField HeaderText="状态">
            	<itemstyle horizontalalign="Center" Width="80" />
                <itemtemplate>
                  <%# Convert.ToString(Eval("status"))=="1"?"<font class='greenFont'>已审核</font>":"<font class='redFont'>未审核</font>" %>
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="用户名">
            	<itemstyle horizontalalign="Center" Width="100"/>
                <itemtemplate>
                  <%# Eval("UserName") %>
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="回复">
            	<itemstyle horizontalalign="Center" Width="80" />
                <itemtemplate>
                  <span class="greenFont"><%# Eval("CmtNum") %></span>
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="时间">
            	<itemstyle horizontalalign="Center" Width="150" />
                <itemtemplate>
                  <%# Eval("adddate") %>
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <itemstyle horizontalalign="Center" Width="200" />
                <itemtemplate>
                    <span class="greenFont" onmousedown='parent.openWin("查看考后心得详情","exam/KS.SJShowReviews.aspx?ID="+<%# Eval("id") %>,false);return false;'>详情</span>&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton runat="server" id="delete" commandargument=<%#Eval("id") %> commandname="del" CssClass="greenFont">删除</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton runat="server" id="verify" commandargument=<%#Eval("id") %> commandname="verify" CssClass="greenFont">审核</asp:LinkButton>
                </itemtemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="CTitle" />
        <EmptyDataRowStyle CssClass="emptycss" />
    </KS:ksgv>
    
    <asp:Panel ID="Panel2" runat="server" Height="30px" Width="741px">
        <div class="listedit">
         	<ul>
                <input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全选</label>
                <input type="button" value="删除记录" class="button" onclick="if (GetIDS('del')){this.form.action='?action=del';this.form.submit()}" />
                <asp:Button ID="BtnVerify" CssClass="button" Text="批量审核" runat="server" onclick="BtnVerify_Click" />
                <asp:Button ID="BtnUnVerify" CssClass="button" Text="批量取消审核" runat="server" onclick="BtnUnVerify_Click" />
            </ul>
        </div>
    </asp:Panel>
    <KS:Page ID="Page1" runat="server" />
    <asp:Panel ID="Panel1" runat="server" Height="30px" Width="100%">
        <script type="text/javascript">
            showtips('<span class="state"><strong>操作说明：</strong><br /></span>所有试卷的考试记录管理，如果限制了考生考试次数，这里的记录不能删除，否则限制次数无效。');
        </script>
    </asp:Panel>
</asp:Panel>


</div>
  

</asp:Content>
