<%//*
  //* 文件名称：Product_Ask_Manage.aspx
  //* 页面名称：商品咨询页面
  //* 创建标识：Add by 沈先强   2010-02-05
  //*/
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_Ask_Manage, V5Shop.Shop.Category" 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="js/calendar-system.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>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部分 -->
                <div style="padding: 10px 20px; border: 1px #eeeeee solid; background: #f7f7f7; margin: 0 0 5px 0;">
                    <table width="716">
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" meta:resourcekey="lblAdminNameResource" Text="商品ID:"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtProduct" runat="server" Width="104"></asp:TextBox></td>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator15" runat="server"
                                            ControlToValidate="txtProduct" Display="Dynamic" ErrorMessage="只能为数字,长度不能超过16位"
                                            ValidationExpression="^[\d]{0,16}$"></asp:RegularExpressionValidator>
                          <td><asp:Label ID="Label4" runat="server" meta:resourcekey="lblAdminNameResource" Text="咨询时间:"></asp:Label></td>
                            <td><asp:TextBox ID="txtReviewStart" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />                            
                              <img id="sltStart01" alt="打开日历" src="images/calendar1.gif" title="打开日历" /> - 
                              <asp:TextBox ID="txtReviewEnd" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />                              
                            <img id="sltEnd01" alt="打开日历" src="images/calendar1.gif" title="打开日历" /></td>
                        </tr>
                        <tr>
                          <td><asp:Label ID="Label1" runat="server" meta:resourcekey="lblAdminNameResource" Text="咨询人:"></asp:Label></td>
                            <td><asp:TextBox ID="txtUsername" runat="server" Width="104px"></asp:TextBox>                                &nbsp;</td>

                            <td>
                                <asp:Label ID="Label6" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否回复:"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="ddlIsRemark" runat="server">
                                    <asp:ListItem Value="0">未回复</asp:ListItem>
                                    <asp:ListItem Value="1">已回复</asp:ListItem>
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                </asp:DropDownList>
                                <span style="text-align: right;">
                              <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" />                                                              </span></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" />
                    全选 &nbsp;&nbsp;
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClientClick="return CheckEdit()" OnClick="btnEdit_Click" CausesValidation="False"><img src="images/icon/key_review.gif" alt="Read/Write Property"/> 回复</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckDel()" OnClick="btnDel_Click"><img src="images/icon/key_delete.gif" alt="Read/Write Property"/> 删除</asp:LinkButton>
                </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="Content" HeaderText="咨询内容" SortExpression="Content">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="咨询商品" SortExpression="ProductName">
                                <itemstyle width="15%" />
                                <itemtemplate>
                                <a href="../product.aspx?id=<%#Eval("ProductID") %>" target="_blank"><asp:Label runat="server" Text='<%#Eval("ProductName") %>' id="ProductName"></asp:Label></a>
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Date" HeaderText="咨询时间" SortExpression="Date">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Username" HeaderText="咨询人" SortExpression="Username">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否回复" SortExpression="IsRemark">
                                <itemtemplate>
                                    <asp:Label ID="lblIsRemark" runat="server" Text='<%# FormatIsRemarkState(DataBinder.Eval(Container, "DataItem(IsRemark)","{0}")) %>'> id="lblDelState"></asp:Label>
                                </itemtemplate>
                                <itemstyle width="6%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="RemarkDate" HeaderText="回复时间" SortExpression="Username">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                        </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>
    <script type="text/javascript">
        Calendar.setup({
            inputField     :    "txtReviewStart",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "sltStart01",
            align          :    "Br",
            singleClick    :    true
        });
        Calendar.setup({
            inputField     :    "txtReviewEnd",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "sltEnd01",
            align          :    "Br",
            singleClick    :    true
        });
    </script>
</body>
</html>
