?? kind_update.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 + -