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

📄 hyzliao.asp

📁 这是一个网上购物物网站,数据库的连接在CONN.ASP中,既有前台网站,也有后台管理
💻 ASP
字号:
<!-- #include file="user_pass.asp"-->
<!-- #include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看我的资料</title>
<LINK 
href="css/css.css" rel=stylesheet type=text/css>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="5">
<form name="form1" method="post" action="">
    <center>
    <TABLE height="291" border=0 cellPadding=3 cellSpacing=1 borderColorLight=#808000 borderColorDark=#808000 bgcolor="#CCCCCC" style="border-collapse: collapse">
      <tr align="center" bgcolor="#FFFFFF"> 
        <td height="25" colspan="2"> 
          <%

set rs=server.createobject("adodb.recordset")
sql="select * from guser where username='"&session("username")&"'"
rs.open sql,conn,1,1
%>
          <%if not (rs.eof or err) then %>
          <font color="#FF0000"><strong>修改资料</strong></font> </td>
    </tr>
    <tr> 
        <td width="130" align="center" bgcolor="#ededed"><font size="2">会员帐号:</font></td>
        <td width="478" bgcolor="#FFFFFF"><font color="#FF0000"><%=rs("username")%></font> </td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">会员姓名:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="truename" type="text" id="truename" value="<%=rs("truename")%>" size="30"></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font color="#000000" size="2">会员性别:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <select name="sex" id="sex">
          <%if rs("sex")="男" then %>
          <option selected>男</option>
          <option>女</option>
          <%else %>
          <option>男</option>
          <option selected>女</option>
          <%end if %>
        </select></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">会员密码:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="password" type="text" id="password" value="<%=rs("password")%>" size="30"></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed">密码确认<font size="2">:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="password2" type="text" id="password2" value="<%=rs("password2")%>" size="30"> </td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">密码提问:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="question" type="text" id="question" value="<%=rs("question")%>" size="30"></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">密码答案:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="reply" type="text" id="reply" value="<%=rs("reply")%>" size="30"></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">身份证号:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="sfz" type="text" id="sfz" value="<%=rs("sfz")%>" size="30"></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">电子邮件:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="email" type="text" id="email" value="<%=rs("email")%>" size="30"></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">联系电话:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="telphone" type="text" id="telphone" value="<%=rs("telphone")%>" size="30"></td>
    </tr>
    <tr> 
        <td align="center" bgcolor="#ededed"><font size="2">注册日期:</font></td>
        <td width="478" bgcolor="#FFFFFF"> 
          <input name="addtime" type="text" id="addtime" value="<%=rs("addtime")%>" size="30"></td>
    </tr>
      <tr> 
        <td height="9" colspan="2" align="center" bgcolor="#FFFFFF"> 
          <input type="submit" name="Submit2" value="修改" style="font-size: 9pt; ">
          &nbsp;&nbsp;&nbsp;&nbsp; 
        <input type="button" value="关闭" name="B2" onclick="window.close();" style="font-size: 9pt"> </td>
    <tr> 
      <p> 
          <%else %>
        </p>
        您没有登陆,或该会员已被删除,请重新登陆一次。 <a href="Javascript:window.history.go(-1)">返回</a> 
        <%end if %> 
    </tr>
  </table>
    </center>
  </div>
</form>
</body>
</html>

⌨️ 快捷键说明

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