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

📄 user_manage_edit.asp

📁 留言薄系统
💻 ASP
字号:
<!--#INCLUDE FILE="config.asp"-->

<%if session("admin")<>1 then response.Redirect("default.asp")%>
<%
if request.Form<>"" then
	 password=request.Form("password")
	 mail=request.Form("email")
     HomePage=Trim(Request.Form("HomePage"))
	 face=request.Form("face")
	 sex=request.Form("sex")
	 levels=request.Form("level")
	 counts=request.form("count")
	 if homepage="http://" then homepage="" 

      Set rs=server.createobject("ADODB.RECORDSET")
	  rs.open "Select * From register where username='" &request("username")& "'",Conn,3,3  
		if request.Form("password")<>request.Form("password") then rs("password")=password
    	rs("mail")=mail
		rs("homepage")=HomePage
		rs("face")=face
		rs("sex")=sex
		rs("levels")=levels
		rs("counts")=counts
    	rs.update
    	rs.close
     response.Redirect "post_ok.asp?info=注册信息修改成功!"
conn.close
set conn=nothing
end if
%>	
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>修改注册信息</title>

<link href="1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>

<body topmargin="0" leftmargin="0">
<div align="center"> 
  <center>
    <table border=0 width=700 align=center>
      <tr> 
        <td align=center> 
          <!--#INCLUDE FILE="top.asp"-->
      </tr>
      <tr> 
        <td align=center><hr size=1 width=100% noshade color=#C0C0C0></tr>
    </table>
    <% Set rs=server.createobject("ADODB.RECORDSET")
   rs.open "Select * From register where username='" &request("username")& "'",Conn,3,3
%>
    <table border=0 width=100% align=center>
      <tr>
        <td width="3%" align=lift><font color="#FF0000">&nbsp;</font></td>
        <td width="8%" align=lift><a href="<%if session("list")=0 then%>default.asp<%else%>default1.asp<%end if%>">留言首页</a></td>
        <td width="89%" align=right>
          <!--#INCLUDE FILE="link.asp"-->
        </td>
    </table>
    <form action="" method="POST" name="form" id="form">
      <div align="center">
      <table width="100%" border="1" cellpadding="5" cellspacing="1" bgcolor="#E6F2FF" style="border-collapse: collapse" bordercolor="#000000" >
        <tr >
          <td colspan="2" bordercolorlight="#000000" bordercolordark="#C0C0C0">
            <p align="center"><strong>修改注册信息</strong></td>
        </tr>
        <tr >
          <td width="220" align="center"><div align="left"><strong>用户名:</strong></div></td>
          <td height="28" align="center"><div align="left"><%=rs("username")%></div></td>
        </tr>
        <tr class="table001">
          <td width="220" align="center"><div align="left"><strong>性别:</strong></div></td>
          <td height="28" align="center"><div align="left"><font color="#FFFFFF">
              <select name="sex" size="1" id="select">
                <option value="1" <%if rs("sex")=1 then%>selected<%end if%>>男</option>
                <option value="0"<%if rs("sex")=0 then%>selected<%end if%>>女</option>
              </select>
          </font></div></td>
        </tr>
        <tr >
          <td width="220" align="center"><div align="left"><strong>密码:</strong></div></td>
          <td height="28" align="center"><div align="left">
              <input name="password" type="password" class="input1" id="password3" value="<%=rs("password")%>" size="15">
              <input name="password1" type="hidden" id="password1" value="<%=rs("password")%>">
          </div></td>
        </tr>
        <tr >
          <td width="220" align="center"><div align="left"><strong>电子邮件:</strong></div></td>
          <td height="28" align="center"><div align="left"><font color="#00FF00">
              <input name="Email" type="text" class="input1" value="<%=rs("mail")%>" size="25">
          </font></div></td>
        </tr>
        <tr class="table001">
          <td width="220" align="center"><div align="left"><strong>个人主页:</strong></div></td>
          <td height="28" align="center"><div align="left"><font color="#00FF00">
              <input type="text" name="HomePage" size="25" Value="<%=rs("homepage")%>" class="input1">
          </font></div></td>
        </tr>
        <tr class="table001">
          <td width="220" align="center"><div align="left"><strong>QQ:</strong></div></td>
          <td height="28" align="center"><div align="left"><font color="#00FF00">
              <input name="QQ" type="text" class="input1" id="QQ3" value="<%=rs("qq")%>" size="30">
          </font></div></td>
        </tr>
        <tr class="table001">
          <td width="220" align="center"><div align="left"><strong>头像:</strong></div></td>
          <td height="28" align="center" valign="top"><div align="left">
              <table width="100%"  border="0">
                <tr>
                  <td width="9%"><select name="face" size="1" id="select2" onChange="document.all.idface.src=options[selectedIndex].value;">
                    <option <%if rs("face")="face/1.gif" then%>selected<%end if%> value="face/1.gif">1</option>
                    <option <%if rs("face")="face/2.gif" then%>selected<%end if%> value="face/2.gif">2</option>
                    <option <%if rs("face")="face/3.gif" then%>selected<%end if%> value="face/3.gif">3</option>
                    <option <%if rs("face")="face/4.gif" then%>selected<%end if%> value="face/4.gif">4</option>
                    <option <%if rs("face")="face/5.gif" then%>selected<%end if%> value="face/5.gif">5</option>
                    <option <%if rs("face")="face/6.gif" then%>selected<%end if%> value="face/6.gif">6</option>
                    <option <%if rs("face")="face/7.gif" then%>selected<%end if%> value="face/7.gif">7</option>
                    <option <%if rs("face")="face/8.gif" then%>selected<%end if%> value="face/8.gif">8</option>
                    <option <%if rs("face")="face/9.gif" then%>selected<%end if%> value="face/9.gif">9</option>
                    <option <%if rs("face")="face/10.gif" then%>selected<%end if%> value="face/10.gif">10</option>
                    <option <%if rs("face")="face/11.gif" then%>selected<%end if%> value="face/11.gif">11</option>
                    <option <%if rs("face")="face/12.gif" then%>selected<%end if%> value="face/12.gif">12</option>
                    <option <%if rs("face")="face/13.gif" then%>selected<%end if%> value="face/13.gif">13</option>
                    <option <%if rs("face")="face/14.gif" then%>selected<%end if%> value="face/14.gif">14</option>
                    <option <%if rs("face")="face/15.gif" then%>selected<%end if%> value="face/15.gif">15</option>
                    <option <%if rs("face")="face/16.gif" then%>selected<%end if%> value="face/16.gif">16</option>
                    <option <%if rs("face")="face/17.gif" then%>selected<%end if%> value="face/17.gif">17</option>
                    <option <%if rs("face")="face/18.gif" then%>selected<%end if%> value="face/18.gif">18</option>
                    <option <%if rs("face")="face/19.gif" then%>selected<%end if%> value="face/19.gif">19</option>
                    <option <%if rs("face")="face/20.gif" then%>selected<%end if%> value="face/20.gif">20</option>
                    <option <%if rs("face")="face/21.gif" then%>selected<%end if%> value="face/21.gif">21</option>
                    <option <%if rs("face")="face/22.gif" then%>selected<%end if%> value="face/22.gif">22</option>
                    <option <%if rs("face")="face/23.gif" then%>selected<%end if%> value="face/23.gif">23</option>
                    <option <%if rs("face")="face/24.gif" then%>selected<%end if%> value="face/24.gif">24</option>
                    <option <%if rs("face")="face/25.gif" then%>selected<%end if%> value="face/25.gif">25</option>
                    <option <%if rs("face")="face/26.gif" then%>selected<%end if%> value="face/26.gif">26</option>
                    <option <%if rs("face")="face/27.gif" then%>selected<%end if%> value="face/27.gif">27</option>
                    <option <%if rs("face")="face/28.gif" then%>selected<%end if%> value="face/28.gif">28</option>
                    <option <%if rs("face")="face/29.gif" then%>selected<%end if%> value="face/29.gif">29</option>
                    <option <%if rs("face")="face/30.gif" then%>selected<%end if%> value="face/30.gif">30</option>
                    <option <%if rs("face")="face/31.gif" then%>selected<%end if%> value="face/31.gif">31</option>
                    <option <%if rs("face")="face/32.gif" then%>selected<%end if%> value="face/32.gif">32</option>
                    <option <%if rs("face")="face/33.gif" then%>selected<%end if%> value="face/33.gif">33</option>
                    <option <%if rs("face")="face/34.gif" then%>selected<%end if%> value="face/34.gif">34</option>
                    <option <%if rs("face")="face/35.gif" then%>selected<%end if%> value="face/35.gif">35</option>
                    <option <%if rs("face")="face/36.gif" then%>selected<%end if%> value="face/36.gif">36</option>
                    <option <%if rs("face")="face/37.gif" then%>selected<%end if%> value="face/37.gif">37</option>
                    <option <%if rs("face")="face/38.gif" then%>selected<%end if%> value="face/38.gif">38</option>
                    <option <%if rs("face")="face/39.gif" then%>selected<%end if%> value="face/39.gif">39</option>
                    <option <%if rs("face")="face/40.gif" then%>selected<%end if%> value="face/40.gif">40</option>
                    <option <%if rs("face")="face/41.gif" then%>selected<%end if%> value="face/41.gif">41</option>
                    <option <%if rs("face")="face/42.gif" then%>selected<%end if%> value="face/42.gif">42</option>
                    <option <%if rs("face")="face/43.gif" then%>selected<%end if%> value="face/43.gif">43</option>
                    <option <%if rs("face")="face/44.gif" then%>selected<%end if%> value="face/44.gif">44</option>
                    <option <%if rs("face")="face/45.gif" then%>selected<%end if%> value="face/45.gif">45</option>
                    <option <%if rs("face")="face/46.gif" then%>selected<%end if%> value="face/46.gif">46</option>
                    <option <%if rs("face")="face/47.gif" then%>selected<%end if%> value="face/47.gif">47</option>
                    <option <%if rs("face")="face/48.gif" then%>selected<%end if%> value="face/48.gif">48</option>
                    <option <%if rs("face")="face/49.gif" then%>selected<%end if%> value="face/49.gif">49</option>
                    <option <%if rs("face")="face/50.gif" then%>selected<%end if%> value="face/50.gif">50</option>
                    <option <%if rs("face")="face/51.gif" then%>selected<%end if%> value="face/51.gif">51</option>
                    <option <%if rs("face")="face/52.gif" then%>selected<%end if%> value="face/52.gif">52</option>
                    <option <%if rs("face")="face/53.gif" then%>selected<%end if%> value="face/53.gif">53</option>
                    <option <%if rs("face")="face/54.gif" then%>selected<%end if%> value="face/54.gif">54</option>
                    <option <%if rs("face")="face/55.gif" then%>selected<%end if%> value="face/55.gif">55</option>
                    <option <%if rs("face")="face/56.gif" then%>selected<%end if%> value="face/56.gif">56</option>
                  </select></td>
                  <td width="11%"><img src="<%=rs("face")%>" width="72" height="122" id=idface ></td>
                  <td width="80%"> </td>
                </tr>
              </table>
          </div></td>
        </tr>
        <tr class="table001">
          <td align="center"><div align="left"><strong>头衔:</strong></div></td>
          <td height="28" align="center" valign="top"><div align="left"><font color="#00FF00">
            <input name="level" type="text" class="input1" id="level2" Value="<%=rs("levels")%>" size="15">
          </font></div></td>
        </tr>
        <tr class="table001">
          <td align="center"><div align="left"><strong>发言数:</strong></div></td>
          <td height="28" align="center" valign="top"><div align="left"><font color="#00FF00">
            <input name="count" type="text" class="input1" id="count2" Value="<%=rs("counts")%>" size="10">
            <input name="id" type="hidden" id="id2" value="<%=request("id")%>">
          </font></div></td>
        </tr>
        <tr class="table001">
          <td height="28" colspan="2" align="center"><input name="join" type="submit" class="input2" id="join3" value=" 提 交 " >
 
  <input name="B12" type="reset" class="input2" id="B123"  value=" 重 写 "  > </td>
        </tr>
      </table>
    	</div>
    </form>
  </CENTER></DIV>
<table border=0 width=485 align=center>
  <tr> 
    <td> 
      <%  
	  set guest=nothing 
      set rs = nothing%>
    </td>
  </tr>
  <tr> 
    <td height=12><HR SIZE=1 WIDTH=100% NOSHADE COLOR=#C0C0C0></td>
  </tr>
  <tr> 
    <td align=center> 
      <!--#INCLUDE FILE="bottom.asp"-->
  </tr>
</table>
</body>                  
                  
</html>                  

⌨️ 快捷键说明

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