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

📄 membermod.asp

📁 自己开发的一个网站数据库系统,希望和大家一块交流学习
💻 ASP
字号:
<%
if session("admin_name")="" then response.end
%>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
	sql="select * from member where user_id="&Request("id")
                rs.open sql,conn,1,1
                if rs.eof then
                response.write "由于一定的原因,目前数据库中不存在此用户"
                response.End
                else
%>
<html>
<head>
<title>会员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=css.css rel=STYLESHEET type=text/css>
<script language=Javascript>
<!--
function deleteMe(){
	if (confirm("确定删除?可是恢复不了的啊。")==1){
		window.location="savememberDel.asp?id=<%=Request("id")%>";
	}
}
//-->
</script>
</head>

<body bgcolor="#9CC7EF" text="#000000"><br>
<%if not (rs.eof or err) then %>
<form method="post" action="saveMemberMod.asp" name="form1">
  <table width="98%" border="1" bordercolordark=#9CC7EF bordercolorlight=#145AA0 cellspacing="0" cellpadding="4" align="center">
  <tbody> 
  <tr> 
    <td colspan=2 height="18" bgcolor="#4296E7"> 
      <p align="center"><font color="#ffffff">会员管理</font></p>
    </td>
  </tr>
    <tr> 
      <td width=84 align="right" height="25" nowrap> 
        <div align="right">会员帐号:</div>
      </td>
      <td width="361" height="25"> 
        <input type="text" name="memberID" size="20" value="<%=rs("user_name")%>" readOnly>
        <input type="hidden" name="id" value="<%=Request("id")%>">
      </td>
  </tr>
    <tr> 
      <td width=84 align="right" height="25" nowrap> 
        <div align="right">会员密码:</div>
      </td>
      <td width="361" height="25"> 
        <input type="text" name="user_pass" size="20" value="<%=rs("user_pass")%>">
      </td>
  </tr>
  <tr> 
    <td width=84 align="right" height="25" nowrap> 
      <div align="right">会员姓名:</div>
    </td>
    <td width="361" height="25"> 
      <input type="text" name="name" size="20" value="<%=rs("user_namec")%>">
      </td>
    </tr>
  <tr> 
    <td width=84 align="right" height="26" nowrap> 
      <div align="right">电子邮件:</div>
    </td>
    <td width="361" height="26"> 
      <input type="text" name="email" size="30" value="<%=rs("user_mail")%>">
    </td>
  </tr>
  <tr> 
    <td width=84 align="right" height="26" nowrap> 
      <div align="right">常用电话:</div>
    </td>
    <td width="361" height="26"> 
      <input type="text" name="phone" size="30" value="<%=rs("user_tel")%>">
    </td>
  </tr>
  <tr> 
    <td width=84 align="right" height="26" nowrap> 
      <div align="right">收货地址:</div>
    </td>
    <td width="361" height="26"> 
      <input type="text" name="address" size="60" value="<%=rs("user_adds")%>">
    </td>
  </tr>
  <tr> 
    <td width=84 align="right" height="26" nowrap> 
      <div align="right">邮政编码:</div>
    </td>
    <td width="361" height="26"> 
      <input type="text" name="code" size="10" value="<%=rs("user_postcode")%>">
    </td>
  </tr>
  <tr> 
    <td colspan="2" align="right" height="26" nowrap bgcolor="#4296E7"> 
      <div align="center">
        <input type="button" name="Submit" value="删除" onClick="deleteMe()">
        <input type="submit" name="Submit2" value="修改">
        <input type="button" name="Submit3" value="返回" onClick="window.location='<%=session("adminOldUrl")%>'">
      </div>
    </td>
  </tr>
  </tbody> 
</table>
</form>
<%else %>
您查询的会员资料不存在,请<a href="Javascript:window.history.go(-1)">返回</a>
</body>
</html>
<%end if %>
<%end if%>

⌨️ 快捷键说明

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