<%@ page language="C#" autoeventwireup="true" inherits="Product_ProductThanks_Manage, V5Shop.Shop.Category" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部 -->
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; border-bottom: #f7f7f7 4px solid">
                    <table>
                        <tr>
                            <td>
                                &nbsp;<asp:Label ID="Label2" runat="server" meta:resourcekey="lblAdminNameResource" Text="商品名称:"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtProduct" runat="server" Width="104px"></asp:TextBox>&nbsp;</td>
                            <td>
                                &nbsp;<asp:Label ID="Label5" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否审核:"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="ddlIsPass" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="1">已审核</asp:ListItem>
                                    <asp:ListItem Value="0">未审核</asp:ListItem>
                                </asp:DropDownList>&nbsp;</td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                <asp:Label ID="Label1" runat="server" meta:resourcekey="lblAdminNameResource" Text="评论人:"></asp:Label></td>
                            <td colspan="1">
                                <asp:TextBox ID="txtUsername" runat="server" Width="104px"></asp:TextBox></td>
                            <td>
                                &nbsp;<asp:Label ID="Label6" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否推荐:"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="ddlIsRecommand" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="1">推荐</asp:ListItem>
                                    <asp:ListItem Value="0">未推荐</asp:ListItem>
                                </asp:DropDownList>&nbsp;</td>
                            <td>
                                &nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" />&nbsp;</td>
                        </tr>
                    </table>
                    <!-- 查询按钮 -->
                </div>
            </div>
            <div id="content">
                <!-- 明细数据编辑栏 -->
                <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                    <input id="CheckAllBox" onclick="CheckAll()" type="checkbox" class="checkbox" />全选
                    <asp:LinkButton ID="btnView" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2" OnClientClick="return CheckSelectOne()"><img src="images/key_detail.gif" alt="查看"/>查看</asp:LinkButton>
                    <asp:LinkButton ID="btnRecommand" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelect()" OnClick="btnRecommand_Click"><img src="images/key_edit.gif" alt=""/>推荐</asp:LinkButton>
                    <asp:LinkButton ID="btnUnRecommand" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelect()" OnClick="btnUnRecommand_Click"><img src="images/key_delete.gif" alt=""/>取消推荐</asp:LinkButton>
                    <asp:LinkButton ID="btnPass" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnPass_Click" OnClientClick="return CheckSelect()"><img src="images/key_edit.gif" alt=""/>审核</asp:LinkButton>
                    <asp:LinkButton ID="btnUnPass" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelect()" OnClick="btnUnPass_Click" ><img src="images/key_delete.gif" alt=""/>取消审核</asp:LinkButton>
                    <asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckDel()" OnClick="btnDel_Click"><img src="images/key_delete.gif" alt=""/>删除</asp:LinkButton>
                    <asp:Panel ID="pnlScore" runat="server" Height="16px" Width="192px">
                        <asp:Label ID="Label3" runat="server" Text="奖励积分:"></asp:Label><cc1:NumberBox ID="txtScore" runat="server" Width="80px" />
                        <asp:Button ID="btnSet" runat="server" CssClass="button" Text="确定" OnClick="btnSetPass_Click" /></asp:Panel>
                </div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="12" HeaderStyle-ForeColor="#000000" BorderWidth="0px" GridLines="None" TableName="" Width="100%">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData">
                                <itemtemplate>
                                <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" class="checkbox"
                                    onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="5%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Title" HeaderText="感言标题" SortExpression="Title">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ProductName" HeaderText="商品名称" SortExpression="ProductName">
                                <itemstyle width="15%" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="商品星级" SortExpression="Star">
                                <itemtemplate>
                                    <cc1:LevelCtrl id="lblStar" runat="server" Value='<%# Eval("Star") %>' ImageURL="images/star.gif"></cc1:LevelCtrl>
                                </itemtemplate>
                                <itemstyle width="6%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Score" HeaderText="奖励积分" SortExpression="Score">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Date" HeaderText="感言时间" SortExpression="Date">
                                <itemstyle width="7%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Username" HeaderText="发布人" SortExpression="Username">
                                <itemstyle width="7%" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否审核" SortExpression="IsPass">
                                <itemtemplate>
                                    <asp:Label ID="lblIsPass" runat="server" Text='<%# FormatIsPassState(DataBinder.Eval(Container, "DataItem(IsPass)","{0}")) %>'> id="lblDelState"></asp:Label>
                                </itemtemplate>
                                <itemstyle width="6%" />
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否推荐" SortExpression="IsRecommand">
                                <itemtemplate>
                                    <asp:Label ID="lblIsRemark" runat="server" Text='<%# FormatIsRecommandState(DataBinder.Eval(Container, "DataItem(IsRecommand)","{0}")) %>'> id="lblDelState"></asp:Label>
                                </itemtemplate>
                                <itemstyle width="6%" />
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </cc1:V5ShopGridView>
                </div>
            </div>
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
            <div>
                <uc2:PageBottom ID="PageBottom1" runat="server" />
            </div>
        </div>
    </form>
</body>
</html>
