📄 save.asp
字号:
<!--#include file="ReplaceRemoteUrl.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="../../fn/fso.asp"-->
<!--#include file="../seeadmin.asp"-->
<%
call nadmin
%>
<%
if request.form("title")="" then
errormsg("请写标题")
end if
if request.form("author")="" then
errormsg("请写标题")
end if
if request.form("ttype")="" then
errormsg("请选择分类")
end if
dtime=now()
filename1=getfilename(dtime) & ".htm"
artical=Request.Form("content")
artical=eWebEditor_ReplaceRemoteUrl(artical,"","")
arttime=date()
title=request.form("title")
author=request.form("author")
istou=false
isgood=false
isnewimg=false
iszhuang=false
select case request.form("radionews")
case 1
isgood=true
case 2
isnewimg=true
case 3
iszhuang=true
case 4
istou=true
end select
art_type=request.form("ttype")
set rs=server.createobject("adodb.recordset")
rs.open "select * from art_file",conn,1,3
rs.addnew
rs("title")=title
rs("artical")=artical
rs("author")=author
rs("arttime")=arttime
rs("type")=art_type
rs("filename")=filename1
rs("istou")=istou
rs("isgood")=isgood
rs("isnewimg")=isnewimg
rs("iszhung")=iszhuang
rs.update
rs.close
set rs=nothing
''''添加到系统日志
set rsn=Server.CreateObject("ADODB.RECORDSET")
rsn.open "select *from sysdong",conn,1,3
rsn.addnew
rsn("koyee_user")=Session("admin")
rsn("koyee_dong")="添加文章["& title &"]"
rsn("arttime")=now()
rsn.update
rsn.close
set rsn=nothing
''''添加系统日志完毕
call OKmsg("添加完成","../add.asp")
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -