user_subject.asp

来自「博客程序整站(完整)」· ASP 代码 · 共 39 行

ASP
39
字号
<!--#include file="conn.asp"-->
<!--#include file="user_chkpass.asp"-->
<!--#include file="inc/usercode.asp"-->
<!--#include file="inc/function.asp"-->
<%
if CheckUserLogined()=False then
	response.Redirect "user_login.asp"
end if
call uporder()
%>
<link href="Admin_STYLE.CSS" rel="stylesheet" type="text/css"> 
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0" class="bgcolor">
<%
dim action
action=request.QueryString("action")
select case action
	case "addclass"
		call addclass()
	case "del"
		call delclass()
	case "modify"
		call modifyclass()
	case "savemodi"
		call savemodify()
	case "order"
		call order()
	case else
		call main
end select

sub addclass()
	call uporder()
	dim subjectname,rs,ordernum
	subjectname=ReplaceBadChar(Trim(Request.Form("subjectname")))
	If subjectname="" Then
		Response.Write("<script language=javascript>alert('名称不能为空!');window.location.replace('user_subject.asp')</script>")
		Response.End()
	End If	 
	if Instr(subjectname,"=")>0 or Instr(subjectname,"%")>0 or Instr(subjectname,chr(32))>0 or Instr(subjectname,"?")>0 or Instr(subjectname,"&")>0 or Instr(subjectname,";")>0 or Instr(subjectname,",")>0 or Instr(subjectname,"'")>0 or Instr(subjectname,",")>0 or Instr(subjectname,chr(34))>0 or Instr(subjectname,chr(9))>0 or Instr(subjectname,"

⌨️ 快捷键说明

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