<%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 admin"
 rs.Open sql,conn1,3
 if rs.RecordCount<>0 then
	admin_id=rs("admin_id")
	passwd=rs("passwd")
 end if
%>
<SCRIPT language=JavaScript>
function checkform(){
	
	if(inputform.admin_id.value =="" ) {
                alert("\请输入用户名 !!")
                return false;
       }
	if( inputform.passwd.value =="" ) {
                alert("\请输入密码 !!")
                return false;
        }
        if( inputform.confirmpasswd.value =="" ) {
                alert("\请输入密码确认 !!")
                return false;
        }
     
        if( inputform.confirmpasswd.value != inputform.passwd.value ) {
                alert("\两次密码输入不一致 !!")
                return false;
        }
 	
	return true;
}
</SCRIPT>
<BR><BR><BR>
<FORM action="update_manager_info.asp" method=post id=form1 name=inputform onsubmit=return(checkform())>

<table  align=center ><tbody>
 <tr><td  colspan=4>
	<p align="center">管理员参数设置：
 </td></tr>
  
 <tr>
 <td>
 <B><FONT color=#df372f>『管理员用户名』</FONT></B>
 </td>
 <td><INPUT onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="color:black; text-decoration:blink; background-color:white; border-width:1px; border-color:navy; border-style:solid;" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=40 size=20 
name=admin_id value=<%=admin_id%> ></td>

            <td></td>
            <td></td>
 </tr>
<tr>
  <td>
 <B><FONT color=#df372f>『管理员密码』</FONT></B>
 </td>
 <td><FONT color=#df372f><INPUT type="password" onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="color:black; text-decoration:blink; background-color:white; border-width:1px; border-color:navy; border-style:solid;" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=20 size=20 
name=passwd value=<%=passwd%> ></FONT></td>
  <td>
 <B><FONT color=#df372f>『重输密码』</FONT></B>
 </td>
 <td><INPUT type="password" onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="color:black; text-decoration:blink; background-color:white; border-width:1px; border-color:navy; border-style:solid;" 
onmouseout="this.style.backgroundColor = '#66CC33'" maxLength=20 size=20 
name=confirmpasswd  value=<%=passwd%> >&nbsp;</td>
 </tr>


<tr><td   colspan=2 align=center>
	<INPUT type="submit" value="更 新" id=submit1 name=submit1 onmouseover="this.style.backgroundColor = '#FFCC00'" 
style="color:black; text-decoration:blink; background-color:white; border-width:1px; border-color:navy; border-style:solid;" 
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="color:black; text-decoration:blink; background-color:white; border-width:1px; border-color:navy; border-style:solid;" 
onmouseout="this.style.backgroundColor = '#66CC33'">
 </td></tr>
 </tbody>
</table>


</FORM>






</BODY></HTML>