<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Config.aspx.cs" Inherits="TW.UI.Admin.Config" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../js/public.js"></script>
<script type="text/javascript" src="../js/artDialog/artDialog.js?skin=default"></script>
<script type="text/javascript" src="../js/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="../js/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="../js/FancyZoom/FancyZoom.js"></script>
<script type="text/javascript" src="../js/FancyZoom/FancyZoomHTML.js"></script>
<script type="text/javascript">
    $(function () {
        $(".tab tbody:gt(1)").hide();
        $(".combox a").click(function () {
            var txt = $(this).text();
            $(".tab tbody:gt(0)").hide();
            $(".tab tbody[title='" + txt + "']").show();
            $(this).addClass("on").siblings().removeClass("on");
        });

        editor = KindEditor.create('#txtCopyright', {
            items: ['source', '|', 'fullscreen', 'undo', 'redo', 'cut', 'copy', 'paste',
            'plainpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull',
            'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'superscript',
            '|', 'selectall', '-', 'title', 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold',
            'italic', 'underline', 'strikethrough', 'removeformat', '|', 'link', 'unlink'],
            filterMode: true,
            uploadJson: '/inc/upload.ashx',
            afterFocus: function () { $('#txtCopyright').focus(); },
            afterBlur: function () { $('#txtCopyright').blur(); },
            afterUpload: function (url) {
                Thumb(url);
            }
        });
        var hidOffcWChatPic = $("#hidOffcWChatPic").val();
        if (hidOffcWChatPic != "") {
            UpReturn(hidOffcWChatPic, "hidOffcWChatPic");
        }
        var hidLogo = $("#hidLogo").val();
        if (hidLogo != "") {
            UpReturn(hidLogo, "hidLogo");
        }
    });
</script>
</head>
<body onload="setupZoom();">
<form id="form1" runat="server">
<div class="nav"><h1>系统基本设置</h1></div>

<div class="cont">
	<table class="table2 tab">
    <tbody>
    <tr>
        <td colspan="2" class="combox">
        <a class="on">首页设置</a>
        <a>网站设置</a>
        <a>客服设置</a>
        <a>注册设置</a>
        <a>邮箱设置</a>
        <a>短信接口</a>
        <a>第三方登录</a>
        </td>
    </tr>
    </tbody>

    <tbody title="首页设置">
    <tr>
        <th>&nbsp;</th>
        <td><b>首页设置</b></td>
    </tr>
    <tr>
        <th>首页标题：</th> 
        <td><asp:TextBox ID="txtIndexTitle" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <th>首页关键字：</th>
        <td><asp:TextBox ID="txtIndexKeywords" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <th>首页网站内容描述：</th>
        <td><asp:TextBox ID="txtIndexDescription" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>
        </td>
    </tr>
    </tbody>

    <tbody title="网站设置">
    <tr>
        <th>&nbsp;</th>
        <td><b>网站设置</b></td>
    </tr>
    <tr>
        <th>网站logo：</th>
        <td>
            建议尺寸：像素 宽x高=260x80<br />
            <asp:HiddenField ID="hidLogo" runat="server" />
		    <iframe src="../inc/upload.aspx?dir=image&input=hidLogo" id="Iframe2" 
            width="300" height="25" scrolling="no" frameborder="0" allowtransparency="true"></iframe>
		    <span id="hidLogo_Preview"></span>
        </td>
    </tr> 
    <tr>
        <th>网站名称：</th>
        <td><asp:TextBox ID="txtSiteName" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>
        </td>
    </tr> 
    <tr>
        <th>版权信息：</th>
        <td><asp:TextBox ID="txtCopyright" runat="server" CssClass="formTitle" Width="680px" Height="100" TextMode="MultiLine"></asp:TextBox></td>
    </tr>
    <tr>
        <th>证书查看地址：</th>
        <td><asp:TextBox ID="txtZSShowUrl" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>示例图：<a href="/silitu/zsckdzsl.png"><img src="images/tu1.gif" /></a></td>
    </tr>
    <tr>
        <th>官方微信图片：</th>
        <td>
            建议尺寸：像素-140x140
            <br />
		    <asp:HiddenField ID="hidOffcWChatPic" runat="server" />
		    <iframe src="/inc/upload.aspx?dir=image&input=hidOffcWChatPic" id="Iframe1" width="96%" height="25" scrolling="no" frameborder="0" allowtransparency="true"></iframe>
		    <span id="hidOffcWChatPic_Preview"></span>
        </td>
    </tr>

    <tr>
        <th>&nbsp;</th>
        <td><b>谨防网络诈骗设置</b>示例图：<a href="/silitu/jfwlzpsl.png"><img src="images/tu1.gif" /></a></td>
    </tr>
    <tr>
        <th>描述：</th>
        <td><asp:TextBox ID="txtAntiInteCheatDes" runat="server" CssClass="formTitle" Width="300px" Height="100" TextMode="MultiLine" MaxLength="70"></asp:TextBox>注：限制70个字</td>
    </tr>
    <tr>
        <th>链接地址：</th>
        <td><asp:TextBox ID="txtAntiInteCheatUrl" runat="server" CssClass="formTitle" Width="300px" Height="100" TextMode="MultiLine"></asp:TextBox></td>
    </tr>
    </tbody>

    <tbody title="客服设置">
    <tr>
        <th>&nbsp;</th>
        <td><b>客服设置</b></td>
    </tr>
    <tr>
        <th>服务周期：</th>
        <td><asp:TextBox ID="txtServCycle" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>&nbsp;如：‘7x15小时’或‘周一至周五’
        </td>
    </tr>
    <tr>
        <th>服务时间：</th>
        <td><asp:TextBox ID="txtServTime" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>&nbsp;如：’8:00-23:00‘或‘早七点至晚11点’等
        </td>
    </tr>
    <tr>
        <th>电话号码：</th>
        <td><asp:TextBox ID="txtPhone" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>&nbsp;如：400-111-7666
        </td>
    </tr>
    <tr style="display:none;">
        <th>交易客服QQ：</th>
        <td>
            <asp:TextBox ID="txtTransaQQ" runat="server" CssClass="formTitle" TextMode="MultiLine" Height="100" Width="300"></asp:TextBox>注:多个之间用换行隔开
        </td>
    </tr>
    <tr>
        <th>投诉建议QQ：</th>
        <td>
            <asp:TextBox ID="txtComplaQQ" runat="server" CssClass="formTitle" Width="300"></asp:TextBox>
        </td>
    </tr>
    </tbody>

    <tbody title="注册设置">
    <tr>
        <th>&nbsp;</th>
        <td><b>注册设置</b></td>
    </tr>
    <tr>
        <th>用户协议链接：</th>
        <td>
            <asp:TextBox ID="txtRegTHXYUrl" runat="server" CssClass="formTitle" Width="300"></asp:TextBox>示例图：<a href="/silitu/yhfwxy.png"><img src="images/tu1.gif" /></a>
        </td>
    </tr>
    </tbody>

    <tbody title="邮箱设置">
    <tr>
        <th>&nbsp;</th>
        <td><b>邮箱设置</b></td>
    </tr>
<tr>
  <th>SMTP服务器地址：</th>
  <td>
      <asp:TextBox ID="txtSMTP" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
      <br />
      SMTP服务器地址，例如smtp.126.com,smtp.qq.com。请确认你的邮箱具有SMTP服务并开启。
  </td>
</tr>
<tr>
  <th>启用安全连接(SSL)：</th>
  <td>
      <span><asp:CheckBox ID="chkSSL" runat="server" Text="是" /></span>
    </td>
</tr>
<tr>
  <th>SMTP端口号：</th>
  <td>
      <TW:ReplaceBox ID="txtPort" runat="server" Text="25"></TW:ReplaceBox>
      <br />
      设置SMTP服务器的端口号，一般默认都是25。</td>
</tr>
<tr>
  <th>邮箱地址：</th>
  <td>
      <asp:TextBox ID="txtUser" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
      <br />
      设置您的邮件地址，例如kuaishow@126.com</td>
</tr>
<tr>
  <th>SMTP密码：</th>
  <td>
      <asp:TextBox ID="txtPass" runat="server" Width="220px" TextMode="Password" CssClass="formTitle"></asp:TextBox>
      <span><asp:CheckBox ID="chkNoPass" runat="server" Text="空密码" /></span>
      <br />
      设置您登录邮箱的密码。</td>
</tr>

</tbody>

    <tbody title="短信接口">
    <tr>
        <th>&nbsp;</th>
        <td><b>短信接口</b>&nbsp;申请地址：<a target="_blank" href="http://www.smschinese.cn/">中国网建</a></td>
    </tr>
<tr>
  <th>短信用户：</th>
  <td>
      <asp:TextBox ID="txtmsg_uid" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
<tr>
  <th>短信密码：</th>
  <td>
      <asp:TextBox ID="txtmsg_psd" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>留空不修改
  </td>
</tr>
<tr>
  <th>短信黑名单：</th>
  <td>
      <asp:TextBox ID="txtSMSBlacklist" runat="server" CssClass="formTitle" Width="220px" Height="200" TextMode="MultiLine"></asp:TextBox>加入黑名单的手机将不能发送短信，添加多个用换行隔开
  </td>
</tr>
    </tbody>


    <tbody title="第三方登录">
    <tr>
        <th>&nbsp;</th>
        <td><b>第三方登录</b></td>
    </tr>
<tr>
  <th>QQAPPID：</th>
  <td>
      <asp:TextBox ID="txtQQAPPID" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
<tr>
  <th>QQKey：</th>
  <td>
      <asp:TextBox ID="txtQQKey" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
<tr>
  <th>WeiboAPPID：</th>
  <td>
      <asp:TextBox ID="txtWeiboAPPID" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
<tr>
  <th>WeiboKey：</th>
  <td>
      <asp:TextBox ID="txtWeiboKey" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
<tr>
  <th>微信开放平台：</th>
  <td>
      <span><asp:CheckBox ID="chkWeixinIsOpen" runat="server" Text="是" /></span>
    </td>
</tr>
<tr>
  <th>WeixinAPPID：</th>
  <td>
      <asp:TextBox ID="txtWeixinAPPID" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>

<tr>
  <th>WeixinKey：</th>
  <td>
      <asp:TextBox ID="txtWeixinKey" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
<tr>
  <th>BaiduAPPID：</th>
  <td>
      <asp:TextBox ID="txtBaiduAPPID" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
<tr>
  <th>BaiduKey：</th>
  <td>
      <asp:TextBox ID="txtBaiduKey" runat="server" Width="220px" CssClass="formTitle"></asp:TextBox>
  </td>
</tr>
    </tbody>


    <tbody>
    <tr>
        <th>&nbsp;</th>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <th>&nbsp;</th>
        <td><b>图片设置</b></td>
    </tr>
    <tr>
        <th>水印开启条件：</th>
        <td>宽最少<TW:ReplaceBox ID="txtWaterWidth" runat="server" Width="48px"></TW:ReplaceBox>
            xp&nbsp; 高最少<TW:ReplaceBox ID="txtWaterHeight" runat="server" Width="48px"></TW:ReplaceBox>
            xp(0为不生成水印图片)</td>
    </tr>
    <tr>
        <th>水印模式：</th>
        <td>
            <asp:RadioButtonList ID="chkType" runat="server" RepeatDirection="Horizontal" 
                RepeatLayout="Flow">
                <asp:ListItem Value="0">不水印</asp:ListItem>
                <asp:ListItem Selected="True" Value="1">文字</asp:ListItem>
                <asp:ListItem Value="2">图片</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr id="w1">
        <th>水印文字：</th>
        <td><asp:TextBox ID="txtText" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>
        </td>
    </tr>        
    <tr id="w2">
        <th>水印图片路径：</th>
        <td><asp:TextBox ID="txtPicUrl" runat="server" CssClass="formTitle" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <th>水印位置：</th>
        <td>
            <asp:DropDownList ID="drpStatus" runat="server">
                <asp:ListItem Value="1">左侧上部</asp:ListItem>
                <asp:ListItem Value="2">中间上部</asp:ListItem>
                <asp:ListItem Value="3">右侧上部</asp:ListItem>
                <asp:ListItem Value="4">左侧中部</asp:ListItem>
                <asp:ListItem Value="5">中间中部</asp:ListItem>
                <asp:ListItem Value="6">右侧中部</asp:ListItem>
                <asp:ListItem Value="7">左侧下部</asp:ListItem>
                <asp:ListItem Value="8">中间下部</asp:ListItem>
                <asp:ListItem Selected="True" Value="9">右侧下部</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <th>水印透明度：</th>
        <td>
            <asp:DropDownList ID="drpTransparency" runat="server">
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem Selected="True">2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <th>上传文件最大：</th>
        <td>
            <TW:ReplaceBox ID="txtMaxSize" runat="server" 
                CssClass="formTitle" Width="48px"></TW:ReplaceBox>
            KB&nbsp; 1024KB=1M</td>
    </tr>
    <tr>
        <th>裁剪尺寸：</th>
        <td>
            宽<TW:ReplaceBox ID="txtCutWidth" runat="server" 
                CssClass="formTitle" Width="48px"></TW:ReplaceBox>
            px×高<TW:ReplaceBox ID="txtCutHeight" runat="server" 
                CssClass="formTitle" Width="48px"></TW:ReplaceBox>
            px&nbsp; 大于此宽或高就裁剪</td>
    </tr>
    </tbody>
    </table>


	<table class="table2">
		<tr>
			<th>&nbsp;</th>
			<td class="abtn"><asp:Button ID="Button1" runat="server" Text="提交" 
                    onclick="Button1_Click" /></td>
		</tr>
        <tr style="display:none;">
			<th>&nbsp;</th>
			<td><asp:Button ID="Button3" runat="server" Text="一键删除冗余图片" 
                    onclick="Button2_Click" /></td>
		</tr>
	</table>
</div>
</form>
</body>
</html>
