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

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<!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>V5Shop</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<link href="css/css_list.css" rel="stylesheet" type="text/css">
<link href="css/control.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/Control_Calendar.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    
        <uc3:ManageHeader ID="ManageHeader1" runat="server" />

        <div id="searcharea"><b style="color:#4B6888; display:none">搜索公告：</b>
            <asp:Label ID="lblTitle" runat="server" Text="公告标题："></asp:Label>
            <asp:TextBox ID="txtTitle" Width="100px" runat="server"></asp:TextBox>

            <asp:Label ID="lblAuthor" runat="server" Text="发布人："></asp:Label>
            <asp:TextBox ID="txtAuthor" Width="100px" runat="server"></asp:TextBox>
            
            <asp:Label ID="lblDate" runat="server" Text="发布时间："></asp:Label>
            <asp:TextBox ID="txtStartDate" Width="100px" runat="server"></asp:TextBox>
            <img id="sltStart" src="images/calendar1.gif" title="打开日历" alt="打开日历" align="absmiddle" />    
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtStartDate" runat="server" ErrorMessage="日期格式不正确" ValidationExpression="^\d{4}-\d{2}-\d{2}$" Display="Dynamic"></asp:RegularExpressionValidator>-
            <asp:TextBox ID="txtEndDate" Width="100px" runat="server"></asp:TextBox>
            <img id="sltEnd" src="images/calendar1.gif" title="打开日历" alt="打开日历" align="absmiddle" />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtEndDate" runat="server" ErrorMessage="日期格式不正确" ValidationExpression="^\d{4}-\d{2}-\d{2}$" Display="Dynamic"></asp:RegularExpressionValidator>
            <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" class="button"/>
        </div>
        
        <div id="content">
            <div id="tool">
              <input class="checkbox" type="checkbox" id="CheckAllBox" onclick="CheckAll()" /> <label for="CheckAllBox">全选</label>
        　    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
        　    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
        　    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
              <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
              <ContentTemplate>
        　    <asp:LinkButton ID="btnUp" runat="server" ForeColor="#4B6888" OnClick="btnUp_Click" OnClientClick="return CheckUp()"><img src="images/icon/key_top.gif" /> 向上</asp:LinkButton>
        　    <asp:LinkButton ID="btnDown" runat="server" ForeColor="#4B6888" OnClick="btnDown_Click" OnClientClick="return CheckDown()"><img src="images/icon/key_down.gif" /> 向下</asp:LinkButton>
        　    </ContentTemplate>
        　    </asp:UpdatePanel>
            </div>
            <div class="listborder">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
              <ContentTemplate>
                <V5Shop:V5ShopGridView ID="GridViewShow" runat="server"
                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" 
                HeaderStyle-Height="28px" PageSize="10" HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="Notice">
                	<rowstyle height="28px"></rowstyle>
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="5%">
                        	
                            <ItemTemplate>
                                <input class="checkbox" runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out">
                            </ItemTemplate>
                        <itemstyle horizontalalign="Center"  /></asp:TemplateField>
                        <asp:BoundField DataField="id" SortExpression="ID" HeaderText="ID" ItemStyle-Width="10%">
                        <headerstyle horizontalalign="Center" verticalalign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Title" SortExpression="Title" HeaderText="公告标题"  ItemStyle-Width="40%"/>
                        <asp:BoundField DataField="Author" SortExpression="Author" HeaderText="发布人"  ItemStyle-Width="20%"/>
                        <asp:BoundField DataField="OrderID" SortExpression="OrderID" HeaderText="排序号"  ItemStyle-Width="8%"/>
                        <asp:BoundField DataField="Date" SortExpression="Date" HeaderText="发布时间"  ItemStyle-Width="17%"/>
                    </Columns>
                </V5Shop:V5ShopGridView>
                </ContentTemplate>
        　  </asp:UpdatePanel>
            </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="PageBottom1" runat="server" />
    </div>
    </form>
    <script type="text/javascript">
        Calendar.setup({
	        inputField     :    "txtStartDate",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltStart",
	        align          :    "Br",
	        singleClick    :    true
        });
        Calendar.setup({
	        inputField     :    "txtEndDate",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltEnd",
	        align          :    "Br",
	        singleClick    :    true
        });
    </script>
</body>
</html>
