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

📄 config_save.asp

📁 这是我根据动网新闻核心自行设计的校园新闻系统
💻 ASP
字号:
<%
pageadmin=10
%>
<!--#include file="../login/check.asp" -->
<!--#include file="../../inc/conn.asp" -->
<!--#include file="../../inc/function.asp" -->
<%
Dim rs
Dim openwindow
Dim windowwidth
Dim windowheight
Dim source
Dim writer
openwindow=Request.Form("openwindow")
windowwidth=Request.Form("windowwidth")
windowheight=Request.Form("windowheight")
source=Request.Form("source")
writer=Request.Form("writer")
Dim template
template=Request.Form("template")
Dim moretemplate
moretemplate=Request.Form("moretemplate")
Set rs=Conn.execute("select * from webconfig")
If rs.eof Then
	Conn.execute("insert into webconfig (id,openwindow,windowwidth,windowheight,source,writer,template,moretemplate) values (1,'"&openwindow&"','"&windowwidth&"','"&windowheight&"','"&source&"','"&writer&"','"&template&"','"&moretemplate&"')")
Else
	Conn.execute("update webconfig set openwindow='"&openwindow&"',windowwidth='"&windowwidth&"',windowheight='"&windowheight&"',source='"&source&"',writer='"&writer&"',template='"&template&"',moretemplate='"&moretemplate&"'")
End If
rs.Close
Set rs = Nothing
call connclose
If err Then
	Call showerror("出错了,系统未能保存设置。")
Else
	Call showsuccess("操作成功","config.asp")
End If
%>

⌨️ 快捷键说明

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