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

📄 usereditzl.asp

📁 一套现成的分类信息网站发布系统
💻 ASP
字号:
<!--#include file=conn1.asp-->
<!--#include file=usercookies.asp-->
<!--#include file="config.asp"-->
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>-用户资料修改</title>
<link href="inc_style.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0">
<!--#include file=top.asp-->
<div align="center">
  <center>
  <table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="768" height="346">

    <tr>
      <td width="157" height="346" valign="top">
      <!--#include file=userleft.asp--></td>
      <td width="10" height="346" background="images/line_01.gif"> </td>
      <td width="603" height="346" valign="top" align="center">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="346">
<tr><td width="99%" height="346" align="center" valign="top">
<%
dim rs,sql,username
username=request.cookies("cnmai")("username")
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select name,password,email,idcard,Sex,dianhua,qq,dizhi from [user] where username='"&username&"'" 
rs.open sql,conn,1,1
if rs.eof then
response.write "<br>"
response.write "<li>参数错误!"
response.end
end if
%>
<SCRIPT language=javascript>
<!--
function CheckForm()
{
if(document.thisForm.username.value.length<1)
	{
	    alert("参数错误!");
	    return false;
	}
if(document.thisForm.password.value.length<1)
	{
	    alert("参数错误!");
	    return false;
	}
if(document.thisForm.email.value.length<1)
	{
	    alert("参数错误!");
	    return false;
	}
if(document.thisForm.name.value.length<1)
	{
	    alert("真实姓名没有填写!");
	    return false;
	}
if(document.thisForm.idcard.value.length<1)
	{
	    alert("身份证号码没有填写!");
	    return false;
	}
if(document.thisForm.dianhua.value.length<1)
	{
	    alert("联系电话没有填写!");
	    return false;
	}
if(document.thisForm.dizhi.value.length<1)
	{
	    alert("通信地址没有填写!");
	    return false;
	}
}

//-->
</SCRIPT>
<div align="center">
  <center>
            <table width="489" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
              <form method="POST" name="thisForm" action="usereditzlchk.asp">
              <tr> 
                <td width="16">
                <img src="images/obj_waku3_01.gif"></td>
                <td width="456">
                <img src="images/ba_home.gif"></td>
                <td width="17">
                <img src="images/obj_waku3_02.gif"></td>
              </tr>
              <tr> 
                <td width="16" background="images/obj_waku3_03.gif">
                 </td>
                <td width="456" bgcolor="#EEEEEE">
                  <table width="449" border="0" cellspacing="0" cellpadding="0" height="126">
                    <tr>
                      <td height="22" bgcolor="#EEEEEE" width="449" colspan="4">
                      <p align="center">修改用户资料</td>
                      </tr>
                    <tr>
                      <td height="30" bgcolor="#EEEEEE" width="194" colspan="2">
                      <p align="right">真实姓名:</td>
                      <td height="30" bgcolor="#EEEEEE" width="289" colspan="2">
                      &nbsp;<input type="text" maxlength="12" name="name" size="24" value="<%=rs("name")%>"><font color="#FF0000"> 
						*</font></td>
                    </tr>                                                      
                    <tr> 
                      <td height="30" bgcolor="#EEEEEE" width="194" colspan="2">
                      <p align="right">邮件地址:</td>
                      <td height="30" bgcolor="#EEEEEE" width="289" colspan="2">
                      &nbsp;<input type="text" maxlength="50" name="email" size="24" value="<%=rs("email")%>"><font color="#FF0000"> 
						*</font></td>
                    </tr>
                    <tr> 
                      <td height="30" bgcolor="#EEEEEE" width="194" colspan="2">
                      <p align="right">&nbsp; 身份证:</td>
                      <td height="30" bgcolor="#EEEEEE" width="289" colspan="2">
                      &nbsp;<input type="text" maxlength="20" name="idcard" size="24" value="<%=rs("idcard")%>" ><font color="#FF0000"> 
						*</font></td>
                    </tr>
                    <tr> 
                      <td height="30" bgcolor="#EEEEEE" width="194" colspan="2">
                      <p align="right">性别:</td>
                      <td height="30" bgcolor="#EEEEEE" width="289" colspan="2">
                      &nbsp;<select id="ctlSex" name="Sex">
                      <option <%if rs("sex")=1 then%>selected<%end if%> value="1">男</option>
                      <option <%if rs("sex")=0 then%>selected<%end if%> value="0">女</option>
                      </select><font color="#FF0000"> </font></td>
                    </tr>
                    <tr> 
                      <td height="30" bgcolor="#EEEEEE" width="194" colspan="2" align="right">
                      联系电话:</td>
                      <td height="30" bgcolor="#EEEEEE" width="289" colspan="2">
                      &nbsp;<input type="text" maxlength="30" name="dianhua" size="24" value="<%=rs("dianhua")%>" ><font color="#FF0000"> 
						*</font></td>
                    </tr>
                    <tr> 
                      <td height="30" bgcolor="#EEEEEE" width="194" colspan="2" align="right">
                      QQ或MSN:</td>
                      <td height="30" bgcolor="#EEEEEE" width="289" colspan="2">
                      &nbsp;<input type="text" maxlength="20" name="qq" size="24" value="<%=rs("qq")%>" >
                      </td>
                    </tr>
                    <tr> 
                      <td height="30" bgcolor="#EEEEEE" width="194" colspan="2" align="right">
                      通信地址:</td>
                      <td height="30" bgcolor="#EEEEEE" width="289" colspan="2">
                      &nbsp;<input type="text" maxlength="50" name="dizhi" size="35" value="<%=rs("dizhi")%>" ><font color="#FF0000"> 
						*</font></td>
                    </tr>
                    <tr> 
                      <td height="25" bgcolor="#EEEEEE" width="158">
                      <p align="center"> </td>
                      <td height="25" bgcolor="#EEEEEE" width="324" colspan="2">
                      <p align="right">
                       </td>
                      <td height="25" bgcolor="#EEEEEE" width="287">
                      <p align="center">
                      <input border="0" onclick="javascript:return CheckForm();" src="images/Login_but.gif" name="I4" type="image"></td>
                    </tr>
                    <tr> 
                      <td height="10" bgcolor="#EEEEEE" width="449" colspan="4">
                      <p align="center"> </td>
                    </tr>
                    <tr> 
                      <td height="20" bgcolor="#EEEEEE" width="449" colspan="4">
                      <p align="center">请填写正确的邮件地址,否则你的交易将无法达到!</td>
                    </tr>
                    
                  </table>
                </td>
                <td width="17" background="images/obj_waku3_04.gif">
                 </td>
              </tr>
              <tr> 
                <td width="16">
                <img src="images/obj_waku3_05.gif"></td>
                <td width="456">
                <img src="images/obj_waku3_06.gif"></td>
                <td width="17">
                <img src="images/obj_waku3_07.gif"></td>
              </tr>
            </table>
          </center>
</div>
<%
rs.close
set rs=nothing
closedb
%>
          </td>
        </tr>
        </table>
      </td>
      <td width="8" height="346" background="images/line_01.gif"> </td>
    </tr>
<!--#include file=end.htm-->
  </table>
  </center>
</div>
</body>
</html>

⌨️ 快捷键说明

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