<%@ page language="C#" autoeventwireup="true" inherits="Admin_ServiceSite_Settings, GroupTGWeb_deploy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="GroupFly" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>站点设置</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

    <script type="text/javascript">
    //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("textBoxImgAddress").value = k.substring(lastIndex+1,strLen);           
         document.getElementById("ImageOriginalImge").src = k;          
          document.getElementById("ImgWaterMarkOriginalImge").src = k; 
        }
    }     
    
    
       function openWaterMarkImage()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("TextBoxWaterMarkOriginalImge").value = k.substring(lastIndex+1,strLen);
          document.getElementById("ImgWaterMarkOriginalImge").src = k; 
        }
    }   
    function changeTab(count,index)
    {
        for (var i = 1; i <= count; i++)
        {
          document.getElementById('current' + i).className = '';
          document.getElementById('content' + i).style.display = 'none';
        }
        document.getElementById('current' + index).className = 'current';
        document.getElementById('content' + index).style.display = 'block';
    } 
    </script>

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;
    font-size: 12px">
    <form id="form1" runat="server">
    <div class="query" id="content">
        <div style="text-align: center;">
            <div id="header">
                <ul>
                    <li id="current1" class="current"><a style="cursor: pointer;" onclick="changeTab(3,1);">
                        <asp:Label runat="server" ID="tab01" Text="站点设置" /></a></li>
                    <li id="current2"><a style="cursor: pointer;" onclick="changeTab(3,2);">
                        <asp:Label runat="server" ID="tab02" Text="水印设置" /></a></li>
                    <li id="current3"><a style="cursor: pointer;" onclick="changeTab(3,3);">
                        <asp:Label runat="server" ID="tab03" Text="邮件短信设置" /></a></li>
                </ul>
                <br style="clear: both;" />
            </div>
            <!-- **************************基本信息************************** -->
            <div id="content1" runat="server">
                <table cellpadding="3" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeName" runat="server" Text="站点名称："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxName" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                            <asp:Label ID="Label1" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorTextBoxName" runat="server"
                                ControlToValidate="TextBoxName" ErrorMessage="该值不能为空 "></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; vertical-align: top; padding-top: 15px;">
                            <asp:Localize ID="LocalizeCopyright" runat="server" Text="站点版权："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxCopyright" runat="server" TextMode="MultiLine" CssClass="input1"
                                Width="300px" Height="60"></asp:TextBox>
                            <asp:Label ID="Label5" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorTextBoxCopyright" runat="server"
                                ControlToValidate="TextBoxCopyright" ErrorMessage="该值不能为空 "></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" valign="bottom">
                            <asp:Localize ID="LocalizeLogo" runat="server" Text="站点Logo："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="textBoxImgAddress" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                            <input id="ButtonSelectSingleImage" type="button" value="选择图片" onclick="openSingleChild()"
                                class="bt3 cancel" />
                            <img id="ImageOriginalImge" runat="server" src="" alt="" width="144" height="40" />
                            <asp:Label ID="Warning7" runat="server" Text="建议尺寸: 144*40 px "></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="LocalizeLink" runat="server" Text="Logo的链接地址："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxLink" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="Localize1" runat="server" Text="赠送推荐会员："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="RadioButtonListType" runat="server" AutoPostBack="true"
                                OnSelectedIndexChanged="RadioButtonListType_SelectedIndexChanged" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0">赠送会员消费积分</asp:ListItem>
                                <asp:ListItem Value="1">赠送会员金额</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="LocaliScoreorMoneyValue2" runat="server" Text="赠送推荐会员积分："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxScoreorMoneyValue" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" valign="bottom">
                            <asp:Localize ID="Localize2" runat="server" Text="是否禁用小数："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListDecimalPoint" runat="server">
                                <asp:ListItem Value="true">禁用</asp:ListItem>
                                <asp:ListItem Value="false">不禁用</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" valign="bottom">
                            <asp:Localize ID="Localizes" runat="server" Text="是否集成论坛："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListForum" runat="server">
                                <asp:ListItem Value="true">集成</asp:ListItem>
                                <asp:ListItem Value="false">不集成</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" valign="bottom">
                            <asp:Localize ID="Localize3" runat="server" Text="设置多个推荐："></asp:Localize>
                        </td>
                        <td align="left">
                            <!--是否禁止推荐多个-->
                            <asp:DropDownList ID="DropDownListIsRecommend" runat="server">
                                <asp:ListItem Value="0">允许</asp:ListItem>
                                <asp:ListItem Value="1">不允许</asp:ListItem>
                            </asp:DropDownList>
                            (单团模式请修改为不允许)
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" valign="bottom">
                            <asp:Localize ID="Localize4" runat="server" Text="集成登录地址："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxLoginUrl" runat="server" CssClass="input1" Width="300px"></asp:TextBox>(默认非空状态，如修改请填写http://)
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" valign="bottom">
                            <asp:Localize ID="Localize5" runat="server" Text="集成注册地址："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxRegisterUrl" runat="server" CssClass="input1" Width="300px"></asp:TextBox>(默认非空状态，如修改请填写http://)
                        </td>
                    </tr>
                </table>
            </div>
            <!-- ****************************************水印设置******************************************** -->
            <div id="content2" runat="server" style="display: none;">
                <table style="width: 100%;" cellpadding="0" cellspacing="1" border="0">
                    <tr>
                        <td align="right" width="20%">
                            <asp:Label ID="Label3" runat="server" Text="水印开启设置："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="RadioButtonListIfSetWaterMark" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0">不开启水印</asp:ListItem>
                                <asp:ListItem Value="1">开启文字水印</asp:ListItem>
                                <asp:ListItem Value="2">开启图片水印</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label2" runat="server" Text="水印图片："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxWaterMarkOriginalImge" runat="server" CssClass="input2"></asp:TextBox>
                            <input id="Button1" type="button" value="选择图片" onclick="openWaterMarkImage()" />
                            <img id="ImgWaterMarkOriginalImge" runat="server" src="" alt="" width="144" height="40" />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label6" runat="server" Text="图片水印位置："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="RadioButtonListWaterMarkImagePosition" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="TOP_LEFT">顶部居左</asp:ListItem>
                                <asp:ListItem Value="TOP_RIGHT">顶部居右</asp:ListItem>
                                <asp:ListItem Value="BOTTOM_LEFT">底部居左</asp:ListItem>
                                <asp:ListItem Value="BOTTOM_RIGHT">底部居右</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label7" runat="server" Text="图片水印透明度："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxImageWaterMarkClarity" runat="server" CssClass="input2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorImageWaterMarkClarity"
                                runat="server" ControlToValidate="TextBoxImageWaterMarkClarity" Display="Dynamic"
                                ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label8" runat="server" Text="水印文字："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxWaterMarkWords" runat="server" CssClass="input2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label9" runat="server" Text="水印文字字体："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListWaterMarkWordsFont" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label11" runat="server" Text="水印文字字体大小："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxWaterMarkWordsFontSize" runat="server" CssClass="input2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorWaterMarkWordsFontSize"
                                runat="server" ControlToValidate="TextBoxWaterMarkWordsFontSize" Display="Dynamic"
                                ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="style1">
                            <asp:Label ID="Label21" runat="server" Text="水印文字字体颜色："></asp:Label>
                        </td>
                        <td align="left" class="style1">
                            <asp:TextBox ID="TextBoxWaterMarkWordsColor" runat="server" CssClass="input2" onselectstart="return false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label10" runat="server" Text="文字水印位置："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="RadioButtonListWordsWaterMarkPosition" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="TOP_LEFT">顶部居左</asp:ListItem>
                                <asp:ListItem Value="TOP_RIGHT">顶部居右</asp:ListItem>
                                <asp:ListItem Value="BOTTOM_LEFT">底部居左</asp:ListItem>
                                <asp:ListItem Value="BOTTOM_RIGHT">底部居右</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- ****************************************邮件短信设置******************************************** -->
            <div id="content3" runat="server" style="display: none;">
                <table cellpadding="0" cellspacing="1" width="100%" style="line-height: 30px;">
                    <tr style="display: none;">
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeEmailServer" runat="server" Text="邮件服务："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:CheckBoxList ID="CheckBoxListEmailServer" runat="server" RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeSMTP" runat="server" Text="发送邮件服务器地址(SMTP)："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxSMTP" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeServerPort" runat="server" Text="服务器端口："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:TextBox ID="TextBoxServerPort" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeEmailAccount" runat="server" Text="邮件发送账号："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:TextBox ID="TextBoxEmailAccount" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeEmailPassword" runat="server" Text="账号密码："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:TextBox ID="TextBoxEmailPassword" runat="server" CssClass="input1" Width="300px"
                                TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeRestoreEmail" runat="server" Text="邮件回复地址："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:TextBox ID="TextBoxRestoreEmail" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="display: none;">
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeEmailCode" runat="server" Text="邮件编码："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:CheckBoxList ID="CheckBoxListEmailCode" runat="server" RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeEmailAddress" runat="server" Text="邮件地址："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:TextBox ID="TextBoxEmailAddress" runat="server" CssClass="input1" Width="300px"></asp:TextBox>
                            <asp:Button ID="ButtonSend" runat="server" Text="发送测试邮件" CssClass="bt3 cancel" OnClick="ButtonSend_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeIsEmail" runat="server" Text="会员注册成功时："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListReg" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送邮件</asp:ListItem>
                                <asp:ListItem Value="0">不发送邮件</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeBackPwd" runat="server" Text="会员找回密码时："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListBackPwd" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送邮件</asp:ListItem>
                                <asp:ListItem Value="0">不发送邮件</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeUpdatePwd" runat="server" Text="会员修改密码保护："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListUpdatePwd" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送邮件</asp:ListItem>
                                <asp:ListItem Value="0">不发送邮件</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeAddMoney" runat="server" Text="会员账户充值成功："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListAddMoney" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送邮件</asp:ListItem>
                                <asp:ListItem Value="0">不发送邮件</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeDownOrder" runat="server" Text="下订单成功："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListDownOrder" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送邮件</asp:ListItem>
                                <asp:ListItem Value="0">不发送邮件</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeUpdateOrder" runat="server" Text="订单状态变更："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListUpdateOrder" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送邮件</asp:ListItem>
                                <asp:ListItem Value="0">不发送邮件</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeMMSReg" runat="server" Text="会员注册成功时："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListMMSReg" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送短信</asp:ListItem>
                                <asp:ListItem Value="0">不发送短信</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeMMSBackPwd" runat="server" Text="会员找回密码时："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListMMSBackPwd" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送短信</asp:ListItem>
                                <asp:ListItem Value="0">不发送短信</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeMMSUpdatePwd" runat="server" Text="会员修改密码保护："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListMMSUpdatePwd" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送短信</asp:ListItem>
                                <asp:ListItem Value="0">不发送短信</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeMMSAddMoney" runat="server" Text="会员账户充值成功："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListMMSAddMoney" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送短信</asp:ListItem>
                                <asp:ListItem Value="0">不发送短信</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeMMSDownOrder" runat="server" Text="下订单成功："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListMMSDownOrder" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送短信</asp:ListItem>
                                <asp:ListItem Value="0">不发送短信</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 20%">
                            <asp:Localize ID="LocalizeMMSUpdateOrder" runat="server" Text="订单状态变更："></asp:Localize>
                        </td>
                        <td colspan="2" align="left">
                            <asp:DropDownList ID="DropDownListMMSUpdateOrder" runat="server" Width="304px">
                                <asp:ListItem Selected="True" Value="1">发送短信</asp:ListItem>
                                <asp:ListItem Value="0">不发送短信</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="bottomLine" style="padding-left: 250px">
        <asp:Button ID="ButtonEdit" runat="server" Text="确定" CssClass="bt2" OnClick="ButtonEdit_Click" />
        <input id="Reset1" type="reset" value="重置" class="bt2" />
        <GroupFly:MessageShow ID="MessageShow" Visible="false" runat="server" />
        <asp:HiddenField ID="HiddenFieldproduceMemLoginID" runat="server" />
    </div>
    </form>
</body>
</html>
