<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJReviewsCMT" Title="考后心得评论管理" Codebehind="KS.SJReviewsCMT.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">            
    
    <div class="tabs_header">
        <ul class="tabs">
            <li><a href="KS.SJReviews.aspx">考后心得</a></li>
            <li class='active'><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.SJReviewsCMT.Aspx"><span>所有评论</span></a></li>
                    <li<%=KSCMS.S("showType")=="1"?" class='active'":string.Empty %>><a href="KS.SJReviewsCMT.Aspx?showType=1"><span>未审核的评论</span></a></li>
                    <li<%=KSCMS.S("showType")=="2"?" class='active'":string.Empty %>><a href="KS.SJReviewsCMT.Aspx?showType=2"><span>已审核的评论</span></a></li>
                </ul>
             </div>
        </div>
    </div>      
    <KS:ksgv id="List" runat="server" cssClass="CTable" AutoGenerateColumns="False" EmptyDataText="没有评论数据!" PagerType="CustomNumeric" Width="99%" HorizontalAlign="Center" 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="评论内容">
                <itemtemplate>
                <%# Utils.CutStr(Convert.ToString(Eval("content")),40) %>
                </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>" %>
                  </span>
                </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="用户名" DataField="UserName" >
                <itemstyle Width="100" horizontalalign="Center" />
            </asp:BoundField>
            
           <asp:BoundField HeaderText="发表时间" DataField="AddDate">
                <itemstyle  horizontalalign="Center" Width="150"/>
            </asp:BoundField>
           
            
            <asp:TemplateField HeaderText="操作">
                <itemstyle Width="200px" horizontalalign="Center" />
                <itemtemplate>

                     <a href="<%#Kesion.BLL.BaseFun.GetRewriteUrl("exam","do-reviews,id-"+Eval("SJID")) %>" class="greenFont" target="_blank">详情</a>&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>
