www.pudn.com > QQ.zip > ModiUser.asp, change:2009-07-11,size:3192b


<!--#include file="conn.asp"--> 
<% 
  if session("admin")="" then 
    Response.Write("<script>alert('用户未登录,请登录!');top.location='../admin.asp';</script>") 
	Response.end 
  end if 
 
  if Request.QueryString("id")="" then 
    Response.Write("<script>alert('参数错误,执行失败!');history.back();</script>") 
	Response.end 
  end if 
  id=Request.QueryString("id") 
  TypeArea = request.QueryString("TypeArea") 
  if isnumeric(id)=false then 
    Response.Write("<script>alert('参数错误,执行失败!');history.back();</script>") 
	Response.end 
  end if 
  set rs=server.CreateObject("adodb.recordset") 
   
  if Request.Form.count>0 then 
      sql="update tb_zh_info set isread=" & replace(Request.form("isread"),"'","''") & " where id=" & id 
	  conn.execute sql 
	  Url = "UserList.asp?TypeArea=" & TypeArea 
	  Response.redirect(Url) 
  else 
      sql="select * from tb_zh_info where id=" & id 
	  rs.open sql,conn,1,1 
	  if rs.recordcount=0 then 
	        rs.close 
			Response.Write("<script>alert('用户不存在,修改失败!');history.back();</script>") 
			Response.end 
	  else 
	       UserName=rs("username") 
	       PassWord=rs("PWD") 
	       area=rs("area") 
	       typenames=rs("typename") 
	       createtime=rs("createtime") 
	       IP=rs("IP") 
	       isread=rs("isread") 
	  end if 
	  rs.close 
	   
  end if 
%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<title>无标题文档</title> 
<style type="text/css"> 
	td{ 
	border:#666666 1px solid; 
	} 
</style> 
</head> 
 
<body> 
<table width="100%"  border="0" cellpadding="0" cellspacing="0"> 
  <form name="form1" method="post" action="?id=<%=Request.querystring("id")%>&TypeArea=<%=TypeArea%>"> 
    <tr> 
      <td colspan="2"><div align="center">游戏帐号信息修改</div></td> 
    </tr> 
    <tr> 
      <td width="20%" align="right" height="25">用户名:</td> 
      <td width="80%"> 
         <%=PassWord%> 
      </td> 
    </tr> 
    <tr> 
      <td align="right" height="25">密 码:</td> 
      <td> <%=UserName%></td> 
    </tr> 
 
    <tr> 
      <td align="right" height="25">等级:</td> 
      <td> <%=typenames%></td> 
    </tr> 
    <tr> 
      <td align="right" height="25">区域:</td> 
      <td> <%=area%></td> 
    </tr> 
    <tr> 
      <td align="right" height="25">时间:</td> 
      <td> <%=createtime%></td> 
    </tr> 
    <tr> 
      <td align="right" height="25">IP地址:</td> 
      <td> <%=IP%></td> 
    </tr> 
    <tr> 
      <td align="right" height="25">帐号状态:</td> 
      <td><input name="isread" type="radio" value="0" <% if isread=false then%>checked<%end if%>> 
        未查阅 
          <input type="radio" name="isread" value="1" <% if isread=true then%>checked<%end if%>> 
        已查阅</td> 
    </tr> 
    <tr> 
      <td colspan="2" height="35"><div align="center">     
              <input type="submit" name="Submit" value="修改"> 
                
              <input type="reset" name="Submit2" value="重置"> 
      </div></td> 
    </tr> 
  </form> 
</table> 
</body> 
</html>