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

<%Call getValidform("sysSet",1,0,1)%>
<%Call KindeditorPic("editorPic","SysSet",1,"upload","Web_Logo")%>

<script>
$("#Web_Switch").click(function(){ 
var ischeck=$(this).attr("checked"); 
if(ischeck==undefined){ 
//清除输入框 
$("#CloseReasonLi").hide();
}else{ 
//给输入框赋值 
$("#CloseReasonLi").show();
} 
}); 
</script>
<script type="text/javascript">
function result(form) {
	var Web_Switch = document.getElementById("Web_Switch");
	if (Web_Switch.checked == true) {
		document.getElementById("CloseReasonLi").style.display="none";
	}
	else
		document.getElementById("CloseReasonLi").style.display="block";
}
</script>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="../Main/Right.asp">首页</a></li>
    <li><a href="SysSet.asp">基本信息设置</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息设置</span></div>
    <form name="form1" class="sysSet" method="post" action="?Action=Do">
    <ul class="forminfo">
    
    <li><label>网站名称</label><input name="Web_Name" id="Web_Name" type="text" class="newinput450" value="<%=Web_Name%>" /></li>
    
    <li><label>网站标题</label><input name="Web_Title" id="Web_Title" type="text" class="newinput450" value="<%=Web_Title%>" /></li>
    
    <li><label>网站网址</label><input name="Web_Url" id="Web_Url" type="text" class="newinput450" value="<%=Web_Url%>" /></li>
    
    <li><label>网站LOGO</label><input name="Web_Logo" id="Web_Logo" type="text" class="newinput450" value="<%=Web_Logo%>" /><i><a href="javascript:;" id="upload">上传</a></i> </li>
    
    <li><label>网站状态</label>
    <input type="checkbox" id="Web_Switch" name="Web_Switch" value="1" <%If Web_Switch then%>checked<%End If%> onClick="result(this.form)">
    <i>勾选表示关闭网站！</i>
    </li>
    
    <li id="CloseReasonLi" <%If not Web_Switch then%>class="hidden"<%End If%>><label>网站关闭原因</label><textarea name="Web_CloseReason" id="Web_CloseReason" cols="" rows="" class="textinput" style="height:55px;"><%=Web_CloseReason%></textarea></li>
    
    <li><label>网站关键字</label><input name="Web_Keywords" id="Web_Keywords" type="text" class="newinput450" value="<%=Web_Keywords%>" style="width:524px;" /><i>多个关键字用,隔开</i></li>
    
    <li><label class="left">网站描述</label><textarea name="Web_Description" id="Web_Description" cols="" rows="" class="textinput" style="height:55px;"><%=Web_Description%></textarea></li>
    
    <li><label class="left">底部信息</label><textarea name="Web_Foottext" id="Web_Foottext" cols="" rows="" class="textinput" style="height:90px;"><%=Web_Foottext%></textarea></li>
    
    <li><label>网站备案号</label><input name="Web_Beian" id="Web_Beian" type="text" class="newinput450" value="<%=Web_Beian%>" /></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_Switch")="1" Then Web_Switch=1 Else Web_Switch=0
	Web_Logo = sub_str(Trim(request_Form("Web_Logo")),"Upload")
	Set Rs=server.createobject("adodb.recordSet")
	Sql="select top 1 * from Jin_Config"
	Rs.open Sql,conn,1,3
	Rs("Web_Name")=request_Form("Web_Name")
	Rs("Web_Title")=request_Form("Web_Title")
	Rs("Web_Url")=request_Form("Web_Url")
	Rs("Web_Logo")=Web_Logo
	Rs("Web_Keywords")=replace(replace(request_Form("Web_Keywords"),"，",",")," ",",")
	Rs("Web_Switch")=Web_Switch
	Rs("Web_CloseReason")=request_Form("Web_CloseReason")
	Rs("Web_Description")=request_Form("Web_Description")
	Rs("Web_Foottext")=request_Form("Web_Foottext")
	Rs("Web_Beian")=request_Form("Web_Beian")
	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=sysset&Web_Name="+escape($("#Web_Name").val())+"&Web_Url="+escape($("#Web_Url").val())+"&Web_Logo="+escape($("#Web_Logo").val())+"&Web_Keyword="+escape($("#Web_Keyword").val())+"&Web_Switch="+escape($("#Web_Switch").val())+"&Web_Description="+escape($("#Web_Description").val())+"&Web_Foottext="+escape($("#Web_Foottext").val()),
		success:function(data){
			if(unescape(data)=="OK"){
				$("#FormMsg").text("保存成功!");
				$("#FormMsgLi").show();
				//alert('成功');
			}
		}
	});
} 
*/
</script> 

