?? fenleiedit.asp
字號:
<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,class1,paixu
if request("cnmai")="ok" then
call ok()
response.end
end if
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [class1] where id="&cstr(request("id"))
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write "<li>參數錯誤!"
response.end
end if
class1=rs("class1")
paixu=rs("paixu")
rs.close
set rs=nothing
%>
<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 href="inc_style.css" rel="stylesheet" type="text/css">
</head>
<body>
<p align="center"><img border="0" src="img/list_bo.gif" width="600" height="12"></p>
<form method="POST" action="fenleiedit.asp?cnmai=ok&id=<%=request("id")%>">
<div align="center">
<table style="border-collapse: collapse" borderColor="#cccccc" height="68" cellSpacing="0" cellPadding="0" width="322" border="1">
<tr>
<td width="322" bgColor="#FEEEBC" height="25">
<p align="center"><b>大類修改</b></td>
</tr>
<tr>
<td style="border-bottom: medium none" align="middle" width="322" height="21">
大類名稱:<input name="class1" size="20" value="<%=class1%>"></td>
</tr>
<tr>
<td style="border-top: medium none; border-bottom: medium none" align="middle" width="322" height="25">
排序數字:<input value="<%=paixu%>" name="paixu" size="20"></td>
</tr>
<tr>
<td style="border-top: medium none" width="322" height="25">
<p align="center">
<input style="color: #000000; " type="submit" value=" 提 交 " name="B1"></td>
</tr>
</table>
</div>
</form>
</body>
</html>
<%
sub ok()
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [class1] where id="&cstr(request("id"))
rs.open sql,conn,1,3
rs("class1")=request("class1")
rs("paixu")=request("paixu")
rs.update
rs.close
set rs=nothing
response.write "<li>修改大類成功!<br>"
response.write "<li>刷新后可以看到結果!"%>
<body onLoad="setTimeout(window.close, 3000)">
<%
end sub
closedb
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -