⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tstj.asp

📁 自己做的毕业设计
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>图书馆管理系统</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
</style>
</head>
<!--#include file="conn.asp"-->
<%
if request("act")="add" then
book_name=trim(request("book_name"))
isbn=trim(request("isbn"))
pub=trim(request("pub"))
content=trim(request("content"))
zz=trim(request("zz"))
cbrq=trim(request("cbrq"))

if book_name="" then
response.write"<script language='javascript'>alert('书名不能为空!');history.back();</script>"
else
sql="insert into [jiangou](book_name,isbn,pub,content,zz,cbrq)values('"&book_name&"','"&isbn&"','"&pub&"','"&content&"','"&zz&"','"&cbrq&"')"
conn.execute(sql)
response.write"<script language='javascript'>alert('操作成功!');window.location.href='tstj.asp';</script>"
end if
end if
%>
<body>
<form name="form1" method="post" action="?act=add">
<center>
<table width="800" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="150"><!--#include file="top.asp"--></td>
  </tr>
  <tr>
    <td align="center" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tb">
    <tr>
      <td height="300" align="center" valign="middle"><table width="500" border="0" cellspacing="0" cellpadding="3">
        <tr align="center" valign="middle" >
          <td height="30" align="right"><img src="img/tj.gif" width="64" height="64"></td>
          <td height="30" align="left"><span class="style1">&nbsp;&nbsp;&nbsp;&nbsp; 图书推荐</span></td>
        </tr>
        <tr>
          <td width="180" height="25" align="right">书名:</td>
          <td width="311" height="25" align="left"><input name="book_name" type="text" id="book_name" size="25"></td>
        </tr>
        <tr>
          <td height="25" align="right">ISBN:</td>
          <td height="25" align="left"><input name="isbn" type="text" id="isbn" size="25" /></td>
        </tr>
        <tr>
          <td width="180" height="25" align="right">作者:</td>
          <td height="25" align="left"><input name="zz" type="text" id="zz" size="20"></td>
        </tr>
        <tr>
          <td width="180" height="25" align="right">出版社:</td>
          <td height="25" align="left"><input name="pub" type="text" id="pub" size="20"></td>
        </tr>
        <tr>
          <td width="180" height="25" align="right">出版日期:</td>
          <td height="25" align="left"><input name="cbrq" type="text" id="cbrq" size="20" /></td>
        </tr>
        <tr>
          <td height="25" align="right">备注:</td>
          <td height="25" align="left"><textarea name="content" cols="50" rows="5" id="content"></textarea></td>
        </tr>
        <tr align="center" valign="middle">
          <td height="40" colspan="2"><input type="submit" name="Submit" value=" 提 交 ">
             &nbsp; <input type="reset" name="Submit2" value=" 重 置 "></td>
          </tr>
      </table></td>
    </tr>
  </table></td>
  </tr>
  <tr>
    <td height="60"><!--#include file="bottom.asp"--></td>
  </tr>
</table>
</center>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -