📄 modifyinfo2.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 NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<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;
}
body
{
background-color:#F7EBDE;
}
-->
</style>
<title>个人桌面</title>
</HEAD>
<BODY oncontextmenu=self.event.returnValue=false>
<div id="proc" name="proc">
</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=25 width="21%"></td>
<td height=25 width="79%">
<font color="#ff0000"> </font></td>
</tr>
<tr>
<td align=right height=25 width="21%">主营类别:</td>
<td height=25 width="79%">
<select name=txtCat size=1>
<option selected value="<%=recCheckUser("txtCat")%>"><%=recCheckUser("txtCat")%></option>
<option value="蛋品">蛋品</option>
<option value="调味品类">调味品类</option>
<option value="土特产类">土特产类</option>
<option value="粮油类">粮油类</option>
<option value="豆及豆制品类">豆及豆制品类</option>
<option value="茶叶类">茶叶类</option>
<option value="药材海味类">药材海味类</option>
<option value="蔬菜类">蔬菜类</option>
<option value="水果类">水果类</option>
<option value="冻品类">冻品类</option>
<option value="其他类">其他类</option>
<option value="副食类">副食类</option>
</select>
<font color=#ff0000>*</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=<%=recCheckUser("txtcontect")%>>
<font color=#ff0000>*</font></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> <%=recCheckUser("txtprov")%> </option>
<OPTION VALUE="广东" > 广东 </option>
<OPTION VALUE="安徽"> 安徽 </option>
<OPTION VALUE="北京"> 北京 </option>
<OPTION VALUE="福建"> 福建 </option>
<OPTION VALUE="甘肃"> 甘肃 </option>
<OPTION VALUE="广西"> 广西 </option>
<OPTION VALUE="贵州"> 贵州 </option>
<OPTION VALUE="海南"> 海南 </option>
<OPTION VALUE="河北"> 河北 </option>
<OPTION VALUE="河南"> 河南 </option>
<OPTION VALUE="黑龙江"> 黑龙江 </option>
<OPTION VALUE="湖北"> 湖北 </option>
<OPTION VALUE="湖南"> 湖南 </option>
<OPTION VALUE="吉林"> 吉林 </option>
<OPTION VALUE="江苏"> 江苏 </option>
<OPTION VALUE="江西"> 江西 </option>
<OPTION VALUE="辽宁"> 辽宁 </option>
<OPTION VALUE="内蒙古"> 内蒙古 </option>
<OPTION VALUE="宁夏"> 宁夏 </option>
<OPTION VALUE="青海"> 青海 </option>
<OPTION VALUE="山东"> 山东 </option>
<OPTION VALUE="山西"> 山西 </option>
<OPTION VALUE="陕西"> 陕西 </option>
<OPTION VALUE="上海"> 上海 </option>
<OPTION VALUE="四川"> 四川 </option>
<OPTION VALUE="天津"> 天津 </option>
<OPTION VALUE="新疆"> 新疆 </option>
<OPTION VALUE="西藏"> 西藏 </option>
<OPTION VALUE="云南"> 云南 </option>
<OPTION VALUE="浙江"> 浙江 </option>
<OPTION VALUE="重庆"> 重庆 </option>
</select>
<font color=#ff0000>*</font></td>
</tr>
<tr>
<td align=right height=18 width="21%">城市:</td>
<td height=18 width="79%">
<input name=txtCity maxLength=20 size=15 value=<%=recCheckUser("txtcity")%>>
<font color=#ff0000>*</font></td>
</tr>
<tr>
<td align=right height=18 width="21%">邮政编码:</td>
<td height=18 width="79%">
<input name=txtPost maxLength=8 size=15 value=<%=recCheckUser("txtpost")%>>
<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=修改资料> <input name="cmdReset" type="reset" value=重置资料>
</p>
</td>
</tr>
<tr>
<td valign="top">
</center>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</form>
</BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -