<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_SJShowReviews" Title="Untitled Page" Codebehind="KS.SJShowReviews.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
<div class="pageBlank">
    <table id="tbs0" width="99%" align="center" border="0" cellpadding="1" cellspacing="1" class="sTable no-borderTable"> 
              <tr>
                <td class="lefttd" height="30" align="right" style="width: 155px"><b>试卷名称：</b></td>
                <td class="righttd">
                   
                 <%=dr["title"].ToString() %>   
                 </td>
              </tr>
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 155px">
                <strong>发表人昵称：</strong></td>
            <td class="righttd">
                <%=dr["UserName"].ToString() %>
    
        </tr>
    
        <tr>
            <td align="right" class="lefttd" style="width: 155px; height: 30px">
                <strong>发表人IP地址：</strong></td>
            <td class="righttd" style="height: 30px">
                
                <%=dr["userip"].ToString() %>
                </td>
        </tr>
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 155px">
                <strong>发表时间：</strong></td>
            <td class="righttd">
                <%=dr["adddate"].ToString() %>
                </td>
        </tr>
    
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 155px">
                <strong>发表详细内容：</strong></td>
            <td class="righttd">
            <%=dr["content"].ToString() %>
                </td>
        </tr>
        <tr>
            <td align="right" class="lefttd" height="30" style="width: 155px">
                <strong>回复条数：</strong></td>
            <td class="righttd">
            <%=dr["cmtnum"].ToString() %>
                </td>
        </tr>
    </table>
	<br />

	<asp:Repeater ID="Repeater1" runat="server" >
          <HeaderTemplate>
          <table width="99%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable">
              <tr class="CTitle">
               <td height="25" width="48" align="center"><b>序号</b></td>
               <td style="width:100px;text-align:center"><b>回复人</b></td>
               <td align="center"><b>回复内容</b></td>
               <td style="text-align:center;width:50px"><b>状态</b></td>
               <td width="70" align="center"><b>操作</b></td>
              </tr>
          </HeaderTemplate>
         <ItemTemplate>
              <tr class="tdbg">
               <td height="25" width="48" align="center"><%# Container.ItemIndex + 1 + (CurrPage - 1) * PageSize%></td>
               <td style="text-align:center"><%# Eval("username") %></td>
               <td><%# Eval("content") %></td>
               <td style="text-align:center"> 
               <%# Convert.ToString(Eval("status"))=="1"?"<font color=green>已审核</font>":"<font color=red>未审核</font>" %>
 </td>
               <td width="70" align="center">
               <a href="javascript:;" onclick="KesionJS.Confirm('确定删除吗？','location.href=\'KS.SjShowReviews.aspx?action=delreply&id=<%=id %>&rid=<%# Eval("id") %>\';','')">删除</a>
               
               
               </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="5">
                  没有回复记录!
                </td>
               </tr> 
           </table>
          </FooterTemplate>
        </asp:Repeater>
   	<br />
    
    <KS:Page ID="Page1" runat="server" />
    <div class="pop-button">
        <input type="button" value="浏览发表页" class="button" onclick="window.open('<%= Kesion.BLL.BaseFun.GetRewriteUrl("exam","do-reviews/id-"+Convert.ToInt32(dr["sjid"].ToString()))%>    ');" />&nbsp;
        <asp:Button ID="Button2" runat="server" Text="浏览试卷(V)" AccessKey="V" CssClass="button" OnClick="Button1_Click" CausesValidation="False" UseSubmitBehavior="False" />
        &nbsp;<input type="button" value="关闭窗口" onclick="parent.box.close();" class="button" accesskey="C" />
    </div>
 </div>
</asp:Content>

