📄 per_basicinfo.asp
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<%
Dim Rs,Cmd,Tmp,Action
Dim Perid,UserName,UserType,Nation,Marry,CodeType,Door_Area,Door_City,Locus_Area,Locus_City,Appraise
Action = Request.QueryString("action")
If Action = "submit" Then Call Submit() '//跳转到保存数据的函数
If IsArray(Session("Person")) Then
Perid = Session("Person")(2)
UserName = Session("Person")(0)
Else
Session.Abandon()
Response.write "<script>alert('-登录后才能进行该操作!-');location.href='../Public/MemberLogin.asp';</script>"
Response.End()
End if
'//调用存储过程
Set Cmd = Server.Createobject("ADODB.Command")
Cmd.ActiveConnection = Conn
Cmd.CommandText = "Per_BasicInfo"
Cmd.CommandType = 4
Cmd.Parameters.Append Cmd.CreateParameter("@Perid",200,1,30)
Cmd.Parameters("@Perid") = Perid
Set Rs = Cmd.Execute
If Rs.Eof Then
CloseRs
Set Cmd = Nothing
CloseDB
Response.write "没有找到会员资料!"
Response.End()
End if
Tmp = Rs.GetRows() '//将数据填充到数组
'//0邮件,1姓名,2性别,3民族,4婚姻,5户口省份,6城市,7所在地省份,8城市,9身高,10体重,11生日年,12月,13日,14电话,15QQ,16网站地址,17自我评价,18证件号码,19证件类型,20手机,21邮政编码,22地址,23会员类型
'//如:Tmp(1,0)表示 用户的姓名
CloseRs
Set Cmd = Nothing
'//功能代码
UserType = Cls_Usertype(Tmp(23,0))
Nation = Tmp(3,0)
Marry = Tmp(4,0)
CodeType = Tmp(19,0)
Door_Area = Tmp(5,0)
Door_City = Tmp(6,0)
Locus_Area = Tmp(7,0)
Locus_City = Tmp(8,0)
Appraise = Tmp(17,0)
If Appraise<>"" Then Appraise = Replace(Appraise,"<br>",Chr(13))
'//关闭数据库连接
CloseDB
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 个人会员管理中心 -- 基本信息</title>
</head>
<script language="JavaScript" src="../js/Person_Basicinfo.js"></script>
<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
<!--#include file="../Include/Header.asp" -->
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="1" bgcolor="#eeeeee"></td>
</tr>
</table></td>
</tr>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175">
<!--#include file="../Public/Person_Left.asp" -->
</td>
<td width="5"> </td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><img src="../Images/icon.gif" width="11" height="11" align="absmiddle">
<%= Tmp(1,0) %>[<%= UserType %>] </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form action="?action=submit" name="edit" method="post" onSubmit="return form_check();">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td height="25" bgcolor="f5f5f5"><b><font color="#000000"> 基本资料</font></b></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="18%" height="25" align="right"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 姓 名:</td>
<td height="25"><input name="realname" type="text" id="realname" size="20" maxlength="20" style="width:120px;" value="<%= Tmp(1,0) %>"></td>
</tr>
<tr>
<td width="18%" height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 性 别:</td>
<td height="25" bgcolor="f9f9f9"> <input type="radio" name="sex" value="1" <% If Tmp(2,0) = True Then Response.write "Checked" %>>
男
<input type="radio" name="sex" value="0" <% If Tmp(2,0) = False Then Response.write "Checked" %>>
女</td>
</tr>
<tr>
<td height="25" align="right">民 族:</td>
<td height="25">
<!--#include file="../Include/Class_Nation.asp" -->
</td>
</tr>
<tr>
<td height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 出生日期:</td>
<td height="25" bgcolor="f9f9f9"><input name="birthyear" type="text" id="birthyear" size="4" maxlength="4" value="<%= Tmp(11,0) %>">
年
<select name=birthmonth>
<%for i=1 to 12%>
<option <%if i=Tmp(12,0) then%>selected<%end if%> value="<%=i%>"><%=i%></option>
<%next%>
</select>
月
<select name=birthday>
<%for i=1 to 31%>
<option <%if i=Tmp(13,0) then%>selected<%end if%> value="<%=i%>"><%=i%></option>
<%next%>
</select>
日</td>
</tr>
<tr>
<td height="25" align="right"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 婚姻状况:</td>
<td height="25"><select name="marry" size="1" id="marry" style="width:60px;">
<option value="0" <% If Marry = 0 Then Response.write "Selected" %>>保密</option>
<option value="1" <% If Marry = 1 Then Response.write "Selected" %>>未婚</option>
<option value="2" <% If Marry = 2 Then Response.write "Selected" %>>已婚</option>
<option value="3" <% If Marry = 3 Then Response.write "Selected" %>>离异</option>
</select></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 身 高:</td>
<td height="25" bgcolor="f9f9f9"><input name="stature" type="text" size="4" maxlength="4" style="width:60px;" value="<%= Tmp(9,0) %>">
CM<font color="#50463d">[如:172CM]</font></td>
</tr>
<tr>
<td height="25" align="right"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 体 重:</td>
<td height="25"><input name="tizhong" type="text" size="4" maxlength="4" style="width:60px;" value="<%= Tmp(10,0) %>">
KG</td>
</tr>
<tr>
<td height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -