<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="PageTitleArea">
            <div class="PageTitle">
                <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:ProductConsultationsManage,IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:ProductConsultationsManage,IDS_PageDesc %>"></asp:Literal>
            </div>
        </div>
        <Hishop:ProductConsultationsReplyedManage ID="ProductConsultations" runat="server">
            <SkinTemplate>
                <!-- 操作提示 -->
                <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
                <Hishop:ProductSearch runat="server" ID="productSearch">
                    <SkinTemplate>
                        <fieldset class="AdminSearchform">
                            <legend>
                                <asp:Literal ID="litSelectQuery" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_litSelectQuery %>"></asp:Literal></legend>
                            <table width="55%" border="0" cellspacing="0" cellpadding="0" style="margin-left: 18px">
                                <tr>
                                    <td class="searchTableLeftTD">
                                        <nobr>
                    <asp:Label ID="lblSearchText" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblSearchText %>"></asp:Label>：</nobr>
                                    </td>
                                    <td class="searchTableControlTD">
                                        <asp:TextBox ID="txtSearchText" runat="server" Width="110" ToolTip="<%$ Resources:ProductSearch, IDS_FormField_lblSearchText_ToolTip %>"></asp:TextBox>
                                    </td>
                                    <td class="searchTableLeftTD">
                                        <nobr>
                    <asp:Label ID="lblCategory" runat="server" Text="<%$ Resources:ProductSearch, IDS_FromField_lblCategory %>"></asp:Label>：</nobr>
                                    </td>
                                    <td class="searchTableControlTD">
                                        <Hishop:ProductCategoriesDropDownList ID="dropCategories" runat="server" />
                                    </td>
                                    <td class="searchTableLeftTD">
                                        <nobr>
                    <asp:Label ID="lblSKU" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblSKU %>"></asp:Label>：</nobr>
                                    </td>
                                    <td class="searchTableControlTD">
                                        <asp:TextBox ID="txtSKU" Width="110" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>

                                    <td class="searchTableLeftTD">
                                        <nobr>
                    <asp:Label ID="lblBrandCategory" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblBrandCategory %>"></asp:Label>：</nobr>
                                    </td>
                                    <td class="searchTableControlTD">
                                        <Hishop:BrandCategoriesDropDownList ID="dropBrandCategories" runat="server" />
                                    </td>
                                    <td class="searchTableLeftTD">
                                        <nobr>
                    <asp:Label ID="lblPageSize" runat="server" Text="<%$ Resources:ProductSearch, IDS_FormField_lblPageSize %>"></asp:Label>：</nobr>
                                    </td>
                                    <td class="searchTableControlTD">
                                        <Hishop:PageSizeDropDownList ID="dropPageSize" runat="server" />
                                    </td>
                                    <td class="searchTableControlTD">
                                        <asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:ProductSearch, IDS_Button_Search %>"
                                            CssClass="inp_L1" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </SkinTemplate>
                </Hishop:ProductSearch>
                <!-- 选项卡-->
                <div>
                    <ul class="anchors clearfix">
                        <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_ProductConsultationsManage")%>'>
                            <img src="../images/00212_2.png" alt="" onclick="errorEventTable(this)" />
                            <asp:Label runat="server" ID="lblAgentPriceTemplets" Text="<%$ Resources:ProductConsultationsManage,IDS_Title_Reply %>"></asp:Label></a>
                        </li>
                        <li class="tabs-selected"><a href="#">
                            <img src="../images/00212.png" alt="" onclick="errorEventTable(this)" />
                            <asp:Label runat="server" ID="lblPriceTemplets" Text="<%$ Resources:ProductConsultationsManage, IDS_Title_Replyed %>"></asp:Label></a>
                        </li>
                    </ul>
                </div>
                <div class="grdGroupFormList" style="word-break: break-all; width: 100%;">
                    <div class="grdGroupList" style="width: 100%;">
                        <asp:DataList ID="dlstPtConsultation" runat="server" DataKeyField="ConsultationId"
                            Style="width: 100%;">
                            <HeaderTemplate>
                                <table class="GridViewStyle" id="GridViewTable" cellspacing="0" border="0" style="width: 100%;">
                                    <tr class="GridViewHeaderStyle">
                                        <th scope="col" style="width: 180px;">
                                            <span>
                                                <asp:Literal ID="lblChoise" Text="<%$ Resources:ProductConsultationsManage, IDS_GrdHead_Product %>"
                                                    runat="server"></asp:Literal></span>
                                        </th>
                                        <th scope="col" style="width: 120px;">
                                            <span>
                                                <asp:Literal ID="lblOpen" Text="<%$ Resources:ProductConsultationsManage, IDS_GrdHead_User %>"
                                                    runat="server"></asp:Literal></span>
                                        </th>
                                        <th>
                                            <span>
                                                <asp:Literal ID="litVoteName" runat="server" Text="<%$ Resources:ProductConsultationsManage, IDS_GrdHead_Text %>"></asp:Literal></span>
                                        </th>
                                        <th style="width: 120px;">
                                            <span>
                                                <asp:Literal ID="litMaxCheck" runat="server" Text="<%$ Resources:ProductConsultationsManage, IDS_GrdHead_Time %>"></asp:Literal></span>
                                        </th>
                                        <th style="width: 28px;">
                                            <span>
                                                <asp:Literal ID="litOpetion" runat="server" Text="<%$ Resources:Resources, IDS_Header_Options %>"></asp:Literal></span>
                                        </th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td style="text-align: left;">
                                        <Hishop:Common_ProductThumbnail runat="server" AutoResize="true" DataField="ThumbnailsUrl" Width="50px"/>
                                        <asp:Label ID="lblThumbUrl" runat="server" Text='<%# Eval("ThumbnailsUrl") %>' Style="display: none;"></asp:Label>
                                        <asp:Label ID="lblInFocusUrl" runat="server" Text='<%# Eval("InFocusImageUrl") %>'
                                            Style="display: none;"></asp:Label>
                                        <div style="color: Blue">
                                            <%# Eval("SKU")%></div>
                                        <Hishop:ProductNavigationDetails ProductName='<%# Eval("ProductName") %>' ProductId='<%# Eval("ProductId") %>'
                                            runat="server" />
                                    </td>
                                    <td style="text-align: left;">
                                        <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblConsultationText" runat="server" Text='<%# Eval("ConsultationText") %>'></asp:Label>
                                    </td>
                                    <td style="text-align: ">
                                        <Hishop:FormatedTimeLabel ID="ConsultationDateTime" Time='<%# Eval("ConsultationDate") %>'
                                            runat="server"></Hishop:FormatedTimeLabel>
                                        <td style="text-align: right;">
                                            <Hishop:DeleteImageLinkButton ID="ilikbReplyDelete" runat="server" CommandName="Delete"
                                                CommandArgument='<%# Eval("ConsultationId")%>' CssClass="SmallCommonTextButton"
                                                OnClientClick="" Text="<%$ Resources:Resources, IDS_Button_Delete %>" />
                                        </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="padding-top: 10px; border-bottom: solid 1px #DDDDDD;">
                                        <table cellspacing="0" border="0" style="width: 100%;">
                                            <tr>
                                                <td>
                                                    <strong>
                                                        <asp:Label ID="lbldsHeadReplyText" runat="server" Text='<%$ Resources:ProductConsultationsManage, IDS_FormField_ReplyText %>'></asp:Label>：</strong><asp:Label
                                                            ID="lblReplyText" runat="server" Text='<%# Eval("ReplyText") %>'></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:DataList>
                    </div>
                    <!--分页开始-->
                    <div class="grdGroupTabhead">
                        <UI:Pager runat="server" ListToPaging="dlstPtConsultation" ID="pager" />
                    </div>
                </div>

                <script>
                    var isIE = !!document.all;
                    function errorEventTable(tableObject) {
                        tableObject.runat = "server";
                        if (isIE) {
                            var nextNodeObject = tableObject.parentNode.parentNode.nextSibling;
                        }
                        else {
                            var nextNodeObject = tableObject.parentNode.parentNode.nextSibling.nextSibling;
                        }
                        (nextNodeObject.style.display == "none") ? nextNodeObject.style.display = "" : nextNodeObject.style.display = "none";
                        (nextNodeObject.style.display == "none") ? tableObject.src = '<%= Globals.ApplicationPath + "/utility/pics/plus.gif" %>' : tableObject.src = '<%= Globals.ApplicationPath + "/utility/pics/minus.gif" %>';
                    }
                </script>

            </SkinTemplate>
        </Hishop:ProductConsultationsReplyedManage>
    </div>
    <br />
    <div class="botCopyInfo">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright runat="server" />
    </div>
    <br />
    <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
