?? usesmanage.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.usesname.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("usesname")<>"" then
sql="select * from uses where uses_name='"&request.form("usesname")&"'"
rs.open sql,conn,3,2
if rs.eof then
rs.addnew
rs("uses_name")=request.form("usesname")
rs("memo")=request.form("memo")
rs.update
ShowSuccess("數據已經成功保存!")
else
showerror("該用處已經存在,請重新輸入")
end if
rs.close
else
showerror("請輸入用處名稱!")
end if
else
%>
<form action="usesmanage.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=usesname value=''>**</td>
</tr>
<tr>
<td valign="top"><font color=blue>說明一下:</td>
<td><textarea class=smallarea name=memo rows=5 cols=40></textarea></td>
</tr>
<tr>
<td><font color=blue>已有用處:</td>
<td><%Showuses%></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 + -