?? 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-->
<p>
<div align="center">
<h1 align="center">新增類別
</p>
</h1>
<p>
<%
CheckLogin
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%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -