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

📄 useredit.asp

📁 中国库存信息网 完整版 [已通过安全检测]Symantec AntiVirus 企业版 10.0.0.0.359 ║ ║ [病毒定义文件版本] 2006-5-5 rev.24 ║  ║ [已通
💻 ASP
字号:
<!--#include file="no.asp"-->
<!--#include file="dbconn.asp" -->
<LINK href="../Style.css" rel=stylesheet type=text/css>
<script Language="JavaScript"> 
function CheckInput() 
{ 
if (document.Form1.user.value =="") 
{ 
alert("用户名不能为空!"); 
document.Form1.user.focus(); 
return (false); 
} 
if (document.Form1.pass.value =="") 
{ 
alert("密码不能为空!"); 
document.Form1.pass.focus(); 
return (false); 
}
if (document.Form1.name.value =="") 
{ 
alert("请输入您的姓名!"); 
document.Form1.name.focus(); 
return (false); 
} 
if (document.Form1.zw.value =="") 
{ 
alert("请输入您的职务!"); 
document.Form1.zw.focus(); 
return (false); 
} 
if (document.Form1.bm.value =="") 
{ 
alert("请输入您所在的部门!"); 
document.Form1.bm.focus(); 
return (false); 
} 
if (document.Form1.address.value =="") 
{ 
alert("请输入您公司地址!"); 
document.Form1.address.focus(); 
return (false); 
} 
if (document.Form1.post.value =="") 
{ 
alert("请输入邮政编码!"); 
document.Form1.post.focus(); 
return (false); 
} 
if (document.Form1.sf.value =="") 
{ 
alert("请选择省份!"); 
document.Form1.sf.focus(); 
return (false); 
} 
if (document.Form1.city.value =="") 
{ 
alert("请输入城市名!"); 
document.Form1.city.focus(); 
return (false); 
} 
if (document.Form1.phone.value =="") 
{ 
alert("请输入您的联系电话!"); 
document.Form1.phone.focus(); 
return (false); 
} 
if (document.Form1.email.value =="") 
{ 
alert("请输入您的电子邮件地址!"); 
document.Form1.email.focus(); 
return (false); 
} 

document.Form1.submit()
} 
</script>
<%
dim sql
dim rs
sql="select * from qyml where id="&request("id")
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
%>
<form method="post" action="usersave.asp?id=<%=request("id")%>" name="Form1">
<div align="center">
<center>
      <TABLE border=0 cellspacing=0 width="98%" height="165" bordercolor="#3399FF" style="border-collapse: collapse" cellpadding="0">
        <TBODY>
          <tr> 
            <TD colspan=3 bgcolor="#e8f4ff" height=30 width="460"><b>修改注册会员信息</b></TD>
          </tr>
          <tr> 
            <TD height="10" width="145" colspan="2"></TD>
          </tr>
          <TR> 
            <TD width=39> </TD>
            <TD width=103>会员登录名:</TD>
            <TD width=312><INPUT maxLength=20 name="user" size="20" value=<%=rs("user")%>> 
              <FONT color=#990000>*</font></TD>
          </TR>
          <TR> 
            <TD width="39"> </TD>
            <TD width="103">密 码:</TD>
            <TD width="312"><INPUT maxLength=20 name=pass type=password size="20" value=<%=rs("pass")%>> <FONT color=#990000> 
              *</TD>
          </TR>
          <TR> 
            <TD width="39"> </TD>
            <TD width="103">确认密码:</TD>
            <TD width="312"> <INPUT maxLength=20 name=confirmPassword type=password value=<%=rs("pass")%> size="20"> 
              <FONT color=#990000>*</FONT></TD>
          </TR>
          <TR> 
            <TD width="39"> </TD>
            <TD width="103">密码提示问题</TD>
            <TD width="312"><INPUT maxLength=20 name=question value=<%=rs("question")%> size="20"> 
              <FONT color=#990000>*</FONT></TD>
          </TR>
          <TR vAlign="middle"> 
            <TD width="39"> </TD>
            <TD width="103">密码提示答案:</TD>
            <TD width="312"><INPUT maxLength=20 name=answer value=<%=rs("answer")%> size="20"> 
              <FONT color=#990000>*</FONT></TD>
          </TR>
          <tr> 
            <TD width="39"> </TD>
            <%if rs("ch")="先生" then%>
            <TD width="103">您的姓名:</TD>
            <TD height="29" width="482"><INPUT maxLength=100 name=name size="20" value=<%=rs("name")%>> 
              <FONT color=#990000>*</FONT>&nbsp; <INPUT name=ch type=radio value="先生" checked>
              先生 &nbsp; <INPUT name=ch type=radio value="女士">
              女士</TD>
            <%else%>
            <TD height="29" width="125"><INPUT maxLength=100 name=name size="20" value=<%=rs("name")%>> 
              <FONT color=#990000 size=2>*</FONT>&nbsp; <INPUT name=ch type=radio value="先生">
              先生 &nbsp; <INPUT name=ch type=radio value="女士" checked>
              女士</TD>
            <%end if%>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">您的职务:</TD>
            <TD width="312"><INPUT maxLength=100 name=zw size="20" value=<%=rs("zw")%>> 
            </TD>
          </tr>
          <tr> 
            <TD width="39">&nbsp;</TD>
            <TD width="103">&nbsp;</TD>
            <TD width="312">&nbsp;</TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">街道地址:</TD>
            <TD width="312"><INPUT maxLength=250 name=address size=30 value=<%=rs("address")%>> 
              <FONT color=#990000>*</FONT></TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">邮&nbsp;&nbsp;&nbsp; 编:</TD>
            <TD width="312"><INPUT class=f10 maxLength=6 name=post size=6 value=<%=rs("post")%>> 
              <FONT color=#990000>*</FONT></TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">省级地区:</TD>
            <TD width="312"> <SELECT name=sf>
                <option <%if rs("sf")="北京" then response.write "selected"%> value="北京">北京</option>
                <option <%if rs("sf")="上海" then response.write "selected"%> value="上海">上海</option>
                <option <%if rs("sf")="天津" then response.write "selected"%> value="天津">天津</option>
                <option <%if rs("sf")="重庆" then response.write "selected"%> value="重庆">重庆</option>
                <option <%if rs("sf")="黑龙江" then response.write "selected"%> value="黑龙江">黑龙江</option>
                <option <%if rs("sf")="吉林" then response.write "selected"%> value="吉林">吉林</option>
                <option <%if rs("sf")="辽宁" then response.write "selected"%> value="辽宁">辽宁</option>
                <option <%if rs("sf")="内蒙古" then response.write "selected"%> value="内蒙古">内蒙古</option>
                <option <%if rs("sf")="河北" then response.write "selected"%> value="河北">河北</option>
                <option <%if rs("sf")="新疆" then response.write "selected"%> value="新疆">新疆</option>
                <option <%if rs("sf")="甘肃" then response.write "selected"%> value="甘肃">甘肃</option>
                <option <%if rs("sf")="宁夏" then response.write "selected"%> value="宁夏">宁夏</option>
                <option <%if rs("sf")="山西" then response.write "selected"%> value="山西">山西</option>
                <option <%if rs("sf")="山东" then response.write "selected"%> value="山东">山东</option>
                <option <%if rs("sf")="青海" then response.write "selected"%> value="青海">青海</option>
                <option <%if rs("sf")="西藏" then response.write "selected"%> value="西藏">西藏</option>
                <option <%if rs("sf")="四川" then response.write "selected"%> value="四川">四川</option>
                <option <%if rs("sf")="陕西" then response.write "selected"%> value="陕西">陕西</option>
                <option <%if rs("sf")="河南" then response.write "selected"%> value="河南">河南</option>
                <option <%if rs("sf")="湖北" then response.write "selected"%> value="湖北">湖北</option>
                <option <%if rs("sf")="安徽" then response.write "selected"%> value="安徽">安徽</option>
                <option <%if rs("sf")="江苏" then response.write "selected"%> value="江苏">江苏</option>
                <option <%if rs("sf")="浙江" then response.write "selected"%> value="浙江">浙江</option>
                <option <%if rs("sf")="江西" then response.write "selected"%> value="江西">江西</option>
                <option <%if rs("sf")="湖南" then response.write "selected"%> value="湖南">湖南</option>
                <option <%if rs("sf")="贵州" then response.write "selected"%> value="贵州">贵州</option>
                <option <%if rs("sf")="云南" then response.write "selected"%> value="云南">云南</option>
                <option <%if rs("sf")="广西" then response.write "selected"%> value="广西">广西</option>
                <option <%if rs("sf")="广东" then response.write "selected"%> value="广东">广东</option>
                <option <%if rs("sf")="福建" then response.write "selected"%> value="福建">福建</option>
                <option <%if rs("sf")="海南" then response.write "selected"%> value="海南">海南</option>
                <option <%if rs("sf")="香港" then response.write "selected"%> value="香港">香港</option>
                <option <%if rs("sf")="澳门" then response.write "selected"%> value="澳门">澳门</option>
                <option <%if rs("sf")="台湾" then response.write "selected"%> value="台湾">台湾</option>
                <option <%if rs("sf")="其他" then response.write "selected"%> value="其他">其他</option>
              </select> <FONT color=#990000 size=2>*</FONT></TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">城&nbsp;&nbsp;&nbsp; 市:</TD>
            <TD width="312"><INPUT class=f11 maxLength=80 name=city size=21 value=<%=rs("city")%>> 
              <FONT color=#990000 size=2>*</FONT> </TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">电话:</TD>
            <TD width="312"><INPUT class=f10 name=phone size=30 value=<%=rs("phone")%>> 
              <FONT color=#990000 size=2>*</FONT> </TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">传&nbsp;&nbsp;&nbsp; 真:</TD>
            <TD width="312"><INPUT class=f10 name=fax size=21 value=<%=rs("fax")%>></TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">您的电子邮件:</TD>
            <TD width="312"><INPUT class=f10 maxLength=100 name=email size=30 value=<%=rs("email")%>> 
              <FONT color=#990000 size=2>*</FONT>&nbsp;</TD>
          </tr>
          <tr> 
            <TD width="39"> </TD>
            <TD width="103">网&nbsp;&nbsp;&nbsp; 址:</TD>
            <TD width="312"><INPUT class=f10 maxLength=100 name=web size=25 value=<%=rs("web")%>></td>
          </tr>
         
         
        
      
                  <TR> 
            <TD align=center colspan=3 bgcolor="#e8f4ff" width="460"><input name="提交" type="submit" onclick="CheckInput()" value=" 修改 "> 
              &nbsp;&nbsp;&nbsp; <INPUT name=Reset type=reset value=" 重填 "></TD>
          </TR>
        </TBODY>
      </TABLE>
</center>
</div>
</FORM>

⌨️ 快捷键说明

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