<!--#include file="fy.Function.asp"-->
<!--#include file="../editor/config.asp"-->
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>基本设置</title>
<link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="css/content.css">
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="../fy_inc/js/jquery.js"></script>
<script type="text/javascript" src="../fy_inc/js/lhg/lhgdialog.min.js"></script>
</head>
<body><%
 If Not fycms.ChkAdmin() Then '超级管理员检测
	die "没有权限"
 End If 
	Public Function AutoDomain()
		Dim TempPath
		If Request.ServerVariables("SERVER_PORT") = "80" Then
			AutoDomain = Request.ServerVariables("SERVER_NAME")
		Else
			AutoDomain = Request.ServerVariables("SERVER_NAME") & ":" & Request.ServerVariables("SERVER_PORT")
		End If
			

		 If Instr(UCASE(AutoDomain),"/W3SVC")<>0 Then
			   AutoDomain=Left(AutoDomain,Instr(AutoDomain,"/W3SVC"))
		 End If
		 AutoDomain = "http://" & AutoDomain

	End Function
 
	dim strDir,strAdminDir,InstallDir
	strDir=Trim(request.ServerVariables("SCRIPT_NAME"))
	strAdminDir=split(strDir,"/")(Ubound(split(strDir,"/"))-1) & "/"
	InstallDir=left(strDir,instr(lcase(strDir),"/"&Lcase(strAdminDir)))
	
	If Instr(UCASE(InstallDir),"/W3SVC")<>0 Then
	   InstallDir=Left(InstallDir,Instr(InstallDir,"/W3SVC"))
	End If
 
 

 

Set Rs=server.CreateObject("adodb.recordset") 
Dim Rs,fycms_SysSetting,fycms_OtherSetting,fycms_WatermarkSetting,MakeJs,fycms_Upfile,UploadSetting
Dim ThemeID
ThemeID=rsql(fycms.s("ThemeID"))
Rs.OPen "Select * from Config_fy",Conn,1,3
IF Request.QueryString("Action") = "Save" Then
dim i,SysSetting,OtherSetting,WatermarkSetting
For I=0 To 28
	SysSetting=SysSetting& Replace(request.Form("fycms_SysSetting" & I &""),"^@$@^","") & "^@$@^"
Next
For I=0 To 10
	OtherSetting=OtherSetting& Replace(request.Form("fycms_OtherSetting" & I &""),"^@&@^","") & "^@&@^"
Next
 

For I=0 To 17
	fycms_Upfile=fycms_Upfile&  Replace(request.Form("UploadSetting(" & I &")"),"^@*&*@^","") & "^@*&*@^"
Next
 

 
IF Ubound(Split(fycms_Upfile,"^@*&*@^"))<>18 Or Ubound(Split(SysSetting,"^@$@^"))<>29  Or Ubound(Split(OtherSetting,"^@&@^"))<>11 then
echo "数据获取错误.请不要外部提交!"
response.end
End If
		Rs("fycms_SysSetting")=SysSetting
		Rs("fycms_OtherSetting")=OtherSetting
		Rs("fycms_Upfile")=fycms_Upfile
		Rs("fycms_Theme")=ThemeID
		Rs.Update:Application.Contents.RemoveAll
 		Rs.Close:Set Rs = Nothing	

	Dim Connfile
	Connfile = Connfile &  "<" & "%" & vbCrLf
	Connfile = Connfile &  "Dim editdefault" & vbCrLf
	Connfile = Connfile &"editdefault="""&delAsp(request("editdefault"))&""""& vbCrLf
	Connfile = Connfile &  "%" & ">" 

	Call noSaveFile(Connfile,fycms.actsys&"editor/config.asp")




		response.Redirect "fy.Sys.asp"
  Else
fycms_SysSetting=Split(Rs("fycms_SysSetting"),"^@$@^")
fycms_OtherSetting=Split(Rs("fycms_OtherSetting"),"^@&@^")
UploadSetting=Split(Rs("fycms_Upfile"),"^@*&*@^")
 %>

<style type="text/css">
.dis {
	display:block;
}
.undis {
	display:none;
}
.tab-body {
width:100%;
}
.tab-body .tab-menu {
	width:100%;
	height:30px;
	border-bottom:2px solid #00ABA9;
}
.tab-body .tab-menu span {
	padding:0px 20px;margin-right: 10px;
	height:30px;
	line-height:30px;
	float:left;
}
.tab-body .tab-menu span.currTab, .tab-body .tab-menu span:hover {
	background:#00ABA9;
	color:#FFF;cursor:pointer;
}
</style>
<div class="content"> 
	<div class="breadnav">当前位置：>> 网站信息配置</div>
    

   <form id="LoveShe" name="LoveShe" method="post" action="?action=Save">
<div class="tab-body">
  <div class="tab-menu"><span class="currTab">网站信息</span><span>SEO基础设置</span><span>组件设置</span><span>会员设置</span></div>
  <div class="tab-con">
<div class="divtable"> 
  <dl>
            <dt>网站名称：</dt>
            <dd>
                    <input name="fycms_SysSetting0" type="text" class="tinput" id="SiteName" value="<%= fycms_SysSetting(0) %>" size="40">
            </dd>
         </dl>
        
         <dl>
            <dt>网站标题：</dt>
            <dd>
               <input name="fycms_SysSetting1" type="text" class="tinput" id="SiteTitle" value="<%= fycms_SysSetting(1) %>" size="40">
            </dd>
          </dl>
            
            <dl>
                <dt>网站地址：</dt>
                <dd>
                   <input name="fycms_SysSetting2" type="text" class="tinput" id="SiteURL" value="<%=AutoDomain %>" size="40">
	
(请使用http://标识),后面不要带&quot;/&quot;符号(系统会自动获取) <br>
                </dd>
            </dl>
            
            <dl>
                <dt>安装目录：</dt>
                <dd>
                    <input name="fycms_SysSetting3" type="text" class="tinput" id="SysDir" value="<%= InstallDir %>" size="40">
	
      系统安装的虚拟目录,后面要加上/(系统会自动获取)
                </dd>
            </dl>
            <dl>
                <dt>首页文件名：</dt>
                <dd>
                   <input name="fycms_SysSetting4" type="text" class="tinput" id="SiteIndex" value="<%= fycms_SysSetting(4) %>" size="40">
                </dd>
            </dl>
            <dl>
                <dt>网站Logo地址：</dt>
                <dd>
                 <input name="fycms_SysSetting5" type="text" class="tinput" id="SiteLogo" value="<%= fycms_SysSetting(5) %>" size="40">
                </dd>
            </dl>

            <dl>
                <dt>首页伪静态：</dt>
                <dd>
                   <input <% IF  fycms_SysSetting(8)  = "0" Then echo "Checked" %>  type="radio"  id="fycms_SysSetting8close1" name="fycms_SysSetting8" value="0">
        <label for="fycms_SysSetting8close1"><font color="green">是 &nbsp;</font></label>
            <input  <% IF fycms_SysSetting(8) = "1" Then echo "Checked" %>  id="fycms_SysSetting8close2" type="radio" name="fycms_SysSetting8" value="1">
<label for="fycms_SysSetting8close2"><font color="red">否 &nbsp;</font></label>
   首页分页才有效
                </dd>
            </dl>


            <dl>
                <dt>
                    首页模板： 
                </dt>
                <dd>
                    <input name="fycms_SysSetting9" type="text" class="tinput" id="fycms_SysSetting9"  value="<%= fycms_SysSetting(9) %>" size="40">
   <input id="PicUrls2" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=fycms_SysSetting9');" name="button" type="button"   value="选择模板">

 
                </dd>
            </dl>
            <dl>
                <dt>上传文件大小：</dt>
                <dd>
                   <input name="fycms_SysSetting10" type="text" class="tinput" id="fycms_SysSetting10"  value="<%= fycms_SysSetting(10) %>" size="40">
      单位(KB)
                </dd>
            </dl>
            <dl>
                <dt>上传文件类型：</dt>
                <dd>
                  <input name="fycms_SysSetting11" type="text" class="tinput" id="fycms_SysSetting11"  value="<%= fycms_SysSetting(11) %>" size="40">
      请用“/”分开
                </dd>
            </dl>
<dl>
                <dt>备案号：</dt>
                <dd>
                  <input name="fycms_SysSetting26" type="text" class="tinput" id="fycms_SysSetting26"  value="<%= fycms_SysSetting(26) %>" size="40">
                </dd>
            </dl>


	<dl>
                <dt>站长姓名：</dt>
                <dd>
                  <input name="fycms_SysSetting6" type="text" class="tinput" id="WebmasterName"  value="<%= fycms_SysSetting(6) %>" size="40">
      
                </dd>
            </dl>

	<dl>
                <dt>站长信箱：</dt>
                <dd>
                  <input name="fycms_SysSetting7" type="text" class="tinput" id="WebmasterMail"  value="<%= fycms_SysSetting(7) %>" size="40">
       
                </dd>
            </dl>


		 



            <dl>
                <dt>模板文件夹：</dt>
                <dd>
                   <input name="fycms_SysSetting19" type="text" class="tinput" id="fycms_SysSetting19"  value="<%= fycms_SysSetting(19) %>" size="40">
                </dd>
            </dl>
            <dl>
                <dt>默认编辑器：</dt>
                <dd>
                 <input name="editdefault" id="editdefault" type="text" class="tinput" value="<%=editdefault%>" size="20">
 	<select   name="ArticleSorts"  onchange="document.LoveShe.editdefault.value=this.value">
		<option value='' >请选择</option>	
		<option value='ckeditor' <%If editdefault="ckeditor" Then echo "selected"%>>ckeditor</option>
		<option value='kindeditor'  <%If editdefault="kindeditor" Then echo "selected"%>>kindeditor</option>
		<option value='ueditor'  <%If editdefault="ueditor" Then echo "selected"%>>ueditor</option>
		</select>
                </dd>
            </dl>
            
            <dl>
                <dt>默认主题：</dt>
                <dd>
                   <select name="ThemeID" > 	

<%

	Dim objXmlFile,strXmlFile
	Dim fso, f, f1, fc, s, t
	Set fso = CreateObject(fycms.FsoName)
  	Set f = fso.GetFolder(server.MapPath(InstallDir)&"\" & fycms.SysThemePath&"\")
	Set fc = f.SubFolders


	Dim XML,ThemeName
	For Each f1 in fc
 		If fso.FileExists(server.MapPath(InstallDir)&"\" & fycms.SysThemePath&"\" & f1.name & "/" & "theme.xml") Then
   			Set XML=fycms.NoAppGetXMLFromFile(server.MapPath(InstallDir)&"\" & fycms.SysThemePath&"\"  & f1.name & "/" & "theme.xml")
			If IsObject(XML) And XML.readyState=4 Then
 				If XML.parseError.errorCode <> 0 Then 
				Else 
				ThemeID=XML.documentElement.selectSingleNode("id").text
				ThemeName=XML.documentElement.selectSingleNode("name").text
  				End If 
			Set XML=Nothing
		  End If 
   	   End If
  	 
 
		If UCase(ThemeID)<>UCase(f1.name) Then
			  echo "     <option value="""&f1.name&""">该主题错误"&f1.name&"</option>"
		Else
			 
			  
			If UCase(ThemeID)=UCase(fycms.NowTheme) Then
				  echo "     <option selected value="""&f1.name&""">"&ThemeName&"</option>"
			Else 
				  echo "     <option value="""&f1.name&""">"&ThemeName&"</option>"
			End If

		End If 
 	Next
	Set fso = nothing

%>

</select>



                </dd>
            </dl>
  <dl>
                <dt>远程图片保存目录：</dt>
                <dd>
                  <input name="fycms_OtherSetting6" type="text" class="tinput" id="fycms_OtherSetting6" value="<%=fycms_OtherSetting(6)%>" size="18">
                </dd>
            </dl>
            <dl>
                <dt>是否以日期保存：</dt>
                <dd>
                  <input <% IF fycms_OtherSetting(7) = "0" Then echo "Checked" %>  type="radio"  id="fycms_OtherSetting7" name="fycms_OtherSetting7" value="0"><label for="fycms_OtherSetting7">是 &nbsp;</label>
          <input  <% IF fycms_OtherSetting(7) = "1" Then echo "Checked" %>  id="fycms_OtherSetting7)2" type="radio" name="fycms_OtherSetting7" value="1"><label for="fycms_OtherSetting7)2">否 &nbsp;</label>
                </dd>
            </dl>
            <dl>
                <dt>生成方式：</dt>
                <dd>
                  <input <% IF fycms_OtherSetting(9) = "0" Then echo "Checked" %>  type="radio"  id="fycms_OtherSetting9" name="fycms_OtherSetting9" value="0"><label for="fycms_OtherSetting9">绝对路径 &nbsp;</label>
          <input  <% IF fycms_OtherSetting(9) = "1" Then echo "Checked" %>  id="fycms_OtherSetting9)2" type="radio" name="fycms_OtherSetting9" value="1"><label for="fycms_OtherSetting9)2">根相对路径 (相对根目录) &nbsp;</label>
		如果绑定了子域名,请选择绝对路径
                </dd>
            </dl>


          

  
    </div>

  </div>
  <div class="tab-con undis">
  <div class="divtable"> 

            <dl>
                <dt>网站关键词：</dt>
                <dd>
                  <textarea name="fycms_OtherSetting1" cols="50" rows="5"><%=fycms_OtherSetting(1)%></textarea>
                </dd>
            </dl>
            <dl>
                <dt>网站描述：</dt>
                <dd>
                  <textarea name="fycms_OtherSetting2" cols="50" rows="5"><%=fycms_OtherSetting(2)%></textarea>
                </dd>
            </dl>


      <dl>
                <dt>版权信息：</dt>
                <dd>
                  <textarea name="fycms_OtherSetting0" cols="50" rows="5"><%=fycms_OtherSetting(0)%></textarea>
                </dd>
            </dl>

 



    

            <dl>
                <dt>统计代码：</dt>
                <dd>
                  <textarea name="fycms_SysSetting27" cols="50" rows="5"><%
If fycms_SysSetting(27) <> "" Then echo fycms.Htmljapan(Server.HTMLEncode(fycms_SysSetting(27)))

 %></textarea>
      添加你的统计代码
                </dd>
            </dl>
    </div>

  </div>
  <div class="tab-con undis">
    <div class="divtable"> 
<dl>
                <dt>SMTP服务器地址:</dt>
                <dd>
                  <input name="fycms_OtherSetting3" type="text" class="tinput" value="<%=fycms_OtherSetting(3)%>" size="18">
 
	  用来发送邮件的SMTP服务器如果你不清楚此参数含义，请联系你的空间商
                </dd>
            </dl>
            <dl>
                <dt>SMTP登录用户名：</dt>
                <dd>
                  <input name="fycms_OtherSetting4" type="text" class="tinput" value="<%=fycms_OtherSetting(4)%>" size="18">
       当你的服务器需要SMTP身份验证时还需设置此参数
                </dd>
            </dl>
            <dl>
                <dt>SMTP登录密码：</dt>
                <dd>
                  <input name="fycms_OtherSetting5" type="PassWord" class="tinput"  value="<%=fycms_OtherSetting(5)%>" size="20">
      当你的服务器需要SMTP身份验证时还需设置此参数
                </dd>
            </dl>
    <dl>
                <dt>FSO组件的名称：</dt>
                <dd>
                  <input name="fycms_OtherSetting10" type="text" class="tinput" id="fycms_OtherSetting10" value="<%=fycms_OtherSetting(10)%>" size="30">
                </dd>
            </dl>
          

                   <div id="Issubport0" style="display:none">请选择EMAIL组件！</div>
<div id="Issubport999" style="display:none"></div>
 <% Dim InstalledObjects(12)
InstalledObjects(1) = "JMail.Message"				'JMail 4.3
InstalledObjects(2) = "CDONTS.NewMail"				'CDONTS
InstalledObjects(3) = "Persits.MailSender"			'ASPEMAIL
'-----------------------
InstalledObjects(4) = "Adodb.Stream"				'Adodb.Stream
InstalledObjects(5) = "Persits.Upload"				'Aspupload3.0
InstalledObjects(6) = "SoftArtisans.FileUp"			'SA-FileUp 4.0
InstalledObjects(7) = "DvFile.Upload"				'DvFile-Up V1.0
'-----------------------
InstalledObjects(9) = "CreatePreviewImage.cGvbox"	'CreatePreviewImage
InstalledObjects(10) = "Persits.Jpeg"				'AspJpeg
InstalledObjects(11) = "SoftArtisans.ImageGen"		'SoftArtisans ImgWriter V1.21
InstalledObjects(12) = "sjCatSoft.Thumbnail"		'sjCatSoft.Thumbnail V2.6

For i=1 to 12
	echo "<div id=""Issubport"&i&""" style=""display:none"">"
	If IsObjInstalled(InstalledObjects(i)) Then echo InstalledObjects(i)&":<font color=red><b>√</b>服务器支持!</font>" Else echo InstalledObjects(i)&"<b>×</b>服务器不支持!" &vbcrlf
	echo "</div>"
Next


Function IsObjInstalled(strClassString)
	On Error Resume Next
	IsObjInstalled = False
	Err = 0
	Dim xTestObj
	Set xTestObj = fycms.iCreateObject(strClassString)
	If Err = 0 Then IsObjInstalled = True
	If Err = -2147352567 Then IsObjInstalled = True
	Set xTestObj = Nothing
	Err = 0
End Function
 
 
 %>
 
 
<iframe width="260" height="165" id="colourPalette" src="include/selcolor.htm" style="visibility:hidden; position: absolute; left: 0px; top: 0px;border:1px gray solid" frameborder="0" scrolling="no" ></iframe>
 <SCRIPT LANGUAGE="JavaScript">

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";
	}
	}
}
//Colour pallete top offset
function getOffsetTop(elm) {
	var mOffsetTop = elm.offsetTop;
	var mOffsetParent = elm.offsetParent;
	while(mOffsetParent){
		mOffsetTop += mOffsetParent.offsetTop;
		mOffsetParent = mOffsetParent.offsetParent;
	}
	return mOffsetTop;
}

//Colour pallete left offset
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){ColorValue.value = color;}
	if (ColorImg){ColorImg.style.backgroundColor = color;}
	document.getElementById("colourPalette").style.visibility="hidden";
}



<!--
function chkselect(s,divid)
{
var divname='Issubport';
var chkreport;
	s=Number(s)
	if (divid=="know1")
	{
	divname=divname+s;
	}
	if (divid=="know2")
	{
	s+=4;
	if (s==1003){s=999;}
	divname=divname+s;
	}
	if (divid=="know3")
	{
	s+=9;
	if (s==1008){s=999;}
	divname=divname+s;
	}

	if (divid=="know4")
	{
	s+=9;
	if (s==1008){s=999;}
	divname=divname+s;
	}


document.getElementById(divid).innerHTML=divname;
 chkreport=document.getElementById(divname).innerHTML;
document.getElementById(divid).innerHTML=chkreport;
}
//-->
</SCRIPT>
   
 <input type="hidden" name="UploadSetting(2)" id="UploadSetting(2)">














			<dl>
                <dt>生成缩略图组件：</dt>
                <dd>
    
 <select name="UploadSetting(3)" id="UploadSetting(3)" onChange="chkselect(options[selectedIndex].value,'know3');">
	<option value="999">关闭
	<option value="0">CreatePreviewImage组件
	<option value="1">AspJpeg组件
	<option value="2">SA-ImgWriter组件
	</select><div id="know3"></div>	
                </dd>
            </dl>
            <dl>
                <dt>缩略图片大小：</dt>
                <dd>
                  宽度：<INPUT type="text" class="tinput" NAME="UploadSetting(14)" size=10 value="<%=UploadSetting(14)%>"> 象素
		高度：<INPUT type="text" class="tinput" NAME="UploadSetting(15)" size=10 value="<%=UploadSetting(15)%>"> 象素
                </dd>
            </dl>
            <dl>
                <dt>缩略图规则选项：</dt>
                <dd>
                  <SELECT name="UploadSetting(16)" id="UploadSetting(16)">
		<OPTION value=0>固定</OPTION>
		<OPTION value=1>等比例缩小</OPTION>
		</SELECT>
                </dd>
            </dl>
            <dl>
                <dt>图片水印组件：</dt>
                <dd>
                  <select name="UploadSetting(17)" id="UploadSetting(17)" onChange="chkselect(options[selectedIndex].value,'know4');">
	<option value="999">关闭
 	<option value="1">AspJpeg组件
	<option value="2">SA-ImgWriter组件
	</select><div id="know4"></div>
                </dd>
            </dl>
            <dl>
                <dt>图片水印设置：</dt>
                <dd>
                  <SELECT name="UploadSetting(1)" id="UploadSetting(1)">
		<OPTION value="0">关闭水印效果</OPTION>
		<OPTION value="1">水印文字效果</OPTION>
		<OPTION value="2">水印图片效果</OPTION>
		</SELECT>	
                </dd>
            </dl>
            <dl>
                <dt>图片水印文字：</dt>
                <dd>
                  <INPUT type="text" class="tinput" NAME="UploadSetting(4)" size=40 value="<%=UploadSetting(4)%>">（可为空或0）
                </dd>
            </dl>
            <dl>
                <dt>水印字体大小：</dt>
                <dd>
                  <INPUT type="text" class="tinput" NAME="UploadSetting(5)" size=10 value="<%=UploadSetting(5)%>"> <b>px</b>
                </dd>
            </dl>
            <dl>
                <dt>水印字体颜色：</dt>
                <dd>
                  	<input type="hidden" name="UploadSetting(6)" id="UploadSetting(6)" value="<%=UploadSetting(6)%>">
	<img border=0 src="Images/rect.gif" style="cursor:pointer;background-Color:<%=UploadSetting(6)%>;" onClick="Getcolor(this,'UploadSetting(6)');" title="选取颜色!">
                </dd>
            </dl>
            <dl>
                <dt>水印字体：</dt>
                <dd>
                  <SELECT name="UploadSetting(7)" id="UploadSetting(7)">
	<option value="宋体">宋体</option>
	<option value="楷体">楷体</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>
                </dd>
            </dl>
            <dl>
                <dt>水印字体是否粗体：</dt>
                <dd>
                  <SELECT name="UploadSetting(8)" id="UploadSetting(8)">
		<OPTION value=0>否</OPTION>
		<OPTION value=1>是</OPTION>
		</SELECT>	
                </dd>
            </dl>
            <dl>
                <dt>上水印LOGO图片：<br></dt>
                <dd>
                  <INPUT type="text" class="tinput" NAME="UploadSetting(9)" size=40 value="<%=UploadSetting(9)%>">填写LOGO的图片相对路径（可为空或0）：
                </dd>
            </dl>
 


			<dl>
                <dt>水印透明度：</dt>
                <dd>
                 <INPUT type="text" class="tinput" NAME="UploadSetting(10)" size=10 value="<%=UploadSetting(10)%>"> 如60%请填写0.6
                </dd>
            </dl>


			<dl>
                <dt>水印图片去除底色：</dt>
                <dd>
                 <INPUT type="text" class="tinput" NAME="UploadSetting(0)" ID="UploadSetting(0)" size=10 value="<%=UploadSetting(0)%>"> 
	<img border=0 src="Images/rect.gif" style="cursor:pointer;background-Color:<%=UploadSetting(0)%>;" onClick="Getcolor(this,'UploadSetting(0)');" title="选取颜色!">	保留为空则水印图片不去除底色
                </dd>
            </dl>
			<dl>
                <dt>水印文字图片长宽：</dt>
                <dd>
                 宽度：<INPUT type="text" class="tinput" NAME="UploadSetting(11)" size=10 value="<%=UploadSetting(11)%>"> 象素
	高度：<INPUT type="text" class="tinput" NAME="UploadSetting(12)" size=10 value="<%=UploadSetting(12)%>"> 象素 （如水印图片的宽度和高度）
                </dd>
            </dl>
			<dl>
                <dt>水印LOGO坐标：</dt>
                <dd>
                 <SELECT NAME="UploadSetting(13)" id="UploadSetting(13)">
		<option value="0">左上</option>
		<option value="1">左下</option>
		<option value="2">居中</option>
		<option value="3">右上</option>
		<option value="4">右下</option>
	</SELECT>
                </dd>
            </dl>
 

    </div>
  </div>
  <div class="tab-con undis">
    <div class="divtable"> 
 <dl>
                <dt>会员系统状态：</dt>
                <dd>
                  <input <% IF  fycms_SysSetting(12)  = "0" Then echo "Checked" %>  type="radio"  id="Userclose1" name="fycms_SysSetting12" value="0">
        <label for="Userclose1"><font color="green">正常 &nbsp;</font></label>
            <input  <% IF fycms_SysSetting(12) = "1" Then echo "Checked" %>  id="Userclose2" type="radio" name="fycms_SysSetting12" value="1">
<label for="Userclose2"><font color="red">关闭 &nbsp;</font></label>
                </dd>
            </dl>
            <dl>
                <dt>是否允许注册：</dt>
                <dd>
                  <input <% IF fycms_SysSetting(13) = "0" Then echo "Checked" %>  type="radio"  id="UserReg1" name="fycms_SysSetting13" value="0">
        <label for="UserReg1"><font color="green">正常 &nbsp;</font></label>
            <input  <% IF fycms_SysSetting(13) = "1" Then echo "Checked" %>  id="UserReg2" type="radio" name="fycms_SysSetting13" value="1">
<label for="UserReg2"><font color="red">关闭 &nbsp;</font></label>
                </dd>
            </dl>
            <dl>
                <dt>是否启用验证码：</dt>
                <dd>
                  <input <% IF fycms_SysSetting(14) = "0" Then echo "Checked" %>  type="radio"  id="RegCode" name="fycms_SysSetting14" value="0"><label for="RegCode">是 &nbsp;</label>
          <input  <% IF fycms_SysSetting(14) = "1" Then echo "Checked" %>  id="RegCode2" type="radio" name="fycms_SysSetting14" value="1"><label for="RegCode2">否 &nbsp;</label>（会员注册验证码开启和关闭）
                </dd>
            </dl>
            <dl>
                <dt>会员登录验证码：</dt>
                <dd>
                  <input <% IF fycms_SysSetting(15) = "0" Then echo "Checked" %>  type="radio"  id="LoginCode" name="fycms_SysSetting15" value="0"><label for="LoginCode">是 &nbsp;</label>
          <input  <% IF fycms_SysSetting(15) = "1" Then echo "Checked" %>  id="LoginCode2" type="radio" name="fycms_SysSetting15" value="1"><label for="LoginCode2">否 &nbsp;</label>（会员登陆验证码开启和关闭）
                </dd>
            </dl>
            <dl>
                <dt>注册模版：</dt>
                <dd>
                  
	  <input name="fycms_SysSetting17" type="text" class="tinput" id="fycms_SysSetting17"  value="<%= fycms_SysSetting(17) %>" size="40">
<input id="PicUrls3" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=fycms_SysSetting17');" name="button" type="button"   value="选择模板">



                </dd>
            </dl>
            <dl>
                <dt>会员JS模版：</dt>
                <dd>
                   <input name="fycms_SysSetting28" type="text" class="tinput" id="fycms_SysSetting28"  value="<%= fycms_SysSetting(28) %>" size="40">
<input id="PicUrls3" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=fycms_SysSetting28');" name="button" type="button"   value="选择模板">
                </dd>
            </dl>
            <dl>
                <dt>注册页模板：</dt>
                <dd>
                   <input name="fycms_SysSetting18" type="text" class="tinput" id="fycms_SysSetting18"  value="<%= fycms_SysSetting(18) %>" size="40">
<input id="PicUrls3" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=fycms_SysSetting18');" name="button" type="button"   value="选择模板">
                </dd>
            </dl>
            <dl>
                <dt>禁止注册的用户名：</dt>
                <dd>
                  <textarea name="fycms_SysSetting16" cols="50" rows="3" id="fycms_SysSetting16"><%=fycms_SysSetting(16) %></textarea>
            
     禁止注册用户名，请用“|”符号分隔
                </dd>
            </dl>
            <dl>
                <dt>积分与点券兑换率：</dt>
                <dd>
                  <input name="fycms_SysSetting20" type="text" class="tinput" id="fycms_SysSetting20"  value="<%= fycms_SysSetting(20) %>" size="40">
                </dd>
            </dl>
            <dl>
                <dt>积分与有效期兑换率：</dt>
                <dd>
                  <input name="fycms_SysSetting21" type="text" class="tinput" id="fycms_SysSetting21"  value="<%= fycms_SysSetting(21) %>" size="40">
                </dd>
            </dl>
            <dl>
                <dt>资金与点券兑换率：</dt>
                <dd>
                  <input name="fycms_SysSetting22" type="text" class="tinput" id="fycms_SysSetting22"  value="<%= fycms_SysSetting(22) %>" size="40">
                </dd>
            </dl>

            <dl>
                <dt>资金与有效期兑换率：</dt>
                <dd>
                  <input name="fycms_SysSetting23" type="text" class="tinput" id="fycms_SysSetting23"  value="<%= fycms_SysSetting(23) %>" size="40">
                </dd>
            </dl>
            <dl>
                <dt>点券设置：</dt>
                <dd>
                  <input name="fycms_SysSetting24" type="text" class="tinput" id="fycms_SysSetting24"  value="<%= fycms_SysSetting(24) %>" size="40">
                </dd>
            </dl>
            <dl>
                <dt><%= fycms_SysSetting(24) %>单位：</dt>
                <dd>
                  <input name="fycms_SysSetting25" type="text" class="tinput" id="fycms_SysSetting25"  value="<%= fycms_SysSetting(25) %>" size="40">
                </dd>
            </dl>
  <dl>
                <dt>过滤字符：</dt>
                <dd>
                  <textarea name="fycms_OtherSetting8" cols="50" rows="5"><%=fycms_OtherSetting(8)%></textarea>
 
      用户名用“|”符号分隔
                </dd>
            </dl>
    </div>
  </div>

</div>


    <div class="divtable"> 
        
        
        
           
           
            
            
          
          


            <dl>
            <dt class="vhid">提交：</dt>
            <dd>
                


	<input type="button" class="btn btn_primary" onclick="CheckForm()"  name="Submit1" value="  保存  " />
      <input type="reset" class="btn" name="Submit2" value="  重置  ">


            </dd>
         </dl>
        
    </div>
    </form>


</div>
 <% end if %>
 
<SCRIPT language=javascript>
<!--

function CheckForm()
{ var form=document.LoveShe;
   if (form.SiteName.value=='')
    { alert("请输入网站名称名称!");   
	  form.SiteName.focus();    
	   return false;
    }
	
if (form.SiteTitle.value=='')
    { alert("请输入网站标题!");   
	  form.SiteTitle.focus();    
	   return false;
    }	
	
if (form.SiteURL.value=='')
    { alert("请输入网站地址!");   
	  form.SiteURL.focus();    
	   return false;
    }	
		
if (form.SysDir.value=='')
    { alert("请输入安装目录!");   
	  form.SysDir.focus();    
	   return false;
    }	
			
	
if (form.SiteIndex.value=='')
    { alert("请输入首页文件名!");   
	  form.SiteIndex.focus();    
	   return false;
    }	
			
		form.Submit1.value="正在提交数据,请稍等...";
		form.Submit1.disabled=true;	
		form.Submit2.disabled=true;	
	    form.submit();
        return true;
}
 //选项卡-->
	$('.tab-menu > span').die('click').live('click',function(){
			$('.tab-menu > span').removeClass('currTab');
			$(this).addClass('currTab');
			$('.tab-menu > span').each(function(index, element) {
                if($(this).hasClass('currTab')){
					$('.tab-con').hide();
					$('.tab-con:eq('+index+')').show();	
				}
            });
	});
	
	$('.btn-search').die('click').live('click',function(){
			$('.s-field').toggle('slow');
		}) 
//-->
</SCRIPT>

</body>
</html>
