<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dbautoset.aspx.cs" Inherits="FangPage.Admin.dbautoset" %>


<%@ Register Assembly="FangPage.Control" Namespace="FangPage.Control" TagPrefix="cc1" %>
<!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">
    <title>自动备份数据库设置</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="styles/style.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        body
        {
            background-image: url(images/main_bg.gif);
            background-repeat: repeat-x;
            background-color: #CEE7FC;
        }
    </style>
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR" />

    <script language="javascript" type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript">
        function changetimespan(thevalue)
        {
            if(thevalue == "type1")
            {
                document.getElementById("hour").disabled = false;
                document.getElementById("minute").disabled = false;
                document.getElementById("timeserval").disabled = true;
            }
            else
            {
                document.getElementById("hour").disabled = true;
                document.getElementById("minute").disabled = true;
                document.getElementById("timeserval").disabled = false;
            }
        }
        function validate(theform)
        {
            return true;
        }
    </script>
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <form id="Form1" runat="server">
    <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr valign="middle">
                <td class="Tdimg" style="padding-left: 10px" height="28" colspan="2">
                    <img height="18" src="images/bbs_find.gif" width="18" align="absMiddle" border="0">
                    <strong>自动备份数据库设置</strong>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 150px;" height="22" align="right">
                    备份文件保留个数：
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:TextBox ID="backupfiles" runat="server" CanBeNull="必填" Width="250"></cc1:TextBox>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 150px;" height="22" align="right">
                    执行方式：
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <asp:RadioButton ID="type1" GroupName="type" runat="server" Checked="true" />&nbsp;定时执行&nbsp;&nbsp;
                    <cc1:DropDownList ID="hour" runat="server" />
                    &nbsp;时&nbsp;<cc1:DropDownList ID="minute" runat="server" />
                    &nbsp;分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="type2" GroupName="type" runat="server" />&nbsp;周期执行&nbsp;&nbsp;
                    <cc1:TextBox ID="timeserval" runat="server" Width="40"></cc1:TextBox>&nbsp;分钟
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 150px;" height="22" align="right">
                    自动备份：
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:RadioButtonList ID="eventenable" runat="server">
                        <asp:ListItem Value="1">启动</asp:ListItem>
                        <asp:ListItem Value="0">关闭</asp:ListItem>
                    </cc1:RadioButtonList>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 150px;" height="35" align="right">
                    &nbsp;
                </td>
                <td style="padding-left: 10px;">
                    <cc1:Button ID="Button1" runat="server" Text="提 交" OnClick="Button1_Click" />&nbsp;&nbsp;
                    <button class="ManagerButton" type="button" onclick="javascript:window.location.href='dbbackuplist.aspx';">
                        <img src="images/arrow_undo.gif" />返 回</button>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>