⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reg_change.asp

📁 憧憬计数器v0.99
💻 ASP
字号:
<%@ language=vbscript%>
<%response.buffer=true%>
<!--#include file=conn.asp-->
<%id=trim(request.form("id")) 
  pws=trim(request.form("pws"))
if pws="" or id="" then response.end
pws=replace(pws,"'","''")
id=replace(id,"'","''")
sql="select webname,url,keys,intro,kindname,admin,pass from userinfo where pass='"&pws&"' and admin='"&id&"'"
set countcon=server.createobject("adodb.connection")
  countcon.open conn
set list_user=countcon.execute(sql)
if list_user.eof and list_user.bof then
   list_user.close
   set list_user=nothing
    countcon.close
  set countcon=nothing
  response.write "<script language=jscript>alert('密码错误');history.back()</script>"
  response.end
end if
%>

<html>

<head>
<script language=vbscript>
 sub chk()
  if trim(reg.id.value)="" or trim(reg.pws.value)="" or trim(reg.webname.value)="" or trim(reg.url.value)="" then
     alert("打星号的必须填写")
      exit sub
  end if
      document.reg.submit
 end sub
</script>

<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>用户资料修改</title>
</head>

<body>
<form action=reg_change2.asp method=post name=reg>
<input type=hidden name=oldid value="<%response.write list_user("admin")%>" >
<div align="center">
  <table border="0" cellpadding="3" cellspacing="1" width="750" height="361" style="font-size: 9pt" bgcolor="#9AADCB">
    <tr>
      <td width="692" height="12" colspan="2" bgcolor="#FFFFFF">
        <p align="center">用户资料修改</td>
    </tr>
    <tr>
      <td width="561" height="28" bgcolor="#FFFFFF">
        
         
          <p align="left">&nbsp;*用户名:&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="id" value="<%response.write list_user("admin")%>" size="20"></p>  
     
      </td>  
      <center>  
      <td width="169" height="333" rowspan="8" bgcolor="#FFFFFF"><img border="0" src="img/0009.gif" width="166" height="320"></td>  
      </tr>  
      <tr>  
        <td width="561" height="28" bgcolor="#FFFFFF">&nbsp;*密码:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
          <input type="password" name="pws" value="<%response.write list_user("pass")%>" size="20"></td>  
      </tr>  
      <tr>  
        <td width="561" height="28" bgcolor="#FFFFFF">&nbsp;*网站名称:&nbsp;&nbsp; 
          <input type="text" name="webname" value="<%response.write list_user("webname")%>" size="20"></td> 
      </tr> 
      <tr> 
        <td width="561" height="28" bgcolor="#FFFFFF">&nbsp;*网址:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <input type="text" name="url" value="<%response.write list_user("url")%>" size="35"></td> 
      </tr> 
      <tr> 
        <td width="561" height="28" bgcolor="#FFFFFF">&nbsp;*所属种类:&nbsp;&nbsp; 
            <select size="1" name="class">
            <option selected><%response.write list_user("kindname")%></option>
            <option>电影/电视@</option>
            <option>旅游与交通</option>
            <option>卫生与健康</option>
            <option>电脑网络</option>
            <option>娱乐休闲</option>
            <option>游戏@</option>
            <option>情感天地</option>
            <option>生活服务</option>
          </select></td> 
      </tr> 
      <tr> 
        <td width="561" height="27" bgcolor="#FFFFFF">&nbsp;网站关键字:&nbsp;   
          <input type="text" value="<%response.write list_user("keys")%>" name="keys" size="50"> 以逗号分隔,小于5个</td>  
      </tr>  
      <tr>  
        <td width="561" height="18" bgcolor="#FFFFFF">&nbsp;网站介绍&nbsp;:   
          (100字以内,中文) </td>  
      </tr>  
      <tr>  
        <td width="561" height="106" valign="middle" bgcolor="#FFFFFF">  
                      <p align="center"><textarea rows="4" name="intro" cols="38"><%response.write list_user("intro")%></textarea></p>  
           
        </td>  
      </tr>  
      <tr>  
        <td width="561" height="14" bgcolor="#FFFFFF">  
                      <p align="center"><input type="button" onclick="chk()" value="立即修改" name="B1"></p>  
  
        </td>  
      </tr>  
    </table>  
  </center>  
</div>  
 </form> 
</body>  
  
</html>  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -