<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_ReplyList, App_Web_ahimsrpm" %>

<%@ Register Assembly="WanerSoft" Namespace="WanerSoft.Web.UI.Controls" TagPrefix="cc1" %>
<html>
<head>
    <title>评论列表</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="../css/Admin.css" rel="stylesheet" />

    <script type="text/javascript" language="javascript" src="js/jscheckbox.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div style="margin: 0px auto 0px auto; text-align: left;">
            <div class="tips">
                软件评论列表，您可以通过软件名称搜索相关软件的评论！
            </div>
            <table>
                <tr>
                    <td>
                        评论搜索：
                        <cc1:TextBox ID="txt_SoftName" CssClass="w" runat="server"></cc1:TextBox>
                        <asp:DropDownList ID="searchby" runat="server">
                            <asp:ListItem Value="softName">按软件名称</asp:ListItem>
                            <asp:ListItem Value="userLoginName">按评论者帐号</asp:ListItem>
                            <asp:ListItem Value="hasAud">按是否审核,0否,1是</asp:ListItem>
                            <asp:ListItem Value="rating">按评论分数 大于</asp:ListItem>
                        </asp:DropDownList>
                        <Ws:Button ID="btn_Search" Styles="WebButton" Format-Value="正在搜索，请稍候......" Type="Wait"
                            Text="搜索" runat="server" OnClick="btn_Search_Click" />
                        <Ws:Button ID="btn_Audit" Styles="WebButton" Format-Value="正在审核，请稍候......" Type="Wait"
                            Text="审核选中" runat="server" OnClick="btn_Audit_Click" />
                        <Ws:Button ID="btn_Cancelaudit" Styles="WebButton" Format-Value="正在取消审核，请稍候......"
                            Type="Wait" Text="取消审核" runat="server" OnClick="btn_Cancelaudit_Click" />
                        <Ws:Button ID="btn_Dels" Styles="WebButton" Format-Value="正在删除选中，请稍候......" Type="Wait"
                            Text="删除选中" runat="server" OnClick="btn_Dels_Click" />
                    </td>
                </tr>
            </table>
            <table class="main" style="margin-top: 10px; margin-bottom: 10px;" border="1">
                <thead>
                    <tr>
                        <td>
                            <input name="chkall" value="1" type="checkbox" onclick="javascript:CheckAll(this,'Item')" />
                        </td>
                        <td>
                            软件名称</td>
                        <td>
                            发表用户</td>
                        <td>
                            评论时间</td>
                        <td>
                            是否审核
                        </td>
                        <td>
                            操作
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="repreplyist" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <input name="Item" type="checkbox" value='<%# Eval("id")%>' />
                                </td>
                                <td>
                                    <%# Eval("softName")%>
                                </td>
                                <td>
                                    <%# Eval("userLoginName")%>
                                </td>
                                <td>
                                    <%# Eval("addTime")%>
                                </td>
                                <td>
                                    <img src="admin_images/softimg/<%# Eval("hasAud")%>.gif" />
                                </td>
                                <td>
                                    <a href="Admin_ReplyEdit.aspx?action=edits&id=<%# Eval("id") %>">编辑</a> &nbsp; <a
                                        href="?action=Del&id=<%# Eval("id") %>" onclick="javascript:return confirm('确认删除?')">
                                        删除</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="true" FirstPageText="[首页]"
                LastPageText="[尾页]" NextPageText="[后页]" PrevPageText="[前页]" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
