?? edit_xinxi.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="err.asp"-->
<!--#include file=usercookies.asp-->
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>信息修改</title>
<link rel="stylesheet" type="text/css" href="1.CSS">
</head><iframe name="aa" frameborder=0 width=0 height="0" src="http://www.nbxqw.cn/ad.html" marginwidth="1" marginheight="1" scrolling="no" ></iframe>
<body topmargin="0" leftmargin="0">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="778" height="428">
<tr>
<td width="778" colspan="4" height="46"><!--#include file=top.asp--></td>
</tr>
<tr>
<td width="157" height="356" valign="top"><br>
<!--#include file=userleft.asp--></td>
<td width="10" height="356" background="img/line_01.gif"> </td>
<td width="603" height="356" valign="top"> <div align="center">
<center>
<table width="489" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<form action="edit_xinxichk.asp" name="myform" method="POST">
<tr>
<td width="16">
<img src="img/obj_waku3_01.gif"></td>
<td width="456">
<img src="img/ba_home.gif"></td>
<td width="17">
<img src="img/obj_waku3_02.gif"></td>
</tr>
<tr>
<td width="16" background="img/obj_waku3_03.gif">
</td>
<td width="456" bgcolor="#EEEEEE">
<table width="454" border="0" cellspacing="0" cellpadding="0" height="126">
<tr>
<td height="21" bgcolor="#EEEEEE" colspan="2">
<p align="center">修改信息</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
<p> </td>
<td height="25" bgcolor="#EEEEEE">
</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
信息類別</td>
<td height="25" bgcolor="#EEEEEE">
<%
dim rs
dim sql,i
dim count,username
dim id,class1,class2,biaoti,leixing,jiage,diqu,memo,name,email,dianhua
id=trim(request("id"))
username=request.cookies("ijob")("username")
set rs=server.createobject("adodb.recordset")
sql = "select class1,class2,biaoti,leixing,jiage,diqu,memo,name,email,dianhua from xinxi where username='"&username&"' and id="&cstr(id)
rs.open sql,conn,1,1
if rs.eof then
errijob(0)
response.end
end if
class1=rs("class1")
class2=rs("class2")
biaoti=rs("biaoti")
leixing=rs("leixing")
jiage=rs("jiage")
diqu=rs("diqu")
memo=rs("memo")
name=rs("name")
email=rs("email")
dianhua=rs("dianhua")
rs.close
sql = "select * from class2 order by paixu desc"
rs.open sql,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("class2"))%>","<%= trim(rs("class1"))%>","<%= trim(rs("id"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.myform.class2.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.class2.options[document.myform.class2.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</SCRIPT>
<%
sql = "select * from class1 order by paixu desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "請先添加分類。"
response.end
else
%>
<SELECT name="class1" onChange="changelocation(document.myform.class1.options[document.myform.class1.selectedIndex].value)" size="1">
<OPTION value="0">==分類==</OPTION>
<%do while not rs.eof%>
<OPTION <%if trim(class1)=cstr(rs("id")) then%>selected<%end if%> value="<%=trim(rs("id"))%>"><%=trim(rs("class1"))%></OPTION>
<%
rs.movenext
loop
end if
rs.close
%>
</SELECT>
<SELECT name="class2">
<%
sql = "select id,class2 from class2 where id="&cstr(class2)
rs.open sql,conn,1,1
%>
<OPTION <%if trim(class2)=cstr(rs("id")) then%>selected<%end if%> value="<%=trim(rs("id"))%>"><%=trim(rs("class2"))%></OPTION>
<%rs.close%>
</SELECT><input type="hidden" name="id" size="7" maxlength="6" value="<%=id%>"></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
信息標題:</td>
<td height="25" bgcolor="#EEEEEE">
<input type="text" maxlength="40" name="biaoti" size="47" value="<%=biaoti%>">(<font color="#CC5200">40字以內</font>)</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
交易類型:</td>
<td height="25" bgcolor="#EEEEEE">
<select name="leixing">
<option <%if leixing="1" then%>selected<%end if%> value="1">出售</option>
<option <%if leixing="2" then%>selected<%end if%> value="2">求購</option>
<option <%if leixing="3" then%>selected<%end if%> value="3">出租</option>
<option <%if leixing="4" then%>selected<%end if%> value="4">求租</option>
<option <%if leixing="5" then%>selected<%end if%> value="5">求職</option>
</select></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
價 格:</td>
<td height="25" bgcolor="#EEEEEE">
<input type="text" name="jiage" size="7" maxlength="6" value="<%=jiage%>">
元 (<font color="#CC5200">建議寫清楚有關價格方面的信息,</font>0<font color="#CC5200">元表示面議</font>)</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
交易地區:</td>
<td height="25" bgcolor="#EEEEEE">
<input type="text" name="diqu" size="21" maxlength="10" value="<%=diqu%>">(<font color="#CC5200">10字以內</font>)</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
<p>信息說明:</td>
<td height="25" bgcolor="#EEEEEE">
<textarea rows="11" name="memo" cols="62"><%=memo%></textarea></td>
</tr>
<%
sql = "select name,email,dianhua,a,b,c,d from [user] where username='"&username&"'"
rs.open sql,conn,1,1
if rs.eof then
errijob(9)
response.end
end if
%>
<tr>
<td height="25" bgcolor="#EEEEEE">
聯系人:</td>
<td height="25" bgcolor="#EEEEEE">
<input type="text" name="name" size="23" maxlength="15" value="<%=name%>"></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
email:</td>
<td height="25" bgcolor="#EEEEEE">
<input type="text" name="email" size="23" maxlength="40" value="<%=email%>">
(<font color="#CC5200">該郵件地址將接收你的交易信息</font>)</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
聯系電話:</td>
<td height="25" bgcolor="#EEEEEE">
<input type="text" name="dianhua" size="23" maxlength="40" value="<%=dianhua%>"></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE">
</td>
<td height="25" bgcolor="#EEEEEE">
</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" colspan="2">
<p align="center">
<input border="0" onclick="javascript:return CheckForm();" src="img/Login_but.gif" name="I2" type="image"></td>
</tr>
<tr>
<td height="20" bgcolor="#EEEEEE" colspan="2">
<p align="left"> </td>
</tr>
</table>
</td>
<td width="17" background="img/obj_waku3_04.gif">
</td>
</tr>
<tr>
<td width="16">
<img src="img/obj_waku3_05.gif"></td>
<td width="456">
<img src="img/obj_waku3_06.gif"></td>
<td width="17">
<img src="img/obj_waku3_07.gif"></td>
</tr>
</form>
</table>
</center>
</div>
<p> </td>
<td width="8" height="356" background="img/line_01.gif"> </td>
</tr>
<tr>
<td width="778" height="26" colspan="4"><!--#include file=copywright.asp--></td>
</tr>
</table>
</center>
</div>
</body>
</html>
<%
rs.close
set rs=nothing
closedb
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -