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

📄 modifyinfo2.asp

📁 该系统可对信息系统尽行有效的分类管理
💻 ASP
字号:
<!--#include file="Conn.asp"-->
<%
userid=trim(Request("userid"))

'判断接受的帐号是否符合要求
if userid="" then 
  Response.Write "<script language=JavaScript>{window.alert('登录帐号不得为空!');window.history.go(-1);}</script>"
end if
if instr(1,userid,",")>=1 then 
  Response.Write "<script language=JavaScript>{window.alert('登录帐号不得包含逗号!');window.history.go(-1);}</script>"
end if
if instr(1,userid,"'")>=1 then 
  Response.Write "<script language=JavaScript>{window.alert('登录帐号不得包含单引号!');window.history.go(-1);}</script>"
end if



'判断帐号及密码是否正确 
 set recCheckUser=server.CreateObject("ADODB.recordset")
 uid=trim(Request("userid"))
 upwd=trim(Request("password"))
 strSQL="select * from userinfo where txtId='" & uid & "' and txtPass='" & upwd & "'"
 recCheckUser.Open  strSQL,conn
 
  if not recCheckUser.EOF then
 	'如果用户帐号及密码正确
  	
   	'用户进入
 else
 	'用户帐号及密码不正确
  	recCheckUser.Close 
  	set recCheckUser=nothing
  	set conn=nothing
	Response.Write "<script language=JavaScript>{window.alert('您输入的帐号及密码错误,请重新输入!');window.history.go(-1);}</script>"
	response.end
end if 
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/putong_1t">
<script language="javascript" src="../share/fun_script.js"></script>
<STYLE TYPE="text/css">
<!--
td.grzmRow
{
	padding:0px 4px 0px 4px;	  
}
td.grzmList
{
	padding:0px 4px 0px 0px;	  
}
-->
</style>

<title>用户资料修改</title>
</HEAD>
<BODY leftmargin="0" topmargin="0" oncontextmenu=self.event.returnValue=false>
<div id="proc" name="proc">
  <!--#include file="top.htm"-->
</div>	             
<form ACTION="modifyinfook.asp" METHOD="POST" NAME="formSignUp">  
<input type=hidden name=txtid value=<%=recCheckUser("txtid")%>>           
  <div class="TitleBar">   </div>             
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="580" height="400">
    <tr>
      <td>
        <div align="center">
            <table border="0" cellpadding="0" cellspacing="0" width="578" height="398" >
              <tr> 
                <td align=right height=18 width="21%">密码:</td>
                <td height=18 width="79%"> <input name=txtPass maxLength=10 size=15 value=<%=recCheckUser("txtPass")%>> 
                  <font color=#ff0000>*</font><font color="#009999"><span class=tips_reg style="FONT-SIZE: 9pt">1--10 
                  字符,只允许数字和英文字母</span>.</font></td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">公司名称:</td>
                <td height=18 width="79%"> <input name=txtCompany maxLength=50 size=30 value=<%=recCheckUser("txtCompany")%>> 
                  <font color=#ff0000>*</font></td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">公司网页:</td>
                <td height=18 width="79%"> <input name=txtUrl maxLength=50 size=30 value=<%=recCheckUser("txturl")%>> 
                </td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">联系人:</td>
                <td height=18 width="79%"> <input name=txtContect maxLength=20 size=15 value=<%=session("txtcontect")%>>
                  <font color=#ff0000>*</font><%=rs("txtContect")%>1</td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">联系电话:</td>
                <td height=18 width="79%"> <input name=txtTel maxLength=50 size=30 value=<%=recCheckUser("txttel")%>> 
                </td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">传真号码:</td>
                <td height=18 width="79%"> <input name=txtFax maxLength=50 size=30 value=<%=recCheckUser("txtfax")%>> 
                </td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">电子邮箱:</td>
                <td height=18 width="79%"> <input name=txtEmail maxLength=50 size=30 value=<%=recCheckUser("txtemail")%>> 
                  <font color=#ff0000>*</font></td>
              </tr>
              <tr> 
                <td align=right height=25 width="21%">省份:</td>
                <td height=25 width="79%"> <select name=txtProv size=1>
                    <OPTION  VALUE="<%=recCheckUser("txtprov")%>" selected>&nbsp;&nbsp;<%=recCheckUser("txtprov")%>&nbsp;&nbsp;</option>
                    <OPTION  VALUE="广东" >&nbsp;&nbsp;广东&nbsp;&nbsp;</option>
                    <OPTION  VALUE="安徽">&nbsp;&nbsp;安徽&nbsp;&nbsp;</option>
                    <OPTION  VALUE="广州">&nbsp;&nbsp;广州&nbsp;&nbsp;</option>
                    <OPTION  VALUE="福建">&nbsp;&nbsp;福建&nbsp;&nbsp;</option>
                    <OPTION  VALUE="甘肃">&nbsp;&nbsp;甘肃&nbsp;&nbsp;</option>
                    <OPTION  VALUE="广西">&nbsp;&nbsp;广西&nbsp;&nbsp;</option>
                    <OPTION  VALUE="贵州">&nbsp;&nbsp;贵州&nbsp;&nbsp;</option>
                    <OPTION  VALUE="海南">&nbsp;&nbsp;海南&nbsp;&nbsp;</option>
                    <OPTION  VALUE="河北">&nbsp;&nbsp;河北&nbsp;&nbsp;</option>
                    <OPTION  VALUE="河南">&nbsp;&nbsp;河南&nbsp;&nbsp;</option>
                    <OPTION  VALUE="黑龙江">&nbsp;&nbsp;黑龙江&nbsp;&nbsp;</option>
                    <OPTION  VALUE="湖北">&nbsp;&nbsp;湖北&nbsp;&nbsp;</option>
                    <OPTION  VALUE="湖南">&nbsp;&nbsp;湖南&nbsp;&nbsp;</option>
                    <OPTION  VALUE="吉林">&nbsp;&nbsp;吉林&nbsp;&nbsp;</option>
                    <OPTION  VALUE="江苏">&nbsp;&nbsp;江苏&nbsp;&nbsp;</option>
                    <OPTION  VALUE="江西">&nbsp;&nbsp;江西&nbsp;&nbsp;</option>
                    <OPTION  VALUE="辽宁">&nbsp;&nbsp;辽宁&nbsp;&nbsp;</option>
                    <OPTION  VALUE="内蒙古">&nbsp;&nbsp;内蒙古&nbsp;&nbsp;</option>
                    <OPTION  VALUE="宁夏">&nbsp;&nbsp;宁夏&nbsp;&nbsp;</option>
                    <OPTION  VALUE="青海">&nbsp;&nbsp;青海&nbsp;&nbsp;</option>
                    <OPTION  VALUE="山东">&nbsp;&nbsp;山东&nbsp;&nbsp;</option>
                    <OPTION  VALUE="山西">&nbsp;&nbsp;山西&nbsp;&nbsp;</option>
                    <OPTION  VALUE="陕西">&nbsp;&nbsp;陕西&nbsp;&nbsp;</option>
                    <OPTION  VALUE="上海">&nbsp;&nbsp;上海&nbsp;&nbsp;</option>
                    <OPTION  VALUE="四川">&nbsp;&nbsp;四川&nbsp;&nbsp;</option>
                    <OPTION  VALUE="天津">&nbsp;&nbsp;天津&nbsp;&nbsp;</option>
                    <OPTION  VALUE="新疆">&nbsp;&nbsp;新疆&nbsp;&nbsp;</option>
                    <OPTION  VALUE="西藏">&nbsp;&nbsp;西藏&nbsp;&nbsp;</option>
                    <OPTION  VALUE="云南">&nbsp;&nbsp;云南&nbsp;&nbsp;</option>
                    <OPTION  VALUE="浙江">&nbsp;&nbsp;浙江&nbsp;&nbsp;</option>
                    <OPTION  VALUE="重庆">&nbsp;&nbsp;重庆&nbsp;&nbsp;</option>
                  </select> <font color=#ff0000>*</font></td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">详细地址:</td>
                <td height=18 width="79%"> <input name=txtAddress maxLength=50 size=50 value=<%=recCheckUser("txtaddress")%>> 
                  <font color=#ff0000>*</font></td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%">简短描述:</td>
                <td height=18 width="79%"> <textarea cols=49 name=txtDesc rows=8><%=recCheckUser("txtdesc")%></textarea> 
                  <font color=#ff0000>*</font> </td>
              </tr>
              <tr> 
                <td align=right height=18 width="21%"></td>
                <td height=18   width="79%"> <p align="center"> 
                    <input name="cmdOK" type="submit" value=修改资料>
                    &nbsp;&nbsp;&nbsp;&nbsp; 
                    <input name="cmdReset" type="reset" value=重置资料>
                  </p></td>
              </tr>
              <tr> 
                <td valign="top"> </center> </td>
              </tr>
            </table>               
        </div>               
      </td>               
    </tr>               
  </table>               
</div>               
</form>                   
<!--#include file="copyright.htm"-->
</BODY>                   

⌨️ 快捷键说明

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