📄 typemanage.asp
字号:
<%@ LANGUAGE="VBScript"%>
<% response.buffer=true %>
<%const title="新增类别"%>
<html>
<head>
<meta http-equiv="Content-Type"content="text/html; charset=gb_2312-80">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title><%=title%></title>
<link rel=stylesheet type=text/css href=forum.css>
</head>
<body topmargin="0" onload=this.document.input.typename.focus();>
<!--#include file=myPrg.asp-->
<!--#include file=opendb.inc-->
<%
CheckLogin
Showtitle(title)
getStorage(session("storage"))
%>
<%
if Request.ServerVariables("REQUEST_METHOD")="POST" then
if request.form("typename")<>"" then
sql="select * from type where type_name='"&request.form("typename")&"' and in_storage="&session("storage")
rs.open sql,conn,3,2
if rs.eof then
rs.addnew
rs("type_name")=request.form("typename")
rs("in_storage")=session("storage")
rs.update
ShowSuccess("数据已经成功保存!")
else
showerror("该类别已经存在,请重新输入")
end if
rs.close
else
showerror("请输入类别名称")
end if
else
%>
<form action="typemanage.asp" method="POST" name="input">
<p align=center><font color=red>请在以下的表格中填入相关的数据</font>
<p>
<table align=center border=0>
<tr>
<td nowrap><font color=blue>类别名称:</td>
<td><input class=smallInput type=textbox name="typename" value=''>**</td>
</tr>
<tr>
<td><font color=blue>已有类别:</td>
<td><%ShowType%></td>
</tr>
<tr>
<td>
<td><br><input class=buttonface type=submit name=ok value=确定>
<input class=buttonface type=reset name=reset value=复原>
<input class=buttonface type=button name=retu value=返回 onclick=history.go(-1)>
</tr>
</table>
</form>
<%end if%>
<!--#include file=copyright.asp-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -