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

📄 admin_booksave.asp

📁 功能强大 首发! 演示地址:http://jsice.com QQ:3300828 运行环境: Internet Information Server 5.x or 6.0 (ii
💻 ASP
字号:
<!--#include file="../conn.asp"-->
<!--#include file="../inc/config.asp"-->
<!-- #include file="session.asp" -->
<link href="css.css" rel="stylesheet" type="text/css">
<%

id=request.QueryString("id")
act=request("act")

set rs=server.CreateObject("ADODB.RecordSet")
if act="lock" then
	sql="select Lock_book from [list_book] where id="&id
	rs.open sql,conn,1,3
	if not rs.eof then
		if rs("Lock_book")=0 then
			rs("Lock_book")=1
		else
			rs("Lock_book")=0
		end if
		rs.update
	end if
	rs.close
elseif act="goVip" then
	sql="select IsVip from [list_book] where id="&id
	rs.open sql,conn,1,3
	if not rs.eof then
		if rs("IsVip")=0 then
			rs("IsVip")=1
		else
			rs("IsVip")=0
		end if
		rs.update
	end if
	rs.close
elseif act="IsGood" then
	sql="select IsGood from [list_book] where id="&id
	rs.open sql,conn,1,3
	if not rs.eof then
		if rs("IsGood")=0 or  rs("IsGood")=9 then
			rs("IsGood")=1
		elseif rs("IsGood")=1 Then
			rs("IsGood")=9
		end if
		rs.update
	end if
	rs.close
elseif act="Isweb_good" then
	sql="select Isweb_good from [list_book] where id="&id
	rs.open sql,conn,1,3
	if not rs.eof then
		if rs("Isweb_good")=0 or rs("Isweb_good")=9 then
			rs("Isweb_good")=1
		elseif rs("Isweb_good")=1 Then
			rs("Isweb_good")=9
		end if
		rs.update
	end if
	rs.close
elseif act="listvv_good" then
	sql="select listvv_good from [list_book] where id="&id
	rs.open sql,conn,1,3
	if not rs.eof then
		if rs("listvv_good")=0 or rs("listvv_good")=9 then
			rs("listvv_good")=1
		elseif rs("listvv_good")=1 then
			rs("listvv_good")=9
		end if
		rs.update
	end if
	rs.close
elseif act="goVip" then
	sql="select IsVip from [list_book] where id="&id
	rs.open sql,conn,1,3
	if not rs.eof then
		if rs("IsVip")=0 then
			rs("IsVip")=1
		else
			rs("IsVip")=0
		end if
		rs.update
	end if
	rs.close
end if
set rs=nothing
conn.close
set conn=nothing
response.write ("<script>opener.location.reload();</script>")
Call ShowAdminSuccessMsg("操作成功!","javascript:window.close()")
%>

⌨️ 快捷键说明

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