
<!--#include file="../../p_inc/Include_func.asp"-->
<!--#include file="../inc/public.asp"-->
<!--#include file="../inc/openconn.asp"-->
<SCRIPT language=JavaScript>
function test()
{
	
	if(form1.password.value.length != 0)
	{
			if(form1.password_2.value.length == 0)
	{
		alert("密码重复不可为空!") ;
		form1.password_2.focus() ;
		return false;
	}
		if(form1.password.value!=form1.password_2.value)
	{
		alert("密码和密码重复不同!") ;
		form1.password_2.focus() ;
		return false;
	}
	}
	

	return true;
};
function check()
{if (document.form1.all_check.checked)
for(i=0;i<document.form1.str_manage.length;i++)
  document.form1.str_manage[i].checked=true;
else
for(i=0;i<document.form1.str_manage.length;i++)
  document.form1.str_manage[i].checked=false;

}

</SCRIPT>
<%
id=clng(request.QueryString("id"))
set rs=server.CreateObject("adodb.recordset")
sql="select * from [user] where id="&id&""
rs.open sql,conn,1,1,&H0001
if rs.eof then
	rs.close:set rs=nothing
	response.write("没有相关记录")
	response.end
end if

%>
<%
If request.Cookies(Sky_Admin_Cookies_1)("admin_u")="" or request.Cookies(Sky_Admin_Cookies_1)("admin_p")="" or request.Cookies(Sky_Admin_Cookies_1)("admin_m")="" then
	response.write "<script language='javascript'>"
	response.write"this.location.href='./login.asp';</SCRIPT>" 
response.end
end if
%>

<html>
<head>
<title>后台管理-编辑用户</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/style.css">
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="24%"><a href="../"><img src="../images/admin.gif" width="200" height="66" border="0"></a></td>
    <td width="76%" valign="bottom"><div align="right"><%=Copyright%></div></td>
  </tr>
  <tr bgcolor="#F6F6F6"> 
    <th height="22" colspan="2" class="tableHeaderText">&nbsp;&nbsp;::: 管理员控制面板 
      --&gt; 编辑用户</th>
  </tr>
  <tr bgcolor="#FF9900"> 
    <td height="1" colspan="2"></td>
  </tr>
</table>
<br>
<table width="98%" border="1"  align=center cellpadding="0" cellspacing="1" class="tableBorder">
  <form action="modify_save.asp" method="POST" name="form1" id="form1"  onSubmit="return test();">
    <tr> 
      <td height=25 class=forumRow><div align="right">用户登陆帐号：</div></td>
      <td class=forumRow >&nbsp; <%=rs("username")%>
        <input name="id" type="hidden" id="id" value="<%=id%>"></td>
    </tr>
    <tr> 
      <td height=25 class=forumRow><div align="right">用户登陆密码：</div></td>
      <td class=forumRow >&nbsp; <input name="password" type="password" id="zt" size="20">
        <font color="#FF6600">*( 如不修改密码，请不要填写此项 )</font></td>
    </tr>
    <tr> 
      <td height=25 class=forumRow ><div align="right">重复密码：</div></td>
      <td class=forumRow>&nbsp; <input name="password_2" type="password" id="password_2" size="20">
        <font color="#FF6600">*( 如不修改密码，请不要填写此项 )</font></td>
    </tr>
     <tr> 
      <td height=25 class=forumRow><div align="right">授权类别：</div></td>
      <td bgcolor="#F6F6F6" class=forumRow>&nbsp; 
		<select name="lev" id="lev">
            <option value="" style="color:#999;">请选择类型</option>
            <option value="1">免费用户</option>
            <option value="2">开源用户</option>
            <option value="3">VIP用户</option>
        </select>
		         <script type="text/javascript">document.getElementById("lev").value="<%=lev%>";</script>
					<font color="#FF6600">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*选择你注册授权时的类型!</font>
		</td>
    </tr>

    
    <tr> 
      <td height=25 class=forumRow><div align="right">授权域名：</div></td>
      <td class=forumRow>&nbsp; <input name="dns" type="text" id="dns" size="20" value="<%=rs("dns")%>"></td>
    </tr>
    <tr> 
      <td width="16%" height=39 bgcolor="#F6F6F6"><div align="center">&nbsp; </div></td>
      <td width="84%" bgcolor="#F6F6F6"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="Submit" type="submit" value=" 修改 "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="Submit2" type="reset" value=" 还原 "></td>
    </tr>
  </form>
</table>
<br>
<div align="center"><br>
</div>
</body>
</html>


