<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ExceptionLog.aspx.cs" Inherits="MTCUN.Admin.ExceptionLog"
    Title="异常日志-系统" %>

<%@ Import Namespace="MTCUN" %>
<!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">
            <label class="lab_button">
                <asp:Button ID="btnGo" runat="server" PostBackUrl="SysLog.aspx" Text="返回操作事件" />
            </label>
        </div>
        <div class="both">
        </div>
        <div class="divpanel">
            <table class="table" cellspacing="0">
                <tr>
                    <th colspan="2" align="center">系统异常日志
                    </th>
                </tr>
                <tr>
                    <td style="width: 162px">日志列表：
                    </td>
                    <td>
                        <asp:GridView ID="GridView1" CssClass="smallgridview" runat="server" AutoGenerateColumns="False"
                            Width="50%" OnRowDeleting="GridView1_RowDeleting" DataKeyNames="FileName">
                            <Columns>
                                <asp:BoundField DataField="DateAndTime" HeaderText="备份日期" Visible="False" />
                                <asp:BoundField DataField="FileName" HeaderText="文件名" />
                                <asp:TemplateField HeaderText="查看">
                                    <ItemTemplate>
                                        <div class="lab_button_sub" id="divDown" runat="server">
                                            <asp:HyperLink ID="hlkDown" runat="server" Text="查看" NavigateUrl='<%# string.Format("ShowTxt.aspx?fileName={0}",Eval("FileName")) %>'></asp:HyperLink>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <div class="lab_button_sub" id="divDelete" runat="server">
                                            <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
