<%@ page language="C#" autoeventwireup="true" inherits="Admin_MessageBoard_List, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ShopNum1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>

<!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>Untitled Page</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">
        <%--<asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>--%>
<%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
     <div class="navigator">【 会员留言 】</div>
     <div class="query">
    <table style="width:100%">
            <tr>
                <td align="right">
                    <asp:Label ID="LabelSMemLoginID" runat="server" Text="留言人："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxSMemLoginID" runat="server" CssClass="input1"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="LabelSMeaageType" runat="server" Text="类型："></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropdownListSMeaageType" runat="server" 
                        AutoPostBack="True" CssClass="select1">
                    </asp:DropDownList>
                </td>
                <td align="right">
                    <asp:Label ID="LabelSIsAudit" runat="server" Text="是否审核："></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownListSIsAudit" runat="server" CssClass="select1">
                    </asp:DropDownList>
                </td>
                <td style="width: 42px; height: 25px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelSTitle" runat="server" Text="留言标题："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxSTitle" runat="server" CssClass="input1"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="LabelSIsReply" runat="server" Text="是否回复："></asp:Label>
                </td>
                <td>
                        <asp:DropDownList ID="DropDownListSIsReply" runat="server" CssClass="select1">
                        </asp:DropDownList>
                    </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td style="width: 42px; height: 25px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelSSendTime" runat="server" Text="留言时间："></asp:Label>
                </td>
                <td colspan="5">
                    <asp:TextBox ID="TextBoxSSendTime1" runat="server" CssClass="input1"></asp:TextBox>
                     <asp:RegularExpressionValidator ID="RegularExpressionValidatorSDate1" 
                            runat="server" ControlToValidate="TextBoxSSendTime1" 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>
                          <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
                             EnableScriptGlobalization="True" EnableScriptLocalization="True">
                          </ShopNum1:ToolkitScriptManager>
                          <img id="imgCalendarSSendTime1" alt="" src="../images/Calendar.png" 
                                                         style="width: 16px; height: 18px;" />
                          <ShopNum1:CalendarExtender 
                                    ID="CalendarExtender1" runat="server" TargetControlID="TextBoxSSendTime1" 
                                    PopupButtonID="imgCalendarSSendTime1" CssClass="ajax__calendar">
                          </ShopNum1:CalendarExtender>
                    -<asp:TextBox ID="TextBoxSSendTime2" runat="server" CssClass="input1"></asp:TextBox>
                    
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSDate2" 
                            runat="server" ControlToValidate="TextBoxSSendTime2" 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>
                            <img id="imgCalendarSSendTime2" alt="" src="../images/Calendar.png" 
                                                style="width: 16px; height: 18px;" /><ShopNum1:CalendarExtender 
                                    ID="CalendarExtender2" runat="server" TargetControlID="TextBoxSSendTime2" 
                                        PopupButtonID="imgCalendarSSendTime2" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender></td>
                <td style="width: 42px; height: 25px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="LabelSReplyTime" runat="server" Text="回复时间："></asp:Label>
                </td>
                <td colspan="5">
                    <asp:TextBox ID="TextBoxSReplyTime1" runat="server" CssClass="input1"></asp:TextBox>
                     <asp:RegularExpressionValidator ID="RegularExpressionValidatorSReplyTime1" 
                            runat="server" ControlToValidate="TextBoxSReplyTime1" 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>&nbsp;<img id="imgCalendarSReplyTime1" alt="" src="../images/Calendar.png" 
                                                         style="width: 16px; height: 18px;" /><ShopNum1:CalendarExtender 
                                    ID="CalendarExtender3" runat="server" TargetControlID="TextBoxSReplyTime1" 
                                    PopupButtonID="imgCalendarSReplyTime1" CssClass="ajax__calendar">
                          </ShopNum1:CalendarExtender>&nbsp;-<asp:TextBox ID="TextBoxSReplyTime2" runat="server" CssClass="input1"></asp:TextBox>
                     <asp:RegularExpressionValidator ID="RegularExpressionValidatorSReplyTime2" 
                            runat="server" ControlToValidate="TextBoxSReplyTime2" 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>
                             <img id="imgCalendarSReplyTime2" alt="" src="../images/Calendar.png" 
                                                         style="width: 16px; height: 18px;" /><ShopNum1:CalendarExtender 
                                    ID="CalendarExtender4" runat="server" TargetControlID="TextBoxSReplyTime2" 
                                    PopupButtonID="imgCalendarSReplyTime2" CssClass="ajax__calendar">
                          </ShopNum1:CalendarExtender></td>
                <td style="width: 42px; height: 25px">
                    <asp:Button ID="ButtonSearch" runat="server" 
                        onclick="ButtonSearch_Click" Text="查询"  CssClass="bt2"/>
                </td>
            </tr>
            </table></div>
<table  style="width:100%">
                    <tr>
                        <td align="left">
            <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" 
                AllowPaging="True" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="100%" 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="" 
                                Font-Size="Small" 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"   onclick="GetItmeValue(this)" type="checkbox" />--%>
                        <input id="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
               </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                    <asp:BoundField DataField="Guid" HeaderText="Guid" Visible="False" />
                    <asp:BoundField DataField="MemLoginID" HeaderText="留言人" 
                        SortExpression="MemLoginID" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="MeaageType" HeaderText="留言类型" 
                        SortExpression="MeaageType" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Title" HeaderText="留言标题" 
                        SortExpression="Title"></asp:BoundField>
                    <asp:BoundField DataField="SendTime" HeaderText="留言时间" 
                        SortExpression="SendTime">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="回复人" DataField="ReplyUser" 
                        SortExpression="ReplyUser">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="回复时间" DataField="ReplyTime" 
                        SortExpression="ReplyTime">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="是否回复" SortExpression="IsReply">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text= '<%# ChangeIsReply(DataBinder.Eval(Container, "DataItem(IsReply)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="是否审核" SortExpression="IsAudit">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# ChangeIsAudit(DataBinder.Eval(Container, "DataItem(IsAudit)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
            </cc1:Num1GridView>
                        </td>
                    </tr>
                       <tr>
                        <td align="left">
                        <div class="vote">
                           <asp:Button ID="ButtonDelete" runat="server" onclick="ButtonDelete_Click" 
                                onclientclick="return DeleteButton()" Text="删除" CausesValidation="False"  CssClass="bt2"/>                       
                            <asp:Button ID="ButtonIsAudit1" runat="server" onclick="ButtonIsAudit1_Click" 
                                onclientclick="return EditButton()" Text="审核" CausesValidation="False" 
                                CssClass="bt2"/>                       
                            <asp:Button ID="ButtonIsAudit0" runat="server" onclick="ButtonIsAudit0_Click" 
                                onclientclick="return EditButton()" Text="取消审核" 
                                CausesValidation="False" CssClass="bt3"/>                       
                            <asp:Button ID="ButtonReply" runat="server" onclick="ButtonReply_Click" 
                                onclientclick="return EditButton()" Text="查看|回复" 
                                CausesValidation="False" CssClass="bt3" />
                            <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" /></div>
                            
                            </td>                    
                    </tr>
</table>
        <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%><br />
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" TypeName="ShopNum1.BusinessLogic.ShopNum1_MessageBoard_Action" 
        >
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxSMemLoginID" Name="memLoginID" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSTitle" Name="title" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSSendTime1" Name="sendTime1" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSSendTime2" Name="sendTime2" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSReplyTime1" Name="replyTime1" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSReplyTime2" 
                Name="replyTime2" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="DropdownListSMeaageType" 
                Name="meaageType" PropertyName="SelectedValue" Type="String" />
            <asp:ControlParameter ControlID="DropDownListSIsReply" Name="isReply" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="DropDownListSIsAudit" Name="isAudit" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:Parameter Name="IsDeleted" Type="Int32" DefaultValue="0" />
        </SelectParameters>
       
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>