<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReminderList.aspx.cs" Inherits="RM.Web.RMBase.SysReminder.ReminderList" %>
<%@ Register Src="../../UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<%@ Register Src="../../UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<!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><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_ts")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ReminderList_txshez")%> &nbsp;&nbsp;<span style="color: Red;"> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ReminderList_zfzyjsryqjs")%></span>

        </div>
    </div>
     <div class="btnbarcontetn">
        <div style="text-align: right;">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div class="div-body">
        <table id="table1" class="grid">
            <thead>
                <tr>
                    <td style="width: 20px; text-align: left;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title="全选">
                            &nbsp;</label>
                    </td>
                    <td style="width: 50px; text-align: center;">
                         <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Upgrade_Info6")%>
                    </td>
                    <td style="text-align: center;">
                          <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Script_Form_title")%>
                    </td>
                    <td style="text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Xiaoxi")%>  
                    </td>
                    <td style="text-align: center;">
                         <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Zhuce_sate")%>    
                    </td>
                    <td style="text-align: center;">
                         <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Description")%> 
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server" OnItemDataBound="rp_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 20px; text-align: left;">
                                <input type="checkbox" value="<%#Eval("ReminderID")%>" name="checkbox" />
                            </td>
                             <td style="width: 50px; text-align: center;">
                        <%#Eval("ReminderID")%>
                         </td>
                            <td style=" text-align: center;">
                                <%#Eval("Title")%>
                            </td>
                            <td style="text-align: center;">
                                <%#Eval("Message")%>
                            </td>
                            <td style="text-align: center;">
                                <asp:Label ID="lbl_Sys_LoginLog_Status" runat="server" Text='<%#Eval("LockState")%>'></asp:Label> 
                            </td>
                            <td style="text-align: center;">
                                <%#Eval("Remark")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='6' style='color:red;text-align:center'> "+RM.Common.DotNetConfig.LanguageHelper.GetKey("Null")+" </td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>

    <script type="text/javascript">
        $(function () {
            divresize(90);
            FixedTableHeader("#table1", $(window).height() - 121);
        })
        function add() {
            var url = "/RMBase/SysReminder/Reminder_Form.aspx";
            // top.openDialog(url, 'Reminder_Form', '系统提醒 - 添加', 650, 390, 50, 50);
            window.location = url;
        }
        function edit() {
            var arrt = new Array();
            arrt = CheckboxValue().split('|');
            var key = arrt[0];
            if (IsEditdata(CheckboxValue())) {
                var url = "/RMBase/SysReminder/Reminder_Form.aspx?key=" + key;
                //top.openDialog(url, 'Reminder_Form', '系统提醒 - 编辑', 650, 390, 50, 50);
                window.location = url;
            }
        }
        //删除
        function Delete() {
            var arrt = new Array();
            arrt = CheckboxValue().split('|');
            var key = arrt[0];
            if (IsEditdata(CheckboxValue())) {
                var delparm = 'action=Virtualdelete&module=<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("HomeIndex_ts")%>&tableName=Base_Reminder&pkName=ReminderID&pkVal=' + key;
                delConfig('/Ajax/Common_Ajax.ashx', delparm)
            }
        } 
    </script>
</body>
</html>
