<!--#include file="conn.asp"-->
<%
id=chkstr(request.querystring("id"),10)
if session("rz")="adminsuper" then 
set tmprs=server.createobject("adodb.recordset")
tmpRs.open "Select * from [" & session("roomid") & "] Where UserID="&id,conn,1,3

if tmprs.bof then 
tmpRs.close

%>
    <script language=vbscript>  
  		MsgBox "错误：该用户不存在！"  
  		location.href = "javascript:history.back()"  
	</script>
<%else
user=tmpRs("UserName")
%>

<head>
<STYLE type=text/css>
A:link {COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:visited {	COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:active { COLOR: #ff0000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:hover {COLOR: #ff0000; TEXT-DECORATION: none}
BODY {FONT-SIZE: 9pt}
TH {FONT-SIZE: 9pt}
TD {FONT-SIZE: 9pt}
#YY { width: 100%; position: relative; filter: dropshadow(color="#000011", offx=1, offy=1, positive=1); color: #CFDCE2; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px}
</STYLE>



<title>编辑用户信息</title>
</head>

<body bgcolor="#F0F0FF">

<div align="center">
  <center>
<form method="POST" action="update.asp">
  <table border="1" width="334" cellspacing="0" cellpadding="5">
    <tr>
      <td width="318" bgcolor="#C8C8FF" colspan="2">
        <p align="center">::::: 用户 [<%=user%>] 信息 :::::</td>                                   
    </tr>                                   
    <tr>                                   
      <td width="92" align="right">密&nbsp; 码：</td>                                      
      <td width="212"><input type="text" name="pass" size="20" value="<%=tmpRs("userpassword")%>">                               
      <input type="hidden" name="id" size="20" value="<%=tmpRs("userid")%>">                               
      <input type="hidden" name="hahaha" size="20" value="<%=user%>">                               
      </td>                                      
    </tr>                                      
    <tr>                                      
      <td width="92" align="right">分&nbsp; 数：</td>                                      
      <td width="212"><input type="text" name="fs" size="20" value="<%=tmpRs("usercredit")%>"></td>                                      
    </tr>                                      
    <tr>                                      
      <td width="92" align="right">级&nbsp; 别：</td>                                      
      <td width="212"><input type="text" name="jb" size="4" value="<%=tmpRs("userlevel")%>"></td>                                      
    </tr>                                      
    <tr>                                      
      <td width="92" align="right">性&nbsp; 别：</td>                                      
      <td width="212">      
            
      <input type="text" name="xb" size="4" value="<%=tmpRs("usersex")%>">1:男                                        
        0:女 2:保密</td>                                       
    </tr>                                       
    <tr>                                       
      <td width="92" align="right">Email：</td>                                     
      <td width="212"><%=tmpRs("userEmail")%></td>                                     
    </tr>                                     
    <tr>                                     
      <td width="92" align="right">OICQ号码：</td>                                    
      <td width="212"><%=tmpRs("userOicq")%></td>                                    
    </tr>                                    
    <tr>                                    
      <td width="92" align="right">照片地址：</td>                                    
      <td width="212"><%=tmpRs("userPhoto")%>　</td>                                    
    </tr>                                    
    <tr>                                    
      <td width="92" align="right">密码提问：</td>                                    
      <td width="212"><input type="text" name="tw" size="30" value="<%=tmpRs("userQuestion")%>"></td>                                    
    </tr>                                    
    <tr>                                    
      <td width="92" align="right">提问回答：</td>                                    
      <td width="212"><input type="text" name="da" size="30" value="<%=tmpRs("userAnswer")%>"></td>                                    
    </tr>                                    
    <tr>                                    
      <td width="92" align="right">留&nbsp; 言：</td>                                    
      <td width="212"><%=tmpRs("userResume")%></td>                                    
    </tr>                                    
    <tr>                                    
      <td width="92" align="right">注册日期：</td>                                    
      <td width="212"><%=tmpRs("createdate")%></td>                                    
    </tr>                                    
    <tr>                                    
      <td width="92" align="right">最后登入IP：</td>                                    
      <td width="212"><%=tmpRs("userLastIP")%>　</td>                                 
    </tr>                                 
                          
    <tr>                                 
      <td width="92" align="right">最后登入日期：</td>                                 
      <td width="212"><%=tmpRs("modifydate")%></td>                                 
    </tr>   
                                  
    <tr>                                      
      <td width="92" align="right">会员级别：</td>                                      
      <td width="212"><input type="text" name="hy" size="4" value="<%=tmpRs("MemberLevel")%>"> 范围( 1 - 10)</td>                                      
    </tr>                                      
                         
    <tr>                                 
      <td width="92" align="right">是否封杀：</td>                                 
      <td width="212">            
       <%if tmpRs("userEnable")=1 then %>           
       　  <input type="radio" name="enable" value="1" checked>正常&nbsp;&nbsp;&nbsp;          
       <input type="radio" name="enable" value="0">封杀          
  		<%else%>         
       　  <input type="radio" name="enable" value="1">正常&nbsp;&nbsp;&nbsp;          
       <input type="radio" name="enable" value="0" checked>封杀          
           
      <%end if%>         
      </td>           
    </tr>                                
  </table>                                
  </center>                                
</div>                                
<p align="center">                                
<input type="submit" value="修改" name="B1">&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" value="返回" name="B3" onclick="javascript:history.back()">                                    
</p>                                    
</form>                                    
                                   
                                   
<%                               
tmpRs.close                               
conn.close                               
end if                                   
%>                                   
                                   
<p align="center"><font color="#FF0000"><b>注意：</b>如在此用户在线的时候修改，则用户运行存点或退出后才能生效！</font></p>                     
<%else%>                
error!                   
<%end if%>                   
                   
