<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileWatcherConfig.aspx.cs"
    Inherits="TopWinCMS.WebUI.Admin.SecurityCenter.FileWatcherConfig" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!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>FileWatcher配置</title>
    <link href="../Style.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Pragma" content="no-cache" />

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
        <tr>
            <td>
                <img src="../../Images/arrow.gif" />
                您现在的位置：&nbsp;
                <asp:Label ID="LB_Path" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%" class="TabelGrid">
                <tr>
                    <td class="RowTitle">
                        启用FileWatcher：
                    </td>
                    <td>
                        <asp:CheckBox ID="CB_StartupFileWatch" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        最大扫描文件体积：
                    </td>
                    <td style="width: 200px">
                        <cc1:NumericTextBox ID="NTB_MaxSize" runat="server" Width="84px"></cc1:NumericTextBox>&nbsp;
                        字节<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NTB_MaxSize"
                            ErrorMessage="必须输入数字"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        最小扫描文件体积：
                    </td>
                    <td>
                        <cc1:NumericTextBox ID="NTB_MinSize" runat="server" Width="82px"></cc1:NumericTextBox>&nbsp;
                        字节<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="NTB_MinSize"
                            ErrorMessage="必须输入数字"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        Code Scaner：</td>
                    <td>
                        <asp:RadioButtonList ID="RBL_CS" runat="server" RepeatDirection="Horizontal" 
                            RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="0">仅仅作警告(推荐)</asp:ListItem>
                            <asp:ListItem Value="1">发现就删除</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        PE Scaner：</td>
                    <td>
                        <asp:RadioButtonList ID="RBL_PE" runat="server" RepeatDirection="Horizontal" 
                            RepeatLayout="Flow">
                            <asp:ListItem Value="0">仅仅作警告</asp:ListItem>
                            <asp:ListItem Selected="True" Value="1">发现就删除(推荐)</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        监控目录：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_WatchDir" runat="server"></asp:TextBox>
                        留空为监控根目录<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TB_WatchDir"
                            ErrorMessage="必须输入监控目录"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        排除以下格式文件：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_IgnorePostfix" runat="server" Height="83px" TextMode="MultiLine"
                            Width="196px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <br />
            <div align="center">
                <asp:Button ID="BT_OK" runat="server" OnClick="BT_OK_Click" Text="保存" CssClass="btn" /></div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
