⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ceditok.asp

📁 wap建站
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.asp"-->
<% if pno="" then response.redirect "index.asp" %>
<%
ids=request("ids")
ClassName=request("ClassName")
order=request("order")

dim errr
errr=0
if ids=0 and order<>0 then errr=1
if ids<>0 and order=0 then errr=2

if errr=1 then eer="请保证默认分类栏目编号始终为0<br/>"
if errr=2 then eer="请保证非默认分类栏目编号始终大于0<br/>"
if errr<>1 and errr<>2 then

set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [bookclass] where [num]='" & pno & "' and ClassID=" & ids
rs.open rsstr,conn,1,2

if ClassName<>"" then rs("ClassName")=ClassName
if order<>"" then rs("ClassID")=order
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
%>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card title="修改成功" ontimer="class.asp">
<timer value="20"/>
<p>
<%if eer="" then%>
编辑成功,<br/>
正在返回栏目管理!<br/>
<%else%>
<%=eer%>
<%end if%>
----------<br/>
<a href="class.asp">[栏目管理]</a><br/>
<a href="index.asp">[我的书签]</a><br/>
</p>
</card>
</wml>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -