<%@ Page Language="c#" CodeBehind="Reminder.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Admin.Reminder"
    Title="系统设置-系统提醒设置" %>

<%@ Import Namespace="SWTraining" %>
<!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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="tool_Search">
        &nbsp;<label class="lab_buttom">
<asp:Button ID="btnAdd" runat="server" Text="新建" OnClick="btnAdd_Click"></asp:Button>
</label>
        &nbsp;</div>
    <div class="both">
    </div>
    <div class="divpanel">
        <asp:GridView runat="server" DataKeyNames="ReminderID" CssClass="gridview" ID="GridView1"
            AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand" OnRowCreated="GridView1_RowCreated"
            OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:BoundField DataField="ReminderID" HeaderText="ID" ReadOnly="true" />
                <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlkTitle" Target="_blank" runat="server" NavigateUrl='<%# string.Format("../User/Reminder.aspx?ReminderID={0}",Eval("ReminderID"))%>'
                            Text='<%# Eval("Title")%>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Message" HeaderText="消息" />
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                        <%# Rs.Items.GetLockState((int)Eval("LockState"))%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="排序">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnUp" runat="server" CommandName="Up" Text="↑"></asp:LinkButton>
                        <asp:LinkButton ID="btnDo" runat="server" CommandName="Do" Text="↓"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="hlkEdit" Text="编辑" NavigateUrl='<%# string.Format("PostReminder.aspx?ReminderID={0}&GetUrl={1}",Eval("ReminderID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    </form>
</body>
</html>
