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

📄 admin_res_pro.asp

📁 提供学生证 的在线查询功能。界面上面是录入框
💻 ASP
字号:
<!--#include file="../conn.asp"-->
<!--#include file="../inc/md5.asp"-->
<!--#include file="../inc/inc.asp"-->
<!--#include file="inc/inc.asp"-->
<!--#include file="admin_page_top.asp"-->
<!--#include file="common/admin_res_pro_inc.asp"-->
<%
nowtit="专业"
Login_Judge
powerid=122
Dim Col_id,pro,con


action=che(request("action"))
id=che(request("id"))
Col_id = che(request("Col_id"))
Dim pros(5)
pros(0)="所在系所"
pros(1)="专业名称"
pros(2)="简介说明"

Dim proslm(5)
proslm(0)="Col_id"
proslm(1)="pro"
proslm(2)="con"

If action="list" Then
	Ispower powerid & "1"
	const MaxPerPage=15
	restit nowtit,infotit(0)
	nowmenu
	listinfos
ElseIf action="add" Then
	Ispower powerid & "2"
	restit nowtit,infotit(1)
	nowmenu
	addinfos
ElseIf action="save" Then
	Ispower powerid & "2"
	jstable
	If Col_id = "" Or pro="" Then errormsg "项目填写不完整!"
	If IsNumeric(Col_id)=False Or Col_id="0" Then errormsg "参数错误!"
	sql=Sqlinfo("*","res_pro","id=0","","","")
	set rs=server.createobject("adodb.recordset")
	rs.Open Sql, Conn, 1, 3
	rs.AddNew
	sqltable "add" 
	rs.Update
	rs.close
	rightmsg "?action=list",""
ElseIf action="edit" Then 
	Ispower powerid & "3"
	restit nowtit,infotit(2)
	nowmenu
	editinfos
ElseIf action="mod" Then
	Ispower powerid & "3"
	jstable
	If Col_id = "" Or pro="" Then errormsg "项目填写不完整!"
	If IsNumeric(Col_id)=False Or Col_id="0" Then errormsg "参数错误!"
	If IsNumeric(id)=False Or id="0" Then errormsg "参数错误!"
	sql=Sqlinfo("*","res_pro","id="&id,"","","")
	set rs=server.createobject("adodb.recordset")
	rs.Open Sql, Conn, 1, 3
	If Not rs.Eof Then
		sqltable "mod"
		rs.Update
	Else
		errormsg "参数错误"
	End If
	rs.close
	rightmsg "?action=list",""

ElseIf action="del" Then
	Ispower powerid & "4"
	if id="" then errormsg "参数错误!"
	set dels=conn.execute("delete from link_info where id in ("&id&")")
	set dels=Nothing 
	rightmsg "?action=list",""

End If
%>
<!--#include file="admin_page_footer.asp"-->

⌨️ 快捷键说明

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