<%@ page language="C#" autoeventwireup="true" inherits="GroupFlyProduce_ProduceAdmin_ProduceProductComment_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="China315" %>
<!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 rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

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

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnableScriptGlobalization="true" EnableScriptLocalization="true"
        runat="server">
    </asp:ScriptManager>
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTitle" runat="server" Text="产品评论列表"></asp:Label></div>
            <div class="query">
                <table width="100%">
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeMemLoginID" runat="server" Text="评论人："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxMemLoginID" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxMemLoginID"
                                runat="server" ControlToValidate="TextBoxMemLoginID" Display="Dynamic" ErrorMessage="最多50个字符"
                                ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeSendTime" runat="server" Text="评论时间："></asp:Localize>
                        </td>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxSendTime1" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="img1" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;
                                position: relative; top: 4px" />
                            <China315:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TextBoxSendTime1"
                                PopupButtonID="img1" CssClass="ajax__calendar" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxSendTime1" runat="server"
                                ControlToValidate="TextBoxSendTime1" Display="Dynamic" ErrorMessage="时间格式不正确"
                                ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            -<asp:TextBox ID="TextBoxSendTime2" runat="server" CssClass="allinput1"></asp:TextBox>
                            <img id="img2" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;
                                position: relative; top: 4px" />
                            <China315:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="TextBoxSendTime2"
                                PopupButtonID="img2" CssClass="ajax__calendar" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxSendTime2" runat="server"
                                ControlToValidate="TextBoxSendTime2" Display="Dynamic" ErrorMessage="时间格式不正确"
                                ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeTitle" runat="server" Text="评论标题："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTitle" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTitle" runat="server"
                                ControlToValidate="TextBoxTitle" Display="Dynamic" ErrorMessage="最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeProductGuid" runat="server" Text="评论商品："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTitleProductGuid" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxTitleProductGuid"
                                runat="server" ControlToValidate="TextBoxTitleProductGuid" Display="Dynamic"
                                ErrorMessage="最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeIPAddress" runat="server" Text="评论IP："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxIPAddress" runat="server" CssClass="allinput1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxIPAddress" runat="server"
                                ControlToValidate="TextBoxIPAddress" Display="Dynamic" ErrorMessage="最多50个字符"
                                ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            <td>
                                <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bnt1" OnClick="ButtonSearch_Click" />
                            </td>
                        </td>
                    </tr>
                </table>
            </div>
            <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" Width="100%" AddSequenceColumn="False"
                AllowMultiColumnSorting="False" AutoGenerateColumns="False" BorderColor="#CCDDEF"
                CellPadding="0" Del="False" DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False"
                GridViewSortDirection="Ascending" PagingStyle="None" TableName="" AllowSorting="True"
                DataSourceID="ObjectDataSourceDate" CellSpacing="1" GridLines="None" AllowPaging="True"
                Style="margin-left: 0px;">
                <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                </HeaderStyle>
                <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <input id="checkboxItem" value='<%# Eval("Guid") %>' type="checkbox" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="MemLoginID" HeaderText="评论用户" />
                    <asp:BoundField HeaderText="评论标题" DataField="Title" />
                    <asp:BoundField DataField="Name" HeaderText="评论商品" />
                    <asp:BoundField HeaderText="评论时间" DataField="SendTime" />
                    <asp:TemplateField HeaderText="审核状态">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Is(Eval("IsAudit")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </cc1:GroupFlyGridView>
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonIsAudit" runat="server" CausesValidation="False" Text="审核"
            CssClass="bnt1 cancel" OnClientClick="return AuditButton()" OnClick="ButtonIsAudit_Click" />
        <asp:Button ID="ButtonCancel" runat="server" CausesValidation="False" Text="取消审核"
            CssClass="bt3 cancel" OnClientClick="return AuditButton()" OnClick="ButtonCancel_Click" />
        <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" Text="删除" CssClass="bnt1 cancel"
            OnClientClick="return DeleteButton()" OnClick="ButtonDelete_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="SearchProductComment"
        
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_ProductComment_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxMemLoginID" Name="memLoginID" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxTitleProductGuid" Name="productGuid" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxTitle" Name="title" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSendTime1" Name="sendTime1" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxSendTime2" Name="sendTime2" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxIPAddress" Name="ipAddress" PropertyName="Text"
                Type="String" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
            <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" 
                PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="ProduceMemLoginID" runat ="server" Value ="0" />
    </form>
</body>
</html>
