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

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="ShopNum1" %>
<!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 id="Head1" runat="server">
    <title>意见反馈管理</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

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

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <div class="navigator">
        【 意见反馈管理 】</div>
    <table cellpadding="0" cellspacing="0" width="100%" border="0">
        <tr>
            <td>
                <div class="query">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="15%" align="right">
                                意见反馈标题：
                            </td>
                            <td>
                                <asp:TextBox ID="textBoxTitle" runat="server" CssClass="input1"></asp:TextBox>
                                <asp:Button ID="ButtonSearch" runat="server" OnClick="ButtonSearch_Click" Text="查询"
                                    CssClass="bt2" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="vote">
                </div>
            </td>
        </tr>
    </table>
    <cc1:Num1GridView ID="Num1GridiewShow" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" Width="100%" AscendingImageUrl="~/images/SortAsc.gif"
        DescendingImageUrl="~/images/SortDesc.gif" Font-Size="Small" Font-Bold="False"
        AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF"
        BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？"
        Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
        Style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">
        <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" type="checkbox" value='<%# Eval("Guid") %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="Guid" HeaderText="GUID" SortExpression="Guid" Visible="False" />
            <asp:TemplateField HeaderText="姓名">
                <ItemTemplate>
                    <a href='<%#"Advice_Reply.aspx?Guid="+ Eval("Guid") %>'>
                        <%# Eval("Name") %></a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <%--<asp:BoundField DataField="Name" HeaderText="姓名" SortExpression="Name" />--%>
            <asp:BoundField DataField="Contactby" HeaderText="联系方式" SortExpression="Contactby">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="IP" DataField="IP" SortExpression="IP">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="SendTime" HeaderText="提交时间" SortExpression="SendTime">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="审核状态" SortExpression="IsAudit">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# ChangeIsAudit(DataBinder.Eval(Container, "DataItem(IsAudit)","{0}")) %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="回复状态" SortExpression="IsAudit">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# ChangeIsReply(DataBinder.Eval(Container, "DataItem(IsReply)","{0}")) %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>
    </cc1:Num1GridView>
    <div class="vote">
        <asp:Button ID="ButtonIsAudit1" runat="server" OnClientClick="return AuditButton()"
            Text="审核" CssClass="bt2" OnClick="ButtonIsAudit1_Click" />
        <asp:Button ID="ButtonIsAudit2" runat="server" OnClientClick="return AuditButton()"
            Text="取消审核" CssClass="bt3" OnClick="ButtonIsAudit2_Click" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
            CssClass="bt2" OnClick="ButtonDelete_Click" />
        <asp:Button ID="ButtonReply" runat="server" CausesValidation="False" OnClientClick="return EditButton()"
            class="bt3" Text="查看|回复" OnClick="ButtonReply_Click" />
        <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_Advince_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxTitle" Name="name" PropertyName="Text" Type="String" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
