<%@ Page CodeBehind="admin_Config.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.admin_config" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title>选项设置</title>
		<link href="img/main.css" rel="stylesheet" type="text/css">
			<SCRIPT language="JavaScript">
function secBoard(n)
{
	for(i=1;i<5;i++)
	{
		eval("document.getElementById('cl0"+i+"').className='newarticle2'");
	}
	eval("document.getElementById('cl0"+n+"').className='newarticle1'");
	for(i=1;i<5;i++)
		eval("document.getElementById('Layer"+i+"').style.display='none'");
	eval("document.getElementById('Layer"+n+"').style.display='block'");
}
function secBoard1(n)
{
	for(i=1;i<3;i++)
	{
		eval("document.getElementById('cl0"+i+"1').className='newarticle2'");
	}
	eval("document.getElementById('cl0"+n+"1').className='newarticle1'");
	for(i=1;i<3;i++)
		eval("document.getElementById('Layer"+i+"1').style.display='none'");
	eval("document.getElementById('Layer"+n+"1').style.display='block'");
}
function secBoard2(n)
{
	for(i=1;i<6;i++)
	{
		eval("document.getElementById('cl0"+i+"2').className='newarticle2'");
	}
	eval("document.getElementById('cl0"+n+"2').className='newarticle1'");
	for(i=1;i<6;i++)
		eval("document.getElementById('Layer"+i+"2').style.display='none'");
	eval("document.getElementById('Layer"+n+"2').style.display='block'");
}
var ColorImg;
var ColorValue;
function hideColourPallete() {
	document.getElementById("colourPalette").style.visibility="hidden";
}
function Getcolor(img_val,input_val){
	var obj = document.getElementById("colourPalette");
	ColorImg = img_val;
	ColorValue = document.getElementById(input_val);
	if (obj){
	obj.style.left = getOffsetLeft(ColorImg) + "px";
	obj.style.top = (getOffsetTop(ColorImg) + ColorImg.offsetHeight) + "px";
	if (obj.style.visibility=="hidden")
	{
	obj.style.visibility="visible";
	}else {
	obj.style.visibility="hidden";
	}
	}
}
function getOffsetTop(elm) {
	var mOffsetTop = elm.offsetTop;
	var mOffsetParent = elm.offsetParent;
	while(mOffsetParent){
		mOffsetTop += mOffsetParent.offsetTop;
		mOffsetParent = mOffsetParent.offsetParent;
	}
	return mOffsetTop;
}
function getOffsetLeft(elm) {
	var mOffsetLeft = elm.offsetLeft;
	var mOffsetParent = elm.offsetParent;
	while(mOffsetParent) {
		mOffsetLeft += mOffsetParent.offsetLeft;
		mOffsetParent = mOffsetParent.offsetParent;
	}
	return mOffsetLeft;
}
function setColor(color)
{
	if (ColorValue){if (color!=500) ColorValue.value = color;else ColorValue.value =""}
	if (ColorImg){if (color!=500) ColorImg.style.backgroundColor = color;else ColorImg.style.backgroundColor =""}
	document.getElementById("colourPalette").style.visibility="hidden";
}
			</SCRIPT>
</HEAD>
	<body>
		<iframe id="colourPalette" style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: gray 1px solid; BORDER-BOTTOM: gray 1px solid; POSITION: absolute; TOP: 0px"
			src="../selcolor.htm" frameBorder="0" width="260" scrolling="no" height="165"></iframe>
		<form id="Form1" method="post" runat="server">
			<div align="center">
				<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
					<tr>
						<td colSpan="3" class="td_title">基本选项设置						</td>
					</tr>
					<tr class="tableTd">
						<td width="420" align="right"><div align="right">网站标题：</div>						</td>
						<td colspan="2"><span class="forumrow"><span class="a3-green"><asp:textbox id="title" runat="server" Width="151px" CssClass="tableTdtext"></asp:textbox>
								</span>
							</span></td>
					</tr>
					<tr class="tableTd">
						<td align="right"><div align="right">网站LOGO地址：</div>						</td>
						<td colspan="2"><span class="forumrow"><span class="a3-green"><asp:textbox id="logo" runat="server" Width="151px" CssClass="tableTdtext"></asp:textbox>
								</span>
							</span></td>
					</tr>
					<tr class="tableTd">
						<td align="right"><div align="right">网站地址：</div>						</td>
						<td colspan="2"><span class="a3-green">
								<asp:textbox id="url" runat="server" Width="151px" CssClass="tableTdtext"></asp:textbox>
								（仅填写完整域名部分，如www.1disk.cn）</span></td>
					</tr>
					<tr class="tableTd">
						<td align="right"><div align="right">存放目录：</div>						</td>
						<td colspan="2"><span class="forumrow"><font color="#000000"><font color="#000000"><span class="a3-green"><asp:textbox id="userpath" runat="server" CssClass="tableTdtext"></asp:textbox>
											<font color="#000000"><font color="#000000">（例如：“myfile/”）</font></font></span></font></font></span>						</td>
					</tr>
					<tr class="tableTd">
						<td align="right"><div align="right">存放方式：</div>						</td>
						<td colspan="2"><asp:RadioButtonList id="pathtype" runat="server" Width="334px" RepeatDirection="Horizontal" RepeatLayout="Flow">
								<asp:ListItem Value="0">不分目录</asp:ListItem>
								<asp:ListItem Value="1">年份</asp:ListItem>
								<asp:ListItem Value="2" Selected="True">年份＋月份</asp:ListItem>
								<asp:ListItem Value="3">年份＋月份＋日期</asp:ListItem>
							</asp:RadioButtonList></td>
					</tr>
					<tr class="tableTd">
						<td align="right"><div align="right"><span class="forumrow"><span class="a3-green">是否使用验证码：</span>
								</span>
							</div>						</td>
						<td colspan="2">
							<div align="left"><span class="forumrow"><span class="a3-green">
										<asp:CheckBox id="ValidateCode" runat="server" Text="登录时使用验证码"></asp:CheckBox>
										<asp:CheckBox id="ValidateCode1" runat="server" Text="注册时使用验证码"></asp:CheckBox>
										<asp:CheckBox id="ValidateCode2" runat="server" Text='评论时使用验证码'></asp:CheckBox>
									</span>
								</span><span class="a3-green">
									<asp:CheckBox id="ValidateCode3" runat="server" Text='留言时使用验证码'></asp:CheckBox>
								</span>							</div>						</td>
					</tr>
					<tr class="tableTd">
						<td align="right">允许注册申请：</td>
						<td colspan="2"><asp:radiobuttonlist id="allowreg" runat="server" Height="10px" RepeatDirection="Horizontal" RepeatLayout="Flow">
								<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
								<asp:ListItem Value="0">否</asp:ListItem>
							</asp:radiobuttonlist></td>
					</tr>
					<tr class="tableTd">
						<td align="right">注册是否需要审核：</td>
						<td colspan="2"><asp:radiobuttonlist id="regSH" runat="server" Height="10px" RepeatDirection="Horizontal" RepeatLayout="Flow">
								<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
								<asp:ListItem Value="0">否</asp:ListItem>
							</asp:radiobuttonlist></td>
					</tr>
					<tr class="tableTd">
						<td align="right">是否公开用户列表：</td>
						<td colspan="2"><asp:radiobuttonlist id="userlist" runat="server" Width="73px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
								<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
								<asp:ListItem Value="0">否</asp:ListItem>
							</asp:radiobuttonlist>
							（是否在网友菜单处显示全部用户）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">注册时是否使用邮件验证：</td>
						<td colspan="2"><asp:radiobuttonlist id="mailval" runat="server" Width="73px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
								<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
								<asp:ListItem Value="0">否</asp:ListItem>
							</asp:radiobuttonlist>（注册后系统自动发送一封确认信到其邮件中，需激活才能正式使用）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">是否允许重复IP注册：</td>
						<td colspan="2"><asp:radiobuttonlist id="dupip" runat="server" Width="69px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
								<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
								<asp:ListItem Value="0">否</asp:ListItem>
							</asp:radiobuttonlist>（是否允许用户在IP不变的情况下连续或重复注册空间）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">注册后多长时间可以重复注册</td>
						<td colspan="2"><asp:textbox id="dupregtime" runat="server" Width="35px" CssClass="tableTdtext"></asp:textbox>分钟（最大值视会话时间决定，一般为20）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">默认注册时的等级名称：</td>
						<td colspan="2"><asp:dropdownlist id="level" runat="server"></asp:dropdownlist></td>
					</tr>
					<tr class="tableTd" id="Tr2" runat="server">
                      <td align="right">用户分组分配方式：</td>
					  <td colspan="2"><FONT face="宋体">
					    <INPUT id="outteam" type="radio" CHECKED value="Radio1" name="RadioGroup" runat="server">
					    默认注册到
					    <asp:dropdownlist id="team" runat="server"></asp:dropdownlist>
					    组（不指定则使用存放目录中的相对地址）
					    <INPUT id="outteam1" type="radio" value="Radio2" name="RadioGroup" runat="server">
					    注册时选择<span class="pad"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></span></FONT></td>
				  </tr>
					<tr class="tableTd">
						<td align="right">二级域名保留名称：</td>
						<td colspan="2"><asp:textbox id="NoTwoUrl" runat="server" Width="380px" CssClass="tableTdtext"></asp:textbox>（使用半角,分隔）<span class="pad"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></span></td>
					</tr>
					<tr class="tableTd">
						<td align="right">用户绑定域名保留域名：</td>
						<td colspan="2"><asp:textbox id="nodomain" runat="server" Width="380px" CssClass="tableTdtext"></asp:textbox>
						  <span class="pad"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></span><BR>
							（使用半角,分隔，如abc.abc.com,bbb.abc.com和本站多个域名，填写后用户空间即不能绑定此顶级域名）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">页面底部文字信息：</td>
						<td colspan="2"><asp:textbox id="bottom" runat="server" Width="380px" CssClass="tableTdtext" Rows="5"></asp:textbox>
							（为空为不显示）<span class="pad"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></span></td>
					</tr>
					<tr class="tableTd">
						<td align="right">注册时的用户协议：</td>
						<td colspan="2"><asp:textbox id="agreement" runat="server" Width="380px" CssClass="tableTdtext" Rows="5" TextMode="MultiLine"></asp:textbox>（为空为不显示）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">过滤显示文字：</td>
						<td colspan="2"><asp:textbox id="filter" runat="server" Width="380px" CssClass="tableTdtext" Height="70px" Rows="10"
								TextMode="MultiLine"></asp:textbox><br>
							（对空间标题、评论、空间介绍、公告、照片名和相册名过滤指定的文字，用半角,分隔）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">列表每页显示个数：</td>
						<td colspan="2"><asp:textbox id="linecount" runat="server" Width="49px" CssClass="tableTdtext" Rows="5"></asp:textbox>						  （对好友、共享、用户、留言每页条数控制）</td>
					</tr>
					
					<tr class="tableTd">
						<td align="right">注册用户名长度限制：</td>
						<td colspan="2">最短
							<asp:textbox id="len1" runat="server" Width="43px" CssClass="tableTdtext"></asp:textbox>个，最长
							<asp:textbox id="len2" runat="server" Width="43px" CssClass="tableTdtext"></asp:textbox>个</td>
					</tr>
					<tr class="tableTd">
						<td align="right">注册密码长度限制：</td>
						<td colspan="2">最短
							<asp:textbox id="len3" runat="server" Width="43px" CssClass="tableTdtext"></asp:textbox>个，最长
							<asp:textbox id="len4" runat="server" Width="43px" CssClass="tableTdtext"></asp:textbox>个</td>
					</tr>
					<tr class="tableTd" id="Tr1" runat="server">
						<td align="right">密码加密类型：</td>
						<td colspan="2">
							<asp:radiobuttonlist id="passtype" runat="server" Width="155px" RepeatDirection="Horizontal" Height="10px"
								RepeatLayout="Flow">
								<asp:ListItem Value="0" Selected="True">32位MD5</asp:ListItem>
								<asp:ListItem Value="1">16位MD5</asp:ListItem>
							</asp:radiobuttonlist></td>
					</tr>
					<tr class="tableTd" id="Tr3" runat="server">
						<td align="right">每天最多注册人数：</td>
						<td colspan="2"><FONT face="宋体">
								<asp:textbox id="regcount" runat="server" CssClass="tableTdtext" Width="43px"></asp:textbox>个（0为不限制）</FONT></td>
					</tr>
					<tr class="tableTd">
						<td align="right">注册后是否发成功邮件：</td>
						<td colspan="2"><asp:radiobuttonlist id="sendregsucc" runat="server" Width="67px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
								<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
								<asp:ListItem Value="0">否</asp:ListItem>
							</asp:radiobuttonlist></td>
					</tr>
					<tr class="tableTd">
						<td align="right">禁止外部链接时显示的图片：</td>
						<td colspan="2"><FONT face="宋体">
								<asp:textbox id="outlinkimg" runat="server" CssClass="tableTdtext" Width="208px"></asp:textbox>
							</FONT>						<span class="pad"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></span></td>
					</tr>
					<TR>
						<TD align="right"><FONT face="宋体">临时压缩包保留天数：</FONT></TD>
						<TD colSpan="2"><FONT face="宋体">
								<asp:TextBox id="zipday" runat="server" Width="43px"></asp:TextBox>天（0为不限）</FONT></TD>
					</TR>
  <TR>
    <TD align=right><FONT face=宋体>上传时原图最大保留宽度：</FONT></TD>
    <TD colSpan=2><FONT face=宋体><asp:TextBox id=maxwidth runat="server" Width="43px"></asp:TextBox>
      px（为避免原图巨大，可设定自动缩小的最大宽度，0为不限制）</FONT></TD>
  </TR>
  <TR>
    <TD align=right><FONT face=宋体>上传时原图最大保留高度：</FONT></TD>
    <TD colSpan=2><FONT face=宋体><asp:TextBox id=maxheight runat="server" Width="43px"></asp:TextBox>
      px（为避免原图巨大，可设定自动缩小的最大高度，0为不限制）</FONT></TD>
  </TR>
					<tr class="tableTd">
					  <td align="right">自动生成中缩略图：</td>
					  <td colspan="2"><asp:radiobuttonlist id="midthumb" runat="server" Width="67px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                      </asp:radiobuttonlist></td>
				  </tr>
					<tr class="tableTd">
                      <td align="right">是否允许访客评论：</td>
					  <td colspan="2"><asp:radiobuttonlist id="allowguestpl" runat="server" Width="67px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
                          <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                          <asp:ListItem Value="0">否</asp:ListItem>
                      </asp:radiobuttonlist></td>
				  </tr>
					
					<tr class="tableTd">
                      <td align="right">短地址用网址前缀：</td>
					  <td colspan="2"><FONT face="宋体">
					    <asp:TextBox id="shorturl" runat="server"></asp:TextBox>
					    （短地址独立用域名，无特殊需求不用填写）<span class="pad"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></span></FONT></td>
				  </tr>
					<tr class="tableTd">
                      <td align="right">使用伪静态：</td>
					  <td colspan="2"><asp:radiobuttonlist id="whtml" runat="server" Width="67px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
                          <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                          <asp:ListItem Value="0">否</asp:ListItem>
                        </asp:radiobuttonlist>
					    &nbsp;&nbsp;
					    伪静态扩展名：
					    <asp:TextBox id="wext" runat="server"></asp:TextBox>
					    <FONT face="宋体"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></FONT></td>
				  </tr>
					
					<tr>
						<td colSpan="3" class="td_title">在线支付设置： <FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
					</tr>
					<tr class="tableTd">
						<td align="right">设置网关接口：</td>
						<td colSpan="2">
							<DIV class="photobg1">
								<DIV class="newarticle1" id="cl012" style="CURSOR: hand" onclick="secBoard2(1)">网银在线</DIV>
								<DIV class="newarticle2" id="cl022" style="CURSOR: hand" onclick="secBoard2(2)">支付宝</DIV>
								<DIV class="newarticle2" id="cl032" style="CURSOR: hand" onclick="secBoard2(3)">快钱</DIV>
								<DIV class="newarticle2" id="cl042" style="CURSOR: hand" onclick="secBoard2(4)">财付通</DIV>
								<DIV class="newarticle2" id="cl052" style="CURSOR: hand" onclick="secBoard2(5)">PayNow</DIV>
							</DIV>
							<DIV class="photobox" id="Layer12">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">接口类型：&nbsp;&nbsp;&nbsp;&nbsp;<font face="宋体">
										<asp:radiobuttonlist id="banksubmit" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
											<asp:ListItem Value="0" Selected="True">旧接口</asp:ListItem>
											<asp:ListItem Value="1">新接口</asp:ListItem>
										</asp:radiobuttonlist>
										<p>支付商号：&nbsp;&nbsp;&nbsp;&nbsp;<asp:textbox id="bankcode" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox>
										<p>支付MD5密匙：
											<asp:textbox id="bankmd5" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox><br>
										</p>
									</font>								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>
							<DIV class="photobox" id="Layer22" style="DISPLAY: none">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">合作者身份ID：
									<asp:textbox id="alipaypartner" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox>
									<p>支付宝账号：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<asp:textbox id="alipayemail" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox>
									<p>安全校验码：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:textbox id="alipaykey" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox></p>
								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>
							<DIV class="photobox" id="Layer32" style="DISPLAY: none">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">支付商号：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<asp:textbox id="billcode" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox>
									<p>支付MD5密匙：
										<asp:textbox id="billmd5" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox></p>
								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>
							<DIV class="photobox" id="Layer42" style="DISPLAY: none">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">商户号：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<asp:textbox id="tenpaycode" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox>
									<p>商户密钥：
										<asp:textbox id="tenpaykey" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox></p>
								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>
							<DIV class="photobox" id="Layer52" style="DISPLAY: none">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">商家帐号：<asp:textbox id="paynowname" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox>
									<br>
									<br>
									商家密码：<asp:textbox id="paynowpass" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox>
									<br>
									<br>
									厂商编号：<asp:textbox id="paynowno" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox></DIV>
								<DIV class="fontclear"></DIV>
							</DIV>						</td>
					</tr>
					<tr class="tableTd">
						<td align="right">需要用的网关：</td>
						<td colSpan="2">
							<P>
							  <asp:checkboxlist id="usepaylist" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                <asp:ListItem Value="4">财付通(<a href="http://union.tenpay.com/mch/?id=1201122901" target="_blank">推荐www.tenpay.com/</a>)</asp:ListItem>
                                <asp:ListItem Value="1">网银在线(www.chinabank.com.cn)</asp:ListItem>
                                <asp:ListItem Value="2">支付宝(www.alipay.com)</asp:ListItem>
                                <asp:ListItem Value="3">快钱(www.99bill.com)</asp:ListItem>
                                <asp:ListItem Value="5">PayNow(www.paynow.com.tw台湾)</asp:ListItem>
                              </asp:checkboxlist>
					  </P>						</td>
				  </tr>
					<tr class="tableTd">
						<td align="right">设置默认项：</td>
						<td colSpan="2"><asp:radiobuttonlist id="usepay" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
								<asp:ListItem Value="1" Selected="True">网银在线</asp:ListItem>
								<asp:ListItem Value="2">支付宝</asp:ListItem>
								<asp:ListItem Value="3">快钱</asp:ListItem>
								<asp:ListItem Value="4">财付通</asp:ListItem>
								<asp:ListItem Value="5">PayNow</asp:ListItem>
							</asp:radiobuttonlist></td>
					</tr>
					<tr>
						<td colSpan="3" class="td_title">水印设置（若想统一对上传图片添加水印，可在此设定，仅在等级中设置了不允许用户自行添加水印有效）：</td>
					</tr>
					<tr class="tableTd">
						<td align="right">水印位置：</td>
						<td colspan="2">
							<label for="postion5">
								<asp:RadioButtonList id="water1" runat="server" Width="391px" RepeatLayout="Flow" RepeatDirection="Horizontal">
									<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" Selected="True">右下角</asp:ListItem>
								</asp:RadioButtonList>
							</label></td>
					</tr>
					<tr class="tableTd">
						<td align="right">水印类型：</td>
						<td colspan="2">
							<label for="iwater2">
								<asp:RadioButtonList id="water2" runat="server" Width="391px" RepeatLayout="Flow" RepeatDirection="Horizontal">
									<asp:ListItem Value="0">使用文字水印</asp:ListItem>
									<asp:ListItem Value="1">使用图片水印</asp:ListItem>
								</asp:RadioButtonList>
							</label></td>
					</tr>
					<tr class="tableTd">
						<td align="right">图片水印文件站内路径：</td>
						<td colspan="2"><asp:textbox id="water3" runat="server" Width="150px" CssClass="tableTdtext"></asp:textbox></td>
					</tr>
					<tr class="tableTd">
						<td align="right">文字水印设定：</td>
						<td colspan="2">字体：
							<select id="water5" name="water5" runat="server">
								<option value="宋体">宋体</option>
								<option value="楷体_GB2312">楷体</option>
								<option value="新宋体">新宋体</option>
								<option value="黑体">黑体</option>
								<option value="隶书">隶书</option>
								<option value="Andale Mono" selected>Andale Mono</option>
								<option value="Arial">Arial</option>
								<option value="Arial Black">Arial Black</option>
								<option value="Book Antiqua">Book Antiqua</option>
								<option value="Century Gothic">Century Gothic</option>
								<option value="Comic Sans MS">Comic Sans MS</option>
								<option value="Courier New">Courier New</option>
								<option value="Georgia">Georgia</option>
								<option value="Impact">Impact</option>
								<option value="Tahoma">Tahoma</option>
								<option value="Times New Roman">Times New Roman</option>
								<option value="Trebuchet MS">Trebuchet MS</option>
								<option value="Script MT Bold">Script MT Bold</option>
								<option value="Stencil">Stencil</option>
								<option value="Verdana">Verdana</option>
								<option value="Lucida Console">Lucida Console</option>
							</select>
							字号：
							<select id="water6" name="water6" runat="server">
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="12" selected>12</option>
								<option value="14">14</option>
								<option value="16">16</option>
								<option value="18">18</option>
								<option value="24">24</option>
								<option value="36">36</option>
							</select>
							文字颜色：<span class="ForumRowHighlight"><IMG id="color1" title="选取颜色" style="CURSOR: pointer; BACKGROUND-COLOR: #ffffff" onClick="Getcolor(this,'water7');"
									height="17" src="../images/rect.gif" width="18" border="0"></span>文字背景：<span class="ForumRowHighlight"><IMG id="color2" title="选取颜色" style="CURSOR: pointer" onClick="Getcolor(this,'water8');"
									height="17" src="../images/rect.gif" width="18" border="0"></span>
							<input id="water9" type="checkbox" value="checkbox" name="water9" runat="server">
							粗 <input class="b1a1989d7 l19" id="water10" value="此处输入水印文字" name="water10" runat="server"><INPUT id="water7" style="WIDTH: 16px; HEIGHT: 22px" type="hidden" size="1" value="#FFFFFF"
								name="water7" runat="server"><INPUT id="water8" style="WIDTH: 22px; HEIGHT: 22px" type="hidden" size="1" name="water8"
								runat="server"></td>
					</tr>
					<tr>
						<td colSpan="3" class="td_title">邮件设置：</td>
					</tr>
					<tr class="tableTd">
						<td align="right">发送邮件服务器：</td>
						<td colspan="2"><asp:textbox id="mailip" runat="server" Width="150px" CssClass="tableTdtext"></asp:textbox></td>
					</tr>
					<tr class="tableTd">
						<td align="right">发送邮件地址：</td>
						<td colspan="2"><asp:textbox id="mailname" runat="server" Width="150px" CssClass="tableTdtext"></asp:textbox></td>
					</tr>
					<tr class="tableTd">
						<td align="right">验证用户名：</td>
						<td colspan="2"><asp:textbox id="Mailusername" runat="server" Width="150px" CssClass="tableTdtext"></asp:textbox>（若服务器需身份认证请填写此项）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">验证密码：</td>
						<td colspan="2"><asp:textbox id="Mailpassword" runat="server" Width="150px" CssClass="tableTdtext"></asp:textbox>（若服务器需身份认证请填写此项）</td>
					</tr>
					<tr class="tableTd">
						<td align="right">邮件内容设置：</td>
						<td colspan="2">
							<DIV class="photobg1">
								<DIV class="newarticle1" id="cl01" style="CURSOR: hand" onClick="secBoard(1)">找回密码</DIV>
								<DIV class="newarticle2" id="cl02" style="CURSOR: hand" onClick="secBoard(2)">注册审核</DIV>
								<DIV class="newarticle2" id="cl03" style="CURSOR: hand" onClick="secBoard(3)">即将过期</DIV>
								<DIV class="newarticle2" id="cl04" style="CURSOR: hand" onClick="secBoard(4)">注册成功</DIV>
							</DIV>
							<DIV class="photobox" id="Layer1">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">
									标题：
									<asp:TextBox ID="passmailt" runat="server" Width="416px" />
									<br>
									内容：<asp:TextBox ID="passmail" runat="server" Width="100%" CssClass="tableTdtext" Rows="10" TextMode="MultiLine"></asp:TextBox>
									<br>
									（支持HTML，插入宏为&amp;url：找回密码链接；&amp;username：用户名）								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>
							<DIV class="photobox" id="Layer2" style="DISPLAY: none">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">
									标题：
									<asp:TextBox ID="markmailt" runat="server" Width="416px" />
									<br>
									内容：<asp:TextBox ID="markmail" runat="server" Width="100%" CssClass="tableTdtext" Rows="10" TextMode="MultiLine"></asp:TextBox>
									<br>
									（支持HTML，插入宏为&amp;url：激活帐号链接；&amp;username：用户名）								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>
							<DIV class="photobox" id="Layer3" style="DISPLAY: none">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">
									标题：
									<asp:TextBox ID="expirymailt" runat="server" Width="416px" />
									<br>
									内容：<asp:TextBox ID="expirymail" runat="server" Width="100%" CssClass="tableTdtext" Rows="10" TextMode="MultiLine"></asp:TextBox>
									<br>
									（支持HTML，插入宏为&amp;username：用户名；&amp;date：到期时间；&amp;url：网站首页）								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>
							<DIV class="photobox" id="Layer4" style="DISPLAY: none">
								<DIV class="photocolorblock"></DIV>
								<DIV class="fontclear"></DIV>
								<DIV class="newarticlebox">
									标题：
									<asp:TextBox ID="regsuccmailt" runat="server" Width="416px" />
									<br>
									内容：<asp:TextBox ID="regsuccmail" runat="server" Width="100%" CssClass="tableTdtext" Rows="10" TextMode="MultiLine"></asp:TextBox>
									<br>
									（支持HTML，插入宏为&amp;username：用户名；&amp;userinfo：用户注册信息列表）								</DIV>
								<DIV class="fontclear"></DIV>
							</DIV>						</td>
					</tr>
					<tr class="tableTd">
						<td align="right">邮件设置测试区：</td>
						<td colspan="2">要发送到的邮箱：
							<asp:textbox id="mailto" runat="server" Width="150px" CssClass="tableTdtext"></asp:textbox>
							<asp:button CssClass="formbutton" id="testmail" runat="server" Width="100px" Text="测试发送" onclick="testmail_Click"></asp:button>
							（邮件标题为：测试发送）</td>
					</tr>
					<tr>
						<td colSpan="3" class="td_title">积分设置：<FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
				  </tr>
					<tr class="tableTd">
						<td align="right">启用积分：</td>
						<td colspan="2"><INPUT name="type" type="radio" id="jf_use" onClick="javascript:document.all.show1.style.display='';document.all.show2.style.display='';document.all.show3.style.display='';document.all.show4.style.display='';document.all.show5.style.display='';" value="1" runat="server"
								>
&nbsp;启用
<INPUT name="type" type="radio" id="jf_use1" onClick="javascript:document.all.show1.style.display='none';document.all.show2.style.display='none';document.all.show3.style.display='none';document.all.show4.style.display='none';document.all.show5.style.display='none';" value="0" checked runat="server">
&nbsp;禁用</td>
					</tr>
					<tr class="tableTd" id="show1">
						<td align="right"><FONT face="宋体">注册时初始积分：</FONT></td>
						<td colspan="2"><FONT face="宋体"><asp:textbox id="jf_reg" runat="server" Width="82px"></asp:textbox>点积分</FONT></td>
					</tr>
					<tr class="tableTd" id="show2">
						<td align="right"><FONT face="宋体">推荐一个用户注册：</FONT></td>
						<td colspan="2"><FONT face="宋体"><asp:textbox id="jf_tj" runat="server" Width="82px"></asp:textbox>点积分</FONT></td>
					</tr>
					<tr class="tableTd" id="show3">
						<td align="right"><FONT face="宋体">充值：</FONT></td>
						<td colspan="2"><FONT face="宋体"><FONT face="宋体"><FONT face="宋体"><FONT face="宋体">1 元获
											<asp:textbox id="jf1" runat="server" Width="82px"></asp:textbox>点积分</FONT></FONT></FONT></FONT></td>
					</tr>
					<tr class="tableTd" id="show4">
						<td align="right"><FONT face="宋体">兑换：</FONT></td>
						<td colspan="2"><FONT face="宋体"><FONT face="宋体"><FONT face="宋体"><FONT face="宋体"><asp:textbox id="jf2" runat="server" Width="82px"></asp:textbox>点积分换 
											1 元</FONT></FONT></FONT></FONT></td>
					</tr>
					<TR id="show5">
						<TD align="right"><FONT face="宋体">被推荐人付费后推荐人获：</FONT></TD>
						<TD colSpan="2">每 1 元获
							<asp:textbox id="jf_pay" runat="server" Width="82px"></asp:textbox>
							点积分</TD>
					</TR>
					<TR id="show6">
                      <TD align="right">上传一张图片后可获：</TD>
					  <TD colSpan="2"><asp:textbox id="jf_upload" runat="server" Width="82px"></asp:textbox>
					    点积分</TD>
				  </TR>
					<tr>
						<td colSpan="3" class="td_title">IP限制：</td>
					</tr>
					<tr class="tableTd">
						<td align="right"><SPAN class="forumrow">设置IP列表：</SPAN></td>
						<td width="346" align="right"><div align="left">
								<DIV class="photobg1" style="WIDTH: 346px; HEIGHT: 26px">
									<DIV class="newarticle1" id="cl011" style="CURSOR: hand" onClick="secBoard1(1)">禁止登录</DIV>
									<DIV class="newarticle2" id="cl021" style="CURSOR: hand" onClick="secBoard1(2)">允许注册</DIV>
								</DIV>
								<DIV class="photobox" id="Layer11">
									<DIV class="photocolorblock" style="WIDTH: 344px; HEIGHT: 8px"></DIV>
									<FONT face="宋体"></FONT><FONT face="宋体"></FONT>
									<DIV class="fontclear"></DIV>
									<DIV class="newarticlebox">
										<TEXTAREA id="allowip" name="allowip" rows="8" cols="40" runat="server"></TEXTAREA>
									</DIV>
									<DIV class="fontclear"></DIV>
								</DIV>
								<DIV class="photobox" id="Layer21" style="DISPLAY: none">
									<DIV class="photocolorblock" style="WIDTH: 344px; HEIGHT: 8px"></DIV>
									<DIV class="fontclear"></DIV>
									<DIV class="newarticlebox">
										<TEXTAREA id="allowregip" name="allowregip" rows="8" cols="40" runat="server"></TEXTAREA>
									</DIV>
									<DIV class="fontclear"></DIV>
								</DIV>
							</div>						</td>
						<td width="586" align="right"><div align="left">&nbsp;<B>说明</B>：您可以添加多个限制IP，每个IP用<span class="STYLE6">回车</span>分隔，限制IP的书写方式如202.152.12.1就限制了202.152.12.1这个IP的访问，如202.152.12.*就限制了以202.152.12开头的IP访问，同理*.*.*.*则限制了所有IP的访问。在添加多个IP的时候，请注意最后一个IP的后面不要加回车。
							</div>						</td>
					</tr>
					<tr>
						<td colSpan="3" class="td_title">定时操作：<FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
				  </tr>
					<tr class="tableTd">
						<td align="right">给快到期用户发通知邮件：</td>
						<td colspan="2">提前
							<asp:textbox id="time1" runat="server" Width="50px" CssClass="tableTdtext"></asp:textbox>
							天发送</td>
					</tr>
					<tr class="tableTd" style="DISPLAY:none">
						<td align="right">自动删除用户：</td>
						<td colspan="2">删除
							<asp:textbox id="time2" runat="server" Width="50px" CssClass="tableTdtext"></asp:textbox>
							天未登录的用户<br>
							删除
							<asp:textbox id="time3" runat="server" Width="50px" CssClass="tableTdtext"></asp:textbox>
							天已过期的用户</td>
					</tr>
					<tr>
						<td colSpan="3" class="td_title">首页留言板：</td>
					</tr>
					<tr class="tableTd">
						<td align="right">显示方式：</td>
						<td colspan="2"><FONT face="宋体">
								<asp:RadioButtonList id="lyconf" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
									<asp:ListItem Value="0" Selected="True">公开留言</asp:ListItem>
									<asp:ListItem Value="1">隐藏留言</asp:ListItem>
									<asp:ListItem Value="2">审核显示</asp:ListItem>
								</asp:RadioButtonList>
							</FONT>						</td>
					</tr>
					<tr class="tableTd">
                      <td align="right">留言间隔时间：</td>
					  <td colSpan="2">&nbsp;
                          <asp:textbox id="lysec" runat="server"></asp:textbox>
					    秒（每个用户每次发表留言的间隔时间，0为不限制）</td>
				  </tr>
					<tr>
						<td colSpan="3" class="td_title">整合设置：</td>
					</tr>
					<tr class="tableTd">
                      <td align="right">整合注册用安全码：</td>
					  <td colspan="2"><FONT face="宋体">
                        <asp:TextBox id="syskey" runat="server"></asp:TextBox>
					    （任意数字和字母的组合）</FONT></td>
				  </tr>
					<tr class="tableTd">
						<td align="right">启用与《桃源网络硬盘.Net》的整合：</td>
						<td colspan="2"><INPUT id="webdiskzh" type="radio" value="1" name="type1" runat="server" onClick="javascript:document.all.wshow1.style.display='';"
								CHECKED>&nbsp;启用 <INPUT id="webdiskzh1" type="radio" value="0" name="type1" runat="server" onClick="javascript:document.all.wshow1.style.display='none';">&nbsp;禁用</td>
					</tr>
					<tr class="tableTd" id="wshow1">
						<td align="right">《桃源网络硬盘.Net》网址：</td>
						<td colspan="2"><asp:textbox id="webdiskurl" runat="server" ></asp:textbox>
						  （如：http://www.1disk.cn/，打此网址即可打开网络硬盘首页，不包含首页文件名）</td>
					</tr>
					<TR class="tableTd" id="wshow2">
                      <TD align="right">整合标题：</TD>
					  <TD colSpan="2"><asp:textbox id="zhtitle" runat="server"></asp:textbox>
					    （如“××网络硬盘”，为整合后的链接标题）</TD>
				  </TR>
					<tr>
                      <td class="td_title" colSpan="3">初始注册默认数据：</td>
				  </tr>
					
					<tr class="tableTd">
                      <td align="right">个人空间访客留言：</td>
					  <td colSpan="2"><span class="pad">
                        <asp:radiobuttonlist id="allowly" runat="server" Width="224px" RepeatLayout="Flow" RepeatDirection="Horizontal"
									Height="10px">
                          <asp:ListItem Value="1" Selected="True">允许</asp:ListItem>
                          <asp:ListItem Value="0">不允许</asp:ListItem>
                          <asp:ListItem Value="2">需审核</asp:ListItem>
                        </asp:radiobuttonlist>
                      </span></td>
				  </tr>
					<tr class="tableTd">
                      <td align="right">个人空间照片评论：</td>
					  <td colSpan="2"><span class="pad">
					    <asp:radiobuttonlist id="allowpl" runat="server" Width="224px" RepeatLayout="Flow" RepeatDirection="Horizontal"
									Height="10px">
                          <asp:ListItem Value="1" Selected="True">允许</asp:ListItem>
                          <asp:ListItem Value="0">不允许</asp:ListItem>
                          <asp:ListItem Value="2">需审核</asp:ListItem>
                        </asp:radiobuttonlist>
                      </span></td>
				  </tr>
					<tr class="tableTd">
						<td align="right" colSpan="3">
							<div align="center"><span class="px14"><asp:button CssClass="formbutton" id="Button1" runat="server" Width="100px" Text="保存设置" onclick="Button1_Click"></asp:button></div></SPAN></td>
					</tr>
				</table>
		  </div>
		</form>
		<script>
	if (document.all.jf_use.checked)
	{
		document.all.show1.style.display='';document.all.show2.style.display='';document.all.show3.style.display='';document.all.show4.style.display='';document.all.show5.style.display='';
	}
	else
	{
		document.all.show1.style.display='none';document.all.show2.style.display='none';document.all.show3.style.display='none';document.all.show4.style.display='none';document.all.show5.style.display='none';
	}
	if (document.all.webdiskzh.checked)
	{
		document.all.wshow1.style.display='';
	}
	else
	{
		document.all.wshow1.style.display='none';
	}
	document.getElementById("color1").style.backgroundColor =document.getElementById("water7").value;
	document.getElementById("color2").style.backgroundColor =document.getElementById("water8").value;
		</script>
	</body>
</HTML>
