<%@ Page Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="Commentmanage.aspx.cs" Inherits="Mvcb2b.admin.Commentmanage" Title="评论管理" %>
<%@ Import Namespace="Mvcmode"%>
<%@ Import Namespace="Mvcbll"%>
<%@ MasterType VirtualPath="Admin.Master" %>
<%@ Register src="controls/Date_Qi.ascx" tagname="Date_Qi" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" src="../Comja/val_num.js"></script>    
<script type="text/javascript">
    function pingstate(id) {
        var isshen = escape($("#statustxt_" + id).val());
        $.ajax({
            type: "POST",
            url: "jquery/plupdate.aspx",
            dataType: "html",
            data: { "id": "" + id + "", "isshen": "" + isshen + "" }, /*传输的参数*/
            success: function (msg) {
                if (msg != "0") {
                    /*显示*/
                    alert("更新成功!");
                    window.location.href = "<%=Cur_url%>";
                }
            }, error: function (e) { alert("error-$.ajax" + e); }
        });
    }
</script>
<div class="path">当前位置： 系统管理 >>  评论管理</div>
<h3 class="nob">评论管理</h3>
<div class="menusearch">
    <div style="float:left;padding-left:20px;"><input type="button" value="重置搜索" onclick="javascript:window.location.href='Commentmanage.aspx';" class="submit"  /> &nbsp; 关键字：</div>
    <div style="float:left;padding-left:0px;"><input type="text" class="key" name="key" id="key" value="<%=keyword %>" /> </div>
    <div style="float:left;padding-left:15px;">按刊期：</div>
    <div style="float:left;padding-left:0px;">
    <uc1:Date_Qi ID="Date_Qi1" runat="server" />
    &nbsp;<asp:Button ID="Search1" runat="server" Text="搜索"  CssClass="submit"   onclick="Search1_Click" /> </div>
</div>
<table width="96%" border="0" align="center" cellpadding="2" style="background-color:#f5f5f5;" class="pagecomment" cellspacing="1">
          <tr style="background-color:#ffffff;font-weight:bold;">
            <td style="width:30px;">编号</td>
            <td style="width:110px;">所在刊期</td>
            <td>评论</td>
          </tr>
        <asp:Repeater ID="Repeater1" runat="server">
          <ItemTemplate>
          <tr style="background-color:#ffffff">
          <td><%#Eval("id")%></td>
          <td><%#Qiname(int.Parse(Eval("qiid").ToString()))%> <%#Pagename(int.Parse(Eval("editionid").ToString()))%>版</td>
          <td>          
          <dl>
              <dt><cite><strong>署名：<%#Eval("plsign").ToString()%></strong></cite><span>时间：<%#Eval("addtime").ToString()%></span></dt>
              <dd>
                <div class="ctxt">
				  <%#Fun.Textout(Eval("pldetail").ToString())%>
                  <%#showreply(Fun.Toint(Eval("id").ToString()))%>
                    <%      /*
                    Response.Write("<div class=\"replyshow\">");
                    Response.Write("<div class=\"re_title\"><cite><strong>" + item2.Plsign + "回复</strong></cite><span>" + item2.Addtime + "</span></div>");
                    Response.Write("<div class=\"re_con\">" + item2.Pldetail + "</div>");
                    Response.Write("</div>");    */                    
                    %>
                 </div>
                <div class="opt" id="opt_<%#Eval("id").ToString()%>">
                  <div class="optbar">
                  评论状态：<select id="statustxt_<%#Eval("id").ToString()%>" name="statustxt_<%#Eval("id").ToString()%>">
                <%#Plstate(Eval("isshen"))%>
            </select>  <input type="button" name="up2"  onclick="pingstate(<%#Eval("id").ToString()%>);"  value="更新" />
                  <a href="Commentp.aspx?id=<%#Eval("id")%>&action=del"><span onclick="return confirm('确实要删除吗?');">删除</span></a>
                  <a style="cursor:pointer;" >支持数：[<span><%#Eval("plgood").ToString()%></span>]</a></div>
                </div>   
              </dd>
            </dl>
          </td>
          </tr>
          
          </ItemTemplate>
         </asp:Repeater>
         <asp:Literal runat="server"  ID="noms"  />
        </table> 
<div class="pagemsg" >
<table  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr><td><asp:Literal id="Message" runat="server" ></asp:Literal></td>
          </tr><tr>
          <td style="text-align:right;">&nbsp; 直接进入 <asp:textbox  id="gopage" Width="30px"   runat="server"  CssClass="gopage" > </asp:textbox> 页   <asp:button id ="Submithao"  Text="Go" runat="server" OnClick="Submithao_Click" CssClass="gopage" ></asp:button> </td>
          </tr></table>
</div>           
</asp:Content>
