memberedit.asp

来自「不是我做的一个留言板」· ASP 代码 · 共 183 行 · 第 1/2 页

ASP
183
字号
<%
bg_id=1
%>

<!--#include file="conn.asp" -->
<!--#include file="session.asp" -->
<!--#include file="../function/md5.asp" -->
<!--#include file="../templet/mon.asp" -->
<%
username=session_cookie_name
web_id="../language/"&l_id
web_id=web_id&"/USER_INFO.ASP"
call include(web_id)
set rs=server.CreateObject("adodb.recordset")
sql="select * from [user] where username='"&username&"' and g_id='"&session_cookie_gid&"'"
rs.open sql,conn,1,1
dim sex,birthyear,birthmonth,birthday
sex=rs("sex")
birthyear=year(rs("birthday"))
birthmonth=month(rs("birthday"))
b_day=day(rs("birthday"))
%>

<script language="JavaScript">
<!--

	
	function checkform2(){
		
	if (document.form2.email.value.length == 0 && !document.form2.email.value.match( /^.+@.+$/ ) ) {
		alert("<%=L_CHECK_USER3%>");
		document.form2.email.focus();
		return false;
	}

	return true;
	}
//-->
</script> 


<!--#include file="../js/java_check.asp" -->


<!--webbot BOT="GeneratedScript" endspan -->
<form method="post" action="to_memberedit.asp" onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">                  
                              <table width="80%" border="0" align="center" cellpadding="2" cellspacing="2">                  
                                <tr>                   
                                  <td height="24" colspan="2">  <%=L_USER_INFO2%>:</td>                  
                                </tr>                  
                                <tr>                   
                                  <td width="90">                   
                                    <div align="right"><font color="#FF0000">**</font><%=L_USER_NETNAME%>:</div></td>                  			  <td height="24">                  
                                  <!--webbot bot="Validation"
                                  B-Value-Required="TRUE" I-Maximum-Length="30"
                                  -->          
                                  <input name="realname" type="text" id="realname" value="<%=rs("realname")%>" height="20" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" size="20" maxlength="30" >&nbsp;                  
                                  (<font color="#FF0000"><%=L_CHECK_USER25%></font>&nbsp;)</td>               
                                </tr>               
                                <tr>                
                                  <td> <div align="right"><%=L_USER_SEX%>:</div></td>               
                                  <td height="24"> <input name="sex" type="radio" value="male" <%if sex="男" then%>checked<%end if%> style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'">               
                           <%=L_USER_man%>             
                                    <input type="radio" name="sex" value="femail" <%if sex="女" then%>checked<%end if%> style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'">               
                                    <%=L_USER_g%></td>               
                                </tr>               
                                <tr>                
                                  <td> <div align="right"><%=L_USER_BIRTHDAY%>:</div></td>               
                                  <td height="24"> <select name="birthyear" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'">               
                                      <%dim i               
	  									for i = 1933 to 2003%>               
                                      <option value="<%=i%>" <%if i=birthyear then%>selected<%end if%> ><%=i%></option>               
                                      <% next %>               
                                    </select>               
                          <%=L_USER_year%>             
                                    <select name="birthmonth" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'">               
                                      <%for i = 1 to 12%>               
                                      <option value="<%=i%>" <%if i=birthmonth then%>selected<%end if%>><%=i%></option>               
                                      <%next%>               
                                    </select>               
                                   <%=L_USER_month%>               
                                    <select name="birthday" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'">               
                                      <%for i = 1 to 31%>               
                                      <option value="<%=i%>" <%if i=b_day then%>selected<%end if%>><%=i%></option>               
                                      <%next%>               
                                    </select>               
                                <%=L_USER_day%> </td>               
                                </tr>               
                                <tr>                
                                  <td> <div align="right"><%=L_USER_MPHONE%>:</div></td>               
                                  <td> <!--webbot bot="Validation"
                                    S-Data-Type="Integer"

⌨️ 快捷键说明

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