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

📄 adslsave.asp

📁 网佳网络办公系统(以下简称OA)是一套基于B/S模式的无纸化办公系统。[显著特点:无须安装客户端] 主要功能模块:管理 公文 车辆 通知 档案 值班 人事 审批 仓库 主界面 软件下载 个
💻 ASP
字号:
<%
if Session("ljl_liujinlu")="" or Session("ljl_grad")="" then%>
<script language=vbscript> 
MsgBox "错误:非法用户!"
location.href = "login.asp"
</script>
<%end if%>
<!--#include file="bkconn.asp"-->
<% 
'获取数据
sgonghao=Session("ljl_liujinlu")
sdianhuahuming=request.form("dianhuahuming")
sdianhuahaoma=request.form("dianhuahaoma")
sip = Request.ServerVariables("REMOTE_ADDR")
syonghuzhanghao=request.form("yonghuzhanghao")
schexiaoyuanyin=request.form("chexiaoyuanyin")
sbeizhuxinxi=request.form("beizhuxinxi")
szhuanxianbianhao=request.form("zhuanxianbianhao")
sshoujuhaoma=request.form("shoujuhaoma")
sjiaofeiriqi=request.form("jiaofeiriqi")
n=Year(date())
y=Month(date())
r=Day(date())
s=Hour(time())
f=Minute(time())
m=Second(time())
if len(y)=1 then y="0" & y
if len(r)=1 then r="0" & r
if len(s)=1 then s="0" & s
if len(f)=1 then f="0" & f
if len(m)=1 then m="0" & m
ssj=n & "-" & y & "-" & r & " " & s & ":" & f & ":" & m

'检验数据合法性
if sdianhuahaoma="" or syonghuzhanghao="" then
%>
<script language=vbscript> 
MsgBox "错误:提交的表单中不能有空,请返回核对!"
location.href = "ADSL.asp"
</script>
<%else
'写入记录	     
conn.execute("insert into adsl(dianhuahuming,dianhuahaoma,yonghuzhanghao,chexiaoyuanyin,beizhuxinxi,gonghao,ip,zhuanxianbianhao,shoujuhaoma,jiaofeiriqi,sj)  values('" &sdianhuahuming &"','" &sdianhuahaoma&"','" &syonghuzhanghao &"','" &schexiaoyuanyin &"','" &sbeizhuxinxi &"','" &sgonghao &"','" &sip &"','" &szhuanxianbianhao &"','" &sshoujuhaoma &"','" &sjiaofeiriqi &"','" &ssj &"')")
%>
<script language=vbscript> 
MsgBox "保存成功!"
location.href = "ADSL.asp"
</script>
<%end if
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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