<%@ Page Title="邮箱配置" Theme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="EmailConfigEdit.aspx.cs" Inherits="Admin.Contents.EmailConfigEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="form1" runat="server">
        <div class="formtextfield">
            <div class="title">
                <h4><span>邮箱配置</span></h4>
            </div>
            <div class="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="fieldname">SMTP服务器:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="Smtp" runat="server" Width="260"></asp:TextBox>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">登录账号:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="Account" runat="server" Width="260"></asp:TextBox>
                        </td>
                        <td class="fielddescription">
                            
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldname">登录密码:
                        </td>
                        <td class="fieldvalue">
                            <asp:HiddenField ID="Password" Value="" runat="server" />
                            <asp:TextBox ID="txtPassword" runat="server" Width="260" TextMode="Password"></asp:TextBox>
                        </td>
                        <td class="fielddescription">
                            不修改请留为空
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldname">发送邮箱地址:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="MailAddress" runat="server" Width="260"></asp:TextBox>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">验证邮件状态:</td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="RegisterStatus" runat="server">
                                <asp:ListItem Value="0" Selected="True">关闭</asp:ListItem>
                                <asp:ListItem Value="1">开启</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">找回密码邮件状态:</td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="ForgotPasswordStatus" runat="server">
                                <asp:ListItem Value="0" Selected="True">关闭</asp:ListItem>
                                <asp:ListItem Value="1">开启</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="fielddescription">

                        </td>
                    </tr>
                    <tr>
                        <td class="fieldname">邮箱验证邮件主题:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="RegisterSubject" runat="server" Width="428"></asp:TextBox>
                        </td>
                        <td class="fielddescription">{account}账号,{date}当前日期</td>
                    </tr>
                    <tr>
                        <td class="fieldname">邮箱验证邮件正文:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="RegisterBody" runat="server" MaxLength="6" Width="428"
                                Height="90" TextMode="MultiLine" />
                        </td>
                        <td class="fielddescription">
                                  {account}账号,{date}当前日期,{authcode}验证码
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldname">密码找回邮件主题:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="ForgotPasswordSubject" runat="server" Width="428"></asp:TextBox>
                        </td>
                        <td class="fielddescription">{account}账号,{date}当前日期</td>
                    </tr>
                    <tr>
                        <td class="fieldname">密码找回邮件正文模板:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="ForgotPasswordBody" runat="server" MaxLength="6" Width="428"
                                Height="90" TextMode="MultiLine" />
                        </td>
                        <td class="fielddescription">{account}账号,{date}当前日期,{authcode}验证码</td>
                    </tr>
                </table>
                <asp:HiddenField ID="ConfigID" runat="server" Value="0" />
            </div>
            <table width="100%" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSave" SkinID="ButtonSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
