?? 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 字符,只允許數(shù)字和英文字母</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="調(diào)味品類">調(diào)味品類</option>
<option value="土特產(chǎn)類">土特產(chǎn)類</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%">公司網(wǎng)頁:</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%">聯(lián)系人:</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%">聯(lián)系電話:</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="內(nèi)蒙古"> 內(nèi)蒙古 </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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -