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

📄 zx.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="pass2.asp"-->
<!--#include file="conn.asp"-->
<%
if request("act")="add" then
title=trim(request("title"))
content=trim(request("content"))
user_id=session("id")

if title="" then
response.write"<script language='javascript'>alert('标题不能为空!');history.back();</script>"
elseif content="" then
response.write"<script language='javascript'>alert('内容不能为空!');history.back();</script>"
else
sql="insert into [zixun]([title],[content],[user_id])values('"&title&"','"&content&"',"&user_id&")"
conn.execute(sql)
response.write"<script language='javascript'>alert('操作成功,请等待回复!');window.location.href='show_zx.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 width="180" align="center" valign="top"><!--#include file="left.asp"--></td>
      <td align="center" valign="top"><table width="70%" border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td width="14%" align="right">标题:</td>
          <td width="86%" align="left"><span id="sprytextfield1">
            <input name="title" type="text" id="title" size="40" />
          </span></td>
        </tr>
        <tr>
          <td align="right">内容:</td>
          <td align="left">
            <textarea name="content" id="content" cols="45" rows="5"></textarea>
          </td>
        </tr>
        <tr>
          <td height="35" colspan="2" align="center" valign="middle"><input name="add" type="hidden" id="add" value="ok" />
              <input type="submit" name="button" id="button" value=" 提 交 " />
&nbsp;
      <input type="reset" name="button2" id="button2" value=" 重 填 " /></td>
        </tr>
      </table>
        <p><a href="show_zx.asp" target="_self"><font color="#FF0000"><u>查看我的咨询信息</u></font></a></p></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 + -