📄 foster_wealthadd.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<%
if request("post")<>"" then
if request("title")="" then
response.Write("<script language=javascript>alert('书名不能为空');location='javascript:history.go(-1)'</script>")
response.End()
end if
if request("fromto")="" then
response.Write("<script language=javascript>alert('出版社不能为空');location='javascript:history.go(-1)'</script>")
response.End()
end if
if request("author")="" then
response.Write("<script language=javascript>alert('作者不能为空');location='javascript:history.go(-1)'</script>")
response.End()
end if
if request("content")="" then
response.Write("<script language=javascript>alert('简介不能为空');location='javascript:history.go(-1)'</script>")
response.End()
end if
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_foster_wealth"
rs.open sql,conn,1,3
rs.addnew
rs("title")=request("title")
rs("fromto")=request("fromto")
rs("author")=request("author")
rs("content")=request("content")
rs("time")=now()
rs.update
rs.close
response.Write("<script language=javascript>alert('书籍添加成功');window.close()</script>")
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加书籍</title>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
font-size: 16px;
font-weight: bold;
color: #FF0000;
}
body,td,th {
font-size: 12px;
}
body {
background-color: #efefef;
}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="">
<table width="459" height="280" border="0" align="center" cellspacing="0" >
<tr align="center">
<td colspan="2"><span class="style1">添加书籍</span> <input name="post" type="hidden" id="post" value="true"></td>
</tr>
<tr align="center">
<td colspan="2" height="1" bgcolor="#000000"></td>
</tr>
<tr>
<td width="72" align="center">书 名:</td>
<td width="250"> <input name="title" type="text" class="wenben" id="title" size="30" maxlength="50"></td>
</tr>
<tr>
<td align="center">出版社:</td>
<td> <input name="fromto" type="text" class="wenben" id="fromto" size="30" maxlength="50"></td>
</tr>
<tr>
<td align="center">作 者:</td>
<td> <input name="author" type="text" class="wenben" id="author" size="30" maxlength="50"></td>
</tr>
<tr>
<td height="97" align="center">简 介:</td>
<td> <textarea name="content" cols="50" rows="5" class="wenben" id="content"></textarea></td>
</tr>
<tr align="center">
<td colspan="2"><input name="Submit" type="submit" class="botton" value=" 提 交 ">
<input name="Submit2" type="reset" class="botton" value=" 重 置 "></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -