📄 set_save.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="../seeadmin.asp"-->
<%
danxun_jichu_1=trim(request.form("danxun_jichu_1"))
danxun_jichu_2=trim(request.form("danxun_jichu_2"))
danxun_zhuanye_1=trim(request.form("danxun_zhuanye_1"))
danxun_zhuanye_2=trim(request.form("danxun_zhuanye_2"))
duoxuna_jichu_1=trim(request.form("duoxuna_jichu_1"))
duoxuna_jichu_2=trim(request.form("duoxuna_jichu_2"))
duoxuna_zhuanye_1=trim(request.form("duoxuna_zhuanye_1"))
duoxuna_zhuanye_2=trim(request.form("duoxuna_zhuanye_2"))
tiankong_jichu_1=trim(request.form("tiankong_jichu_1"))
tiankong_jichu_2=trim(request.form("tiankong_jichu_2"))
tiankong_zhuanye_1=trim(request.form("tiankong_zhuanye_1"))
tiankong_zhuanye_2=trim(request.form("tiankong_zhuanye_2"))
tiankong_sum=trim(request.form("tiankong_sum"))
panduan_jichu_1=trim(request.form("panduan_jichu_1"))
panduan_jichu_2=trim(request.form("panduan_jichu_2"))
panduan_zhuanye_1=trim(request.form("panduan_zhuanye_1"))
panduan_zhuanye_2=trim(request.form("panduan_zhuanye_2"))
danxuan_sum=trim(request.form("danxuan_sum"))
duoxuan_sum=trim(request.form("duoxuan_sum"))
panduan_sum=trim(request.form("panduan_sum"))
examsum=trim(request.form("examsum"))
if not isnumeric(trim(request.form("danxun_jichu_1"))) then
response.write "<script>alert('单选题公共1分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("danxun_jichu_2"))) then
response.write "<script>alert('单选题公共2分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("danxun_zhuanye_1"))) then
response.write "<script>alert('单选题考试专业1分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("danxun_zhuanye_2"))) then
response.write "<script>alert('单选题考试专业2分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("duoxuna_jichu_1"))) then
response.write "<script>alert('多选题公共1分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("duoxuna_jichu_2"))) then
response.write "<script>alert('多选题公共2分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("duoxuna_zhuanye_1"))) then
response.write "<script>alert('单选题考试专业1分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("duoxuna_zhuanye_2"))) then
response.write "<script>alert('多选题考试专业2分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("panduan_jichu_1"))) then
response.write "<script>alert('判断题公共1分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("panduan_jichu_2"))) then
response.write "<script>alert('判断题公共2分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("panduan_zhuanye_1"))) then
response.write "<script>alert('判断题1分数为数字');history.go(-1);</script>"
response.end
end if
if not isnumeric(trim(request.form("panduan_zhuanye_2"))) then
response.write "<script>alert('判断题2分数为数字');history.go(-1);</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from [setexam]",conn,1,3
' rs.addnew
rs("danxun_jichu_1")=cint(danxun_jichu_1)
rs("danxun_jichu_2")=cint(danxun_jichu_2)
rs("danxun_zhuanye_1")=cint(danxun_zhuanye_1)
rs("danxun_zhuanye_2")=cint(danxun_zhuanye_2)
rs("duoxuna_jichu_1")=cint(duoxuna_jichu_1)
rs("duoxuna_jichu_2")=cint(duoxuna_jichu_2)
rs("duoxuna_zhuanye_1")=cint(duoxuna_zhuanye_1)
rs("duoxuna_zhuanye_2")=cint(duoxuna_zhuanye_2)
rs("panduan_jichu_1")=cint(panduan_jichu_1)
rs("panduan_jichu_2")=cint(panduan_jichu_2)
rs("panduan_zhuanye_1")=cint(panduan_zhuanye_1)
rs("panduan_zhuanye_2")=cint(panduan_zhuanye_2)
rs("tiankong_jichu_1")=cint(tiankong_jichu_1)
rs("tiankong_jichu_2")=cint(tiankong_jichu_2)
rs("tiankong_zhuanye_1")=cint(tiankong_zhuanye_1)
rs("tiankong_zhuanye_2")=cint(tiankong_zhuanye_2)
rs("tiankong_sum")=cint(tiankong_sum)
rs("duoxuan_sum")=cint(duoxuan_sum)
rs("panduan_sum")=cint(panduan_sum)
rs("danxuan_sum")=cint(danxuan_sum)
rs("examsum")=cint(examsum)
' rs("danxuan_sum")=danxuan_sum
' rs("duoxuan_sum")=duoxuan_sum
' rs("panduan_sum")=panduan_sum
' rs("examsum")=examsum
rs.update
rs.close
set rs=nothing
response.write "<script>alert('试题设置成功');self.location.href='../tixing_fenpei.asp';</script>"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -