<%
    //-----------------------------------------------------------
    // 文件名称: User_GBook_Manage.aspx
    // 页面名称: 留言管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-10
    //-----------------------------------------------------------
%>

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

<%@ 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" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<!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-Setup.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.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 style="text-align: right">
                                <asp:Label ID="Label5" runat="server" meta:resourcekey="lblAdminNameResource" Text="留言标题:"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtTitle" runat="server" Width="104px"></asp:TextBox></td>
                            <td style="text-align: right">
                                &nbsp;<asp:Label ID="lblAdminName" runat="server" meta:resourcekey="lblAdminNameResource" Text="留言类型:"></asp:Label></td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="ddlMenuID" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                </asp:DropDownList></td>
                            <td style="text-align: right">
                                <asp:Label ID="Label2" runat="server" meta:resourcekey="lblAdminNameResource" Text="留言人:"></asp:Label></td>
                            <td colspan="4">
                                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                &nbsp;<asp:Label ID="Label1" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否回复:"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="ddlIsRemark" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="1">已回复</asp:ListItem>
                                    <asp:ListItem Value="0">未回复</asp:ListItem>
                                </asp:DropDownList></td>
                            <td style="text-align: right">
                                <asp:Label ID="Label3" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否审核:"></asp:Label></td>
                            <td style="text-align: right">
                                <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 style="text-align: right">
                                &nbsp;<asp:Label ID="Label7" runat="server" meta:resourcekey="lblAdminNameResource" Text="留言时间:"></asp:Label></td>
                            <td colspan="3">
                                <asp:TextBox ID="txtStart" runat="server" Width="100px" onblur="return CheckDate(this, true, false);" /><img id="ImgDateStart" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                                -
                                <asp:TextBox ID="txtEnd" runat="server" Width="100px" onblur="return CheckDate(this, true, false);" /><img id="ImgDateEnd" alt="打开日历" src="images/calendar1.gif" title="打开日历" />&nbsp;</td>
                            <td>
                                &nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" /></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="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" CausesValidation="False"><img src="images/icon/key_review.gif" alt="详细/回复"/> 详细/回复</asp:LinkButton>
　
<asp:LinkButton ID="btnSetPass" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnSetPass_Click" OnClientClick="return CheckSelect()" CausesValidation="False"><img src="images/icon/key_pass.gif" alt="审核"/> 审核</asp:LinkButton>
　
<asp:LinkButton ID="btnSetUnPass" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnSetUnPass_Click" OnClientClick="return CheckSelect()" CausesValidation="False"><img src="images/icon/key_unpass.gif" alt="取消审核"/> 取消审核</asp:LinkButton>
　
<asp:LinkButton ID="btnDelStatus" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" alt="删除"/> 删除</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" EmptyDataText="没有任何可用信息！">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData" ItemStyle-Width="5%">
                                <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"/></asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" ItemStyle-Width="5%" />
                            <asp:BoundField DataField="UserName" HeaderText="用户名" SortExpression="UserName" ItemStyle-Width="15%" />
                            <asp:BoundField DataField="Title" HeaderText="留言标题" SortExpression="Title" ItemStyle-Width="25%" />
                            <asp:BoundField DataField="MenuName" HeaderText="类型" SortExpression="MenuName" ItemStyle-Width="10%"/>
                            <asp:BoundField DataField="Date" HeaderText="留言时间" SortExpression="Date" ItemStyle-Width="20%"/>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否回复" SortExpression="IsRemark" ItemStyle-Width="10%">
                                <itemtemplate>
                                    <asp:Label ID="lblIsRemark" runat="server" Text='<%# FormatState("IsRemark", DataBinder.Eval(Container, "DataItem(IsRemark)","{0}")) %>' />
                            </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否审核" SortExpression="IsPass" ItemStyle-Width="10%">
                                <itemtemplate>
                                    <asp:Label ID="lblIsPass" runat="server" Text='<%# FormatState("IsPass", DataBinder.Eval(Container, "DataItem(IsPass)","{0}")) %>' />
                            </itemtemplate>
                            </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>
            <uc2:PageBottom ID="PageBottom" runat="server" />
        </div>
        <script language="javascript" type="text/javascript">
        Calendar.setup({
            inputField     :    "txtStart",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "ImgDateStart",
            align          :    "Br",
            singleClick    :    true
        });
        Calendar.setup({
            inputField     :    "txtEnd",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "ImgDateEnd",
            align          :    "Br",
            singleClick    :    true
        });
        </script>
    </form>
</body>
</html>
