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

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<!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>站点FTP服务器配置</title>

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

    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet" />
    <link href="styles/modelpopup.css" type="text/css" rel="stylesheet" />

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

</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <div class="ManagerForm">
        <form id="Form1" method="post" runat="server" name="Form1">
        <fieldset>
            <legend style="background: url(images/icons/FileServer.gif) no-repeat 3px;padding-left:40px;">站点FTP服务器配置</legend>
            <table class="table1" cellspacing="0" cellpadding="8" width="100%" align="center">
                <tr>
                    <td class="td1" align="right">
                        站点FTP服务：
                    </td>
                    <td class="td1" colspan="3">
                        <cc1:RadioButtonList ID="Allowupload" runat="server" RepeatColumns="2" HintTitle="提示"
                            HintShowType="down" HintInfo="开启站点FTP文件上传下载服务。" HintTopFirefoxOffset="60">
                            <asp:ListItem Value="1">开启</asp:ListItem>
                            <asp:ListItem Value="0" Selected="True">关闭</asp:ListItem>
                        </cc1:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="td1" align="right">
                        FTP服务器：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="Serveraddress" runat="server" HintInfo="可以是 FTP 服务器的 IP 地址或域名" RequiredFieldType="暂无校验"
                            CanBeNull="必填" Width="150"></cc1:TextBox>
                    </td>
                    <td class="td1" align="right">
                        FTP端口：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="Serverport" runat="server" HintInfo="默认为 21" MinimumValue="1" CanBeNull="必填"
                            Width="150" MaxLength="5" Text="21"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td1" align="right">
                        FTP帐号：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="Username" runat="server" HintInfo="登录FTP服务器帐号" CanBeNull="必填" Width="150"></cc1:TextBox>
                    </td>
                    <td class="td1" align="right">
                        FTP密码：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="Password" TextMode="password" runat="server" RequiredFieldType="暂无校验"
                            CanBeNull="必填" Width="150"></cc1:TextBox>
                        <input type="hidden" id="hiddpassword" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="td1" align="right">
                        超时时间(秒)：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="Timeout" runat="server" HintInfo="单位:秒,10 为服务器默认.0为不受超时时间限制." CanBeNull="必填"
                            MinimumValue="0" Width="150" Text="10"></cc1:TextBox>
                    </td>
                    <td class="td1" align="right">
                        保存路径：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="Uploadpath" runat="server" HintInfo="相对于FTP根目录的存储访问的FTP路径。" RequiredFieldType="暂无校验"
                            Width="150" Text="/"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" colspan="4">
                    </td>
                </tr>
            </table>
        </fieldset>
        <cc1:Hint ID="Hint1" runat="server" HintImageUrl="images"></cc1:Hint>
        <div align="center">
            <cc1:Button ID="SaveInfo" runat="server" Text="保 存" OnClick="SaveInfo_Click"></cc1:Button>
        </div>
        </form>
    </div>

    <script type="text/javascript">document.getElementById("Password").value = document.getElementById("hiddpassword").value;</script>

</body>
</html>
