<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sysLog.aspx.cs" Inherits="Maticsoft.Web.Admin.sysLog.sysLog"
    MasterPageFile="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1">
        <tr>
            <td>
                <fieldset>
                    <legend class="tt1">日志管理</legend>
                    <div id="List" runat="server">
                    </div>
                    <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1">
                        <tr>
                            <td height="50" valign="middle" align="center">
                                <div id="CopyrightInfo" runat="server" align="right">
                                    <asp:Button ID="button" runat="server" Text="删除7天前日志" CssClass="button22" OnClientClick="return window.confirm('确定要删除7天前所有日志内容吗?')"
                                        OnClick="button_Click" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
    </table>

    <script language="javascript" type="text/javascript">
function Del(id)
{
    if(confirm('你确认删除此日志记录吗?)'))
    {
        self.location="?Action=Del&ID="+id;
    }
}

function Edit(id)
{
    self.location="Modify.aspx?id="+id;
}
function delAll() {
   if(confirm('你确认删除所选日志记录吗?'))
    {
    var ids="";
    for (var i = 0; i < document.getElementsByName("selectFlag").length; i++) {
     if(document.getElementsByName("selectFlag")[i].checked){
     ids+=document.getElementsByName("selectFlag")[i].value+",";
     }
     }
     ids=ids.substring(0,(ids.length-1))
     self.location="?Action=Dels&ID="+ids;
   
        
    }
  
 }

    </script>

</asp:Content>
