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

📄 kind_update.asp

📁 实验教学系统 很好用 有学生 老师 管理等模块 便于学校使用
💻 ASP
字号:
<%Response.Buffer=True%>
<%
'这是安全模块,如果客户不是管理员用户,立即重定向到首页.
'这样可以防止某些客户直接访问admin下面的文件。
If Session("UserType")<>"A" Then
	Response.Redirect "../index.asp"
End If
%>
<!--#INCLUDE FILE="../odbc_connection2.asp"-->
<html>
<head>
	<title>添加栏目</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body >
	<h2 align="center">修改栏目名称</h2>
	<center>
	<FORM name="form1" action="" method="post">
		<table width="80%" border=0 cellpadding="4" cellspacing="1" bgcolor="#999999">
			<tr bgcolor="#FFFFFF"> 
				<td width="21%" height="25">旧名称</td>
				<td width="79%">
				<%=Request.QueryString("KindName")%>
				<input type="hidden" name="KindId" value="<%=Request.QueryString("KindId")%>">
				</td>
			</tr>
			<tr bgcolor="#FFFFFF"> 
				<td width="21%" height="25">新名称</td>
				<td width="79%"><input size="20" name="KindName" class="inputbox"></td>
			</tr>
		</table>
		<br>
		<input type=submit value=" 确 定 " name=submit  class="inputbutton">
	</FORM>
	<br>
	<%
	'各项验证正确无误,则可继续注册,否则返回
	If Request.Form("KindName")<>"" then
		Dim strSql
		strSql="Update kind Set KindName='" & Request.Form("KindName") & "' Where KindId=" & Request.Form("KindId")
		db.execute(strSql)
		response.redirect "kind_list.asp"
	end If
	%>
	</center>
</body>
</html>

⌨️ 快捷键说明

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