?? com_editzj.asp
字號(hào):
<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,id
id=trim(request("id"))
if not isnumeric(id) or id="" then
response.write "<li>參數(shù)錯(cuò)誤!"
response.end
end if
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [com] where id="&cstr(id)
rs.open sql,conn,1,1
%>
<meta http-equiv="Content-Language" content="zh-cn">
<title>修改資料</title>
<link href="inc_style.css" rel="stylesheet" type="text/css">
<body topmargin="0" leftmargin="0">
<div align="center">
<center>
<table width="463" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<form method="POST" name="thisForm" action="com_editzjchk.asp">
<tr>
<td width="463" bgcolor="#EEEEEE">
<table width="463" border="0" cellspacing="0" cellpadding="0" height="413">
<tr>
<td height="22" bgcolor="#EEEEEE" width="463" colspan="2">
<p align="center">修改用戶資料</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="107">
<p align="right">登陸用戶名:</td>
<td height="30" bgcolor="#EEEEEE" width="356">
<%=rs("username")%></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="107">
<p align="right">密碼:</td>
<td height="30" bgcolor="#EEEEEE" width="356">
<input type="password" maxlength="12" name="password" size="22" value="<%=rs("password")%>">
(不修改保留此項(xiàng))</td>
</tr>
<tr>
<td height="17" bgcolor="#EEEEEE" width="463" colspan="2">
<hr color="#808080" size="1" style="border-top-style: dotted; border-top-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107">
<p align="right">所屬類別:</td>
<td height="26" bgcolor="#EEEEEE">
<%
dim rsc,sqlc,class2
set rsc=server.createobject("adodb.recordset")
sqlc = "select * from class2 where class1=4 order by paixu desc"
rsc.open sqlc,conn,1,1
if rsc.eof and rsc.bof then
response.write "請(qǐng)先添加欄目。"
response.end
else
%> <SELECT name="class2" size="1">
<OPTION selected value="">==分類==</OPTION>
<%do while not rsc.eof
%><OPTION <%if rsc("id")=rs("class2") then%>selected<%end if%> value="<%=trim(rsc("id"))%>"><%=trim(rsc("class2"))%></OPTION>
<%
rsc.movenext
loop
end if
rsc.close
set rsc=nothing
%></SELECT>
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107">
<p align="right">公司/店鋪名稱:</td>
<td height="30" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="12" name="com" size="24" value="<%=rs("com")%>">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="100" bgcolor="#EEEEEE" width="107">
<p align="right">公司/店鋪簡(jiǎn)介:</td>
<td height="100" bgcolor="#EEEEEE" width="356">
<textarea rows="8" name="comabout" cols="39"><%=rs("comabout")%></textarea><font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107">
<p align="right">法人代表姓名:</td>
<td height="21" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="12" name="name" size="24" value="<%=rs("name")%>">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107">
<p align="right">法人代表證件:</td>
<td height="17" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="20" name="idcard" size="24" value="<%=rs("idcard")%>" >(身份證)<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107" align="right">
聯(lián)系電話:</td>
<td height="17" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="30" name="dianhua" size="24" value="<%=rs("dianhua")%>" >
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107" align="right">
傳真:</td>
<td height="17" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="20" name="fax" size="24" value="<%=rs("fax")%>" ></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107" align="right">
QQ:</td>
<td height="17" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="30" name="qq" size="24" value="<%=rs("qq")%>" ></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107" align="right">
email:</td>
<td height="17" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="255" name="email" size="24" value="<%=rs("email")%>" ></td>
</tr>
<tr>
<td height="24" bgcolor="#EEEEEE" width="107" align="right">
公司/店鋪地址:</td>
<td height="17" bgcolor="#EEEEEE" width="356">
<input type="text" maxlength="50" name="dizhi" size="36" value="<%=rs("dizhi")%>" ><font color="#FF0000"> *</font></td>
</tr>
<tr>
<td height="18" bgcolor="#EEEEEE" width="107">
<p align="right">
</td>
<td height="18" bgcolor="#EEEEEE" width="356">
<p>
<input border="0" type="submit" value="確認(rèn)修改" name="edit"></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
<%
rs.close
set rs=nothing
closedb
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -