<%if Session("weight")<>5 then 
Response.Redirect "error.asp?cause=4"
 end if
%>
<HTML><HEAD><TITLE>系统参数</TITLE>
<LINK href="css/css.css" rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2505.0" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<object runat=server id=conn1 progid="adodb.connection"></object>
<%application.Lock
conn1.Open Application("p_jyzx")
Application.UnLock
%>
<%set rs=server.CreateObject ("ADODB.recordset")
 sql="select * from my_system where system_id=1"
 rs.Open sql,conn1,3
 if rs.RecordCount<>0 then
	'photo_num=rs("photo_num")
	'online_num=rs("online_num")
	total=rs("total")
	'search_weight=rs("search_weight")
 end if
%>
<%

set rs=server.CreateObject ("ADODB.recordset")
 sql="select * from online"
 rs.Open sql,conn1,3
 online_user_num=rs.RecordCount
 
%>
<BR><BR><BR>
<FORM action=update_system.asp method=post id=form1 name=inputform onsubmit=return(checkform())>

<table  align=center ><tbody>
 <tr><td  colspan=4>
	系统参数设置：*号表示可以修改的参数
 </td>
            <td></td>
</tr>
  
 <tr>
 <td>
 <B><FONT color=#df372f>『*访客总数』</FONT></B>
 </td>
 <td><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=10 size=10 
name=total value=<%=total%> ></td>
  <td>
 <B><FONT color=#df372f>『当前在线人数』</FONT></B>
 </td>
 <td><FONT color=#df372f><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=10 size=10 
name=online_num value=<%=Application("online_num")%> ></FONT></td>
            <td></td>
 </tr>

<tr>
 <td>
 <B><FONT color=#df372f>『在线用户人数』</FONT></B>
 </td>
 <td><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=10 size=10 
name=user_num value=<%=online_user_num%> ></td>
  <td> 
 </td>
 <td></td>
            <td></td>
 </tr>
 
<tr>
 
  <td>
 <B><FONT color=#df372f>『*网站的根目录』</FONT></B>
 </td>
 <td  colspan=3><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=80 size=40
name=web_address  value=<%=Application("web_address")%> >&nbsp;</td>
 
            <td></td>
 </tr>
<tr>
 <td>
 <B><FONT color=#df372f>『高级搜索对普通用户』</FONT></B>
 </td>
 <td>
 <%if Application("search_weight")=1 then%>
 
 <SELECT id=select1 name=search_weight onmouseover="this.style.backgroundColor = '#FFCC00'" 
onmouseout="this.style.backgroundColor = '#66CC33'" >

<OPTION value=1  selected>开放</OPTION>
<OPTION value=0 >不开放</OPTION>
</SELECT>
<%else%>
<SELECT id=select2 name=search_weight  >
<OPTION value=1  >开放</OPTION>
<OPTION value=0 selected>不开放</OPTION>
</SELECT>
<%end if%>

 
 </td>
  <td>
 
 </td>
 <td></td>
            <td></td>
 </tr>
 <tr>
 <td>
 <B><FONT color=#df372f>『ECall对普通用户』</FONT></B>
 </td>
 <td>
 <%if Application("webqq_weight")=1 then%>
 
 <SELECT id=select1 name=webqq_weight onmouseover="this.style.backgroundColor = '#FFCC00'" 
onmouseout="this.style.backgroundColor = '#66CC33'" >

<OPTION value=1  selected>开放</OPTION>
<OPTION value=0 >不开放</OPTION>
</SELECT>
<%else%>
<SELECT id=select2 name=webqq_weight  >
<OPTION value=1  >开放</OPTION>
<OPTION value=0 selected>不开放</OPTION>
</SELECT>
<%end if%>

 
 </td>
  <td>
 
 </td>
 <td></td>
            <td></td>
 </tr>
 
<tr>
 <td>
 <B><FONT color=#df372f>『普通用户每天允许浏览档案次数』</FONT></B>
 </td>
 <td  colspan=4>
 <%if Application("oneday_visit")=5 then%>
 
 <SELECT id=select1 name=oneday_visit onmouseover="this.style.backgroundColor = '#FFCC00'" 
onmouseout="this.style.backgroundColor = '#66CC33'" >

<OPTION value=5  selected>限制5次</OPTION>
<OPTION value=10  >限制10次</OPTION>
<OPTION value=100 >不限制</OPTION>
</SELECT>
<%elseif Application("oneday_visit")=10 then%>
<SELECT id=select1 name=oneday_visit onmouseover="this.style.backgroundColor = '#FFCC00'" 
onmouseout="this.style.backgroundColor = '#66CC33'" >

<OPTION value=5  >限制5次</OPTION>
<OPTION value=10  selected>限制10次</OPTION>
<OPTION value=100 >不限制</OPTION>
</SELECT>
<%else%>
<SELECT id=select2 name=oneday_visit  >
<OPTION value=5  >限制5次</OPTION>
<OPTION value=10  >限制10次</OPTION>
<OPTION value=100 selected>不限制</OPTION>
</SELECT>
<%end if%>

 
 </td>
 
 </tr>
 
 <tr>
 <td>
 <B><FONT color=#df372f>『*每次上站魅力增加点数』</FONT></B>
 </td>
 <td><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=5 size=10 
name=counter_value value=<%=Application("counter_value")%> ></td>
  <td>
 <B><FONT color=#df372f>『*资料被访问每次魅力增加点数』</FONT></B>
 </td>
 <td><FONT color=#df372f><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=5 size=10 
name=visited_counter_value  value=<%=Application("visited_counter_value")%> ></FONT></td>
            <td></td>
 </tr>
<tr>
 <td>
 <B><FONT color=#df372f>『*每发送一封信魅力增加点数』</FONT></B>
 </td>
 <td><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=5 size=10 
name=send_letter_value value=<%=Application("send_letter_value")%> ></td>
  <td>
 <B><FONT color=#df372f>『*每收到一封信魅力增加点数』</FONT></B>
 </td>
 <td><FONT color=#df372f><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=5 size=10 
name=receive_letter_value  value=<%=Application("receive_letter_value")%> ></FONT></td>
            <td></td>
 </tr>
 
<tr><td   colspan=2 align=center>
	<INPUT type="submit" value="更 新" id=submit1 name=submit1 onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'" >
</td>
<td  colspan=2 align=center>
<INPUT type="reset" value="取 消" id=reset1 name=reset1 onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; BORDER-LEFT: #000080 1px solid; COLOR: #000000; BORDER-BOTTOM: #000080 1px solid; BACKGROUND-COLOR: #66cc33; TEXT-DECORATION: blink" 
onmouseout="this.style.backgroundColor = '#66CC33'">
 </td>
            <td></td>
</tr>
 </tbody>
</table>


</FORM>
<% temptstr="var sss="&Application("SMTPServer_passwd")
  Response.Write "<SCRIPT LANGUAGE=javascript>"&vbcr
  Response.Write temptstr&vbcr
  Response.Write "</SCRIPT>"&vbcr
  %>
<SCRIPT language=JavaScript>
function is_number(str)
{
	exp=/[^0-9]/g;
	if(str.search(exp) != -1)
	{
		return false;
	}
	return true;
}

function checkform(){
	
	if(document.inputform.total.value==''){
		alert("不能为空！");
		inputform.total.focus();
		return false;
	}

	if(!is_number(document.inputform.total.value)){
		alert("访客总数必须用数字！");
		inputform.total.focus();
		return false;
	}
	if(document.inputform.counter_value.value==''){
		alert("不能为空！");
		inputform.counter_value.focus();
		return false;
	}
	if(!is_number(document.inputform.counter_value.value)){
		alert("必须用数字！");
		inputform.counter_value.focus();
		return false;
	}
	if(document.inputform.visited_counter_value.value==''){
		alert("不能为空！");
		inputform.visited_counter_value.focus();
		return false;
	}
	if(!is_number(document.inputform.visited_counter_value.value)){
		alert("必须用数字！");
		inputform.visited_counter_value.focus();
		return false;
	}
	if(document.inputform.send_letter_value.value==''){
		alert("不能为空！");
		inputform.send_letter_value.focus();
		return false;
	}
if(!is_number(document.inputform.send_letter_value.value)){
		alert("必须用数字！");
		inputform.send_letter_value.focus();
		return false;
	}
	if(document.inputform.receive_letter_value.value==''){
		alert("不能为空！");
		inputform.receive_letter_value.focus();
		return false;
	}
if(!is_number(document.inputform.receive_letter_value.value)){
		alert("必须用数字！");
		inputform.receive_letter_value.focus();
		return false;
	}
if(document.inputform.web_address.value==''){
		alert("网站的根目录不能为空！");
		inputform.web_address.focus();
		return false;
	}

	return true;
}
</SCRIPT>


<p align=center> <B><FONT color=#ffffff>Copyright@2002-2030
      &nbsp;福建交友热线  All Right Reserved.
</FONT></B></p>


</BODY></HTML>