<!--#include file="../Include/Head.asp"-->

<%Call getValidform("sysSet1",1,0,1)%>

<script type="text/javascript">
function GetMsgEmail(form) {
	var Web_GetMsgEmail = document.getElementById("Web_GetMsgEmail");
	if (Web_GetMsgEmail.checked == true) {
		document.getElementById("GetMsgLi").style.display="none";
	}
	else
		document.getElementById("GetMsgLi").style.display="block";
}
function LangNow(form) {
	var Web_Lang = document.getElementById("Web_Lang");
	if (Web_Lang.checked == true) {
		document.getElementById("NowLangLi").style.display="none";
	}
	else
		document.getElementById("NowLangLi").style.display="block";
}
function Thumb(form) {
	var Web_Thumb = document.getElementById("Web_Thumb");
	if (Web_Thumb.checked == true) {
		document.getElementById("Web_ThumbLi").style.display="none";
	}
	else
		document.getElementById("Web_ThumbLi").style.display="block";
}
</script>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="../Main/Right.asp">首页</a></li>
    <li><a href="SysSet1.asp">网站个性设置</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>网站个性设置</span></div>
    <form name="form1" class="sysSet1" method="post" action="?Action=Do">
    <ul class="forminfo">
    
    <li><label>开启英文版</label>
    <input name="Web_Lang" type="checkbox" value="1" id="Web_Lang" <%If Web_Lang then%>checked="checked"<%End If%>  onClick="LangNow(this.form)" /> 
    <i>如果网站有中英文两版则勾选开启</i>
    </li>
    
    <li id="NowLangLi" <%If not Web_Lang then%>class="hidden"<%End If%>><label>选择语言</label>
    <input name="Web_NowLang" type="radio" value="cn" <%If Web_NowLang="cn" then%>checked="checked"<%End If%> /> 
    中文&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input name="Web_NowLang" type="radio" value="en" <%If Web_NowLang="en" then%>checked="checked"<%End If%> />
    English
    <i>这里的中英文主要是后台编辑内容时使用</i>
    </li>
    
    
    <li><label>全站静态化</label>
    <input name="Web_PageType" type="radio" value="2" <%If Web_PageType=2 then%>checked="checked"<%End If%> /> 
    <a href="Img/Link2.png" class="preview" onClick="return linknouse()">开启</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input name="Web_PageType" type="radio" value="1" <%If Web_PageType=1 then%>checked="checked"<%End If%> /> 
    <a href="Img/Link1.png" class="preview" onClick="return linknouse()">关闭</a>
    </li>
    
    <li><label>静态页名称</label>
    <input name="Web_HtmlType" type="radio" value="1" <%If Web_HtmlType=1 then%>checked="checked"<%End If%> /> 
    <a href="Img/Link1.png" class="preview" onClick="return linknouse()">通过ID命名</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input name="Web_HtmlType" type="radio" value="2" <%If Web_HtmlType=2 then%>checked="checked"<%End If%> /> 
    <a href="Img/Link2.png" class="preview" onClick="return linknouse()">通过添加日期命名</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input name="Web_HtmlType" type="radio" value="3" <%If Web_HtmlType=3 then%>checked="checked"<%End If%> /> 
    <a href="Img/Link3.png" class="preview" onClick="return linknouse()">自定义页面名</a>
    </li>
    
    <li><label>前台分页数</label><input name="Web_PageSize" type="text" id="Web_PageSize" class="newinput200" value="<%=Web_PageSize%>" />
    <i>文章分页数,产品分页数,留言分页数,评论分页数,招聘分页数(注意，五个分页数缺一不可！)</i>
    </li>
    
    <li><label>邮件系统</label>
    <input name="Web_GetMsgEmail" type="checkbox" value="1" id="Web_GetMsgEmail" <%If Web_GetMsgEmail=1 then%>checked="checked"<%End If%>  onClick="GetMsgEmail(this.form)" /> 
    网站留言发送到邮箱&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input name="Web_ToMsgEmail" type="checkbox" value="1" id="Web_ToMsgEmail" <%If Web_ToMsgEmail=1 then%>checked="checked"<%End If%> /> 
    通过email回复留言
    <i>请到邮件设置中设置发送邮件账号！</i>
    </li>
	
    <li <%If Web_GetMsgEmail=0 then%>class="hidden"<%End If%> id="GetMsgLi"><label>留言接收邮箱</label><input name="Web_GetEmail" type="text" id="Web_GetEmail" class="newinput200" value="<%=Web_GetEmail%>" /><i></i></li>
	
      
    <li><label>是否生成略缩图</label>
    <input name="Web_Thumb" type="checkbox" value="1" id="Web_Thumb" <%If Web_Thumb then%>checked="checked"<%End If%>  onClick="Thumb(this.form)" /> 
    <i>如果网站有中英文两版则勾选开启</i>
    </li>
    
    <li id="Web_ThumbLi" <%If not Web_Thumb then%>class="hidden"<%End If%>><label>略缩图属性</label>
    <input name="Web_ThumbWidth" type="text" id="Web_ThumbWidth" class="newinput60" value="<%=Web_ThumbWidth%>" />
    <input name="Web_ThumbHeight" type="text" id="Web_ThumbHeight" class="newinput60" value="<%=Web_ThumbHeight%>" />
    <input name="Web_EndFlag" type="text" id="Web_EndFlag" class="newinput200" value="<%=Web_EndFlag%>" /><i></i>
    </li>
    
    
    <li><label>&nbsp;</label>
    <input name="submit" type="submit" class="btn" value="确认保存" />
    </li>
    
    <li id="FormMsgLi" class="hidden"><label>&nbsp;</label><span id="FormMsg" class="linkon"></span></li>
    </ul>
    </form>
    
    </div>

<%
if Request_QueryString("action")="Do" then
	If request_Form("Web_Lang")="1" Then Web_Lang=1 Else Web_Lang=0
	If request_Form("Web_Thumb")="1" Then Web_Thumb=1 Else Web_Thumb=0
	If request_Form("Web_GetMsgEmail")="1" Then Web_GetMsgEmail=1 Else Web_GetMsgEmail=0
	If request_Form("Web_ToMsgEmail")="1" Then Web_ToMsgEmail=1 Else Web_ToMsgEmail=0
	Set Rs=server.createobject("adodb.recordSet")
	Sql="select top 1 * from Jin_Config"
	Rs.open Sql,conn,1,3
	Rs("Web_Lang")=Web_Lang
	Rs("Web_NowLang")=request_Form("Web_NowLang")
	Rs("Web_PageType")=request_Form("Web_PageType")
	Rs("Web_HtmlType")=request_Form("Web_HtmlType")
	Rs("Web_PageSize")=request_Form("Web_PageSize")
	Rs("Web_GetMsgEmail")=Web_GetMsgEmail
	Rs("Web_ToMsgEmail")=Web_ToMsgEmail
	Rs("Web_GetEmail")=request_Form("Web_GetEmail")
	Rs("Web_Thumb")=Web_Thumb
	Rs("Web_ThumbHeight")=request_Form("Web_ThumbHeight")
	Rs("Web_ThumbWidth")=request_Form("Web_ThumbWidth")
	Rs("Web_EndFlag")=request_Form("Web_EndFlag")
	Rs.Update
	Rs.close
	Set Rs=nothing
	Call ShowMsg("设置成功！",2)
end if
%>

<%Call BackFoot()%>

<script type="text/javascript">
/*
function ajaxSubmit(){
	$.ajax({
		type:"POST",
		url:"Ajax.asp",
		data:"action=sysset1&Web_HtmlType="+escape($("#Web_HtmlType").val())+"&Web_PageType="+escape($("#Web_PageType").val())+"&Web_PageSizeA="+escape($("#Web_PageSizeA").val())+"&Web_PageSizeB="+escape($("#Web_PageSizeB").val())+"&Web_PageSizeC="+escape($("#Web_PageSizeC").val())+"&Web_GetMsgEmail="+escape($("#Web_GetMsgEmail").val())+"&Web_ToMsgEmail="+escape($("#Web_ToMsgEmail").val())+"&Web_GetEmail="+escape($("#Web_GetEmail").val()),
		success:function(data){
			if(unescape(data)=="OK"){
				$("#FormMsg").text("保存成功!");
				$("#FormMsgLi").show();
				//alert('成功');
			}
		}
	});
} 
*/
</script> 

