?? modcom.asp
字號:
<!--#include file="../dbconn.asp"-->
<%
sql="select * from company where username='" & Request("user_name") & "'"
set Rs=conn.Execute(sql)
if Request("user_name")="" or Request("pwd")="" then
Response.Redirect "comlogin.htm"
end if
%>
<HTML>
<HEAD>
<META HTTP-EQUIV=Content-Type CONTENT="text/html; charset=gb2312">
<TITLE>修改公司信息</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../css/cdol.css">
<script language="JavaScript">
<!-- Hide
function test(form) {
if (form.company_name.value == ""){
alert("請輸入您公司的名字 !");
return false;
}
if (isNaN(form.zipcode.value) ){
alert("郵政編碼請輸入數(shù)字 !");
return false;
}
else if(form.zipcode.value.length != 6){
alert("郵政編碼請輸入6位數(shù)字 !");
return false;
}
if (form.company_email.value == "" ||
form.company_email.value.indexOf('@', 0) == -1){
alert(" e-mail address 不正確! 請再輸入一次!");
return false;
}
if (form.user_pass_1.value ==""){
alert("請輸入您的密碼!");
return false;
}
if (form.user_pass_2.value=="" || form.user_pass_2.value != form.user_pass_1.value ){
alert("您的確認密碼不正確,請重新輸入!")
return false;
}
return true;
}
// -->
</script>
</head>
<body topmargin=0 marginheight=0 bgColor=#E6E5B8 text="#383098">
<%If Rs.Bof OR Rs.Eof Then
Response. Write "<html><body><center>我們的數(shù)據(jù)庫中沒有查到您的用戶名,請先注冊新用戶<p>"
Response.Write "<a href='postcom.htm'> 注冊新用戶 </a>"
Response.Write "</center></body></html>"
Else
If trim(Request("pwd"))<>Rs("pwd") Then
Response. Write "<html><body><center>密碼出錯,請檢查是否大小寫不對。<p>"
Response.Write "<a href='comlogin.htm'> 返回 </a>"
Response.Write "</center></body></html>"
else%>
<table border="0" cellpadding="0" cellspacing="0"
width="52%" dwcopytype="CopyTableRow" height="613" align="center">
<form method="post" onSubmit="return test(this)" action="update.asp" >
<tr>
<td align="center" width="23%" height="40"
class="p3">公司名稱:</td>
<td width="77%" height="40">
<input type="text"
size="26" name="company_name" value="<%=rs("name")%>">(*)
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">法人代表: </td>
<td width=77% height="40">
<input type="text"
size="26" name="company_owner" value="<%=rs("owner")%>">(*)
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">所在行業(yè):</td>
<td width=77% height="40">
<select name="company_class" size="1" style="width: 195; height: 23">
<option selected>請選擇</option>
<option value="計算機/通訊">計算機/通訊</option>
<option value="辦公設(shè)備/家電">辦公設(shè)備/家電</option>
<option value="貿(mào)易/銷售/市場">貿(mào)易/銷售/市場</option>
<option value="秘書/行政/翻譯">秘書/行政/翻譯</option>
<option value="人力資源">人力資源</option>
<option value="金融/財會">金融/財會</option>
<option value="公關(guān)/廣告/媒體">公關(guān)/廣告/媒體</option>
<option value="法律/咨詢">法律/咨詢</option>
<option value="機械/儀器/儀表">機械/儀器/儀表</option>
<option value="醫(yī)藥/化工">醫(yī)藥/化工</option>
<option value="建筑建材/熱能工程">建筑建材/熱能工程</option>
<option value="倉儲/運輸/后勤">倉儲/運輸/后勤</option>
<option value="食品/旅游">食品/旅游</option>
<option value="汽車">汽車</option>
<option value="其他">其他</option>
</select>(*)
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">公司地址: </td>
<td width=77% height="40">
<input type="text"
size="26" name="company_address" value="<%=rs("address")%>">(*)
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">郵政編碼:</td>
<td width=77% height="40">
<input type="text"
size="26" name="zipcode" value="<%=rs("zipcode")%>">(*)
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">E-mail:</td>
<td width=77% height="40">
<input type="text" name="company_email" value="<%=rs("email")%>" size="26">(*)
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">聯(lián)系電話:</td>
<td width=77% height="40">
<input type="text" name="tel" size="26" value="<%=rs("tel")%>">
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">公司傳真:</td>
<td width=77% height="40">
<input type="text" name="fax" value="<%=rs("fax")%>" size="26">
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">公司網(wǎng)址:</td>
<td width=77% height="40">
<input type="text" name="web_site" value="<%=rs("web")%>" size="26">
</td>
</tr>
<tr>
<td align="center" width=23% height="93"
class="p3">公司簡介:</td>
<td width=77% height="93">
<textarea name="company_info" cols="30" rows="4"><%=rs("info")%></textarea>
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">用戶名:</td>
<td width=77% height="40">
<%=rs("username")%> </td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">密 碼: </td>
<td width=77% height="40">
<input
type="password" size="20" name="user_pass_1" value="<%=rs("pwd")%>">
</td>
</tr>
<tr>
<td align="center" width=23% height="40"
class="p3">確認密碼: </td>
<td width=77% height="40">
<input
type="password" size="20" name="user_pass_2" value="">
</td>
</tr>
<tr>
<td align="right" width="23%" height="40"
class="p3">
<input type="hidden" name="ID" value="<%=rs("userid")%>">
</td>
<td width=77% height="40">
<p align="left">
<input type="submit" name="Submit"
value="提交修改" class="p3"> <INPUT class=p3 name=Submit2 type=reset value=重新填寫>
</p>
</td>
</tr> </form>
</table>
<%end if
end if
conn.Close
set conn=nothing %>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -