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

📄 index.jsp

📁 用Jsp实现的图书管理系统代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" %>
<%@ include file="ch.jsp" %>
<jsp:useBean id="indexdb" class="conndb.DbConnBean" scope="page" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>首页-JSP版图书管理系统</title>
<style type="text/css">
<!--
body {
	background-color: #FFFFFF;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

</head>

<body>
<%@ include file="top.jsp" %>

      <table width="72%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td width="10%" align="center" bgcolor="#EFEFEF">
<img src="images/announce.gif" width="20" height="16"></td>
          <td width="90%" bgcolor="#EFEFEF"><marquee scrollAmount=3> 
<%
Connection conn=indexdb.getConn();
Statement stmt=conn.createStatement();
ResultSet rs=stmt.executeQuery("select * from notice order by id desc");	  

	  rs.next();//将数据库中的游标向下移动一行,因为首先的时候游戏是位于首行之前的一行
	  String notice=rs.getString(2);
           String ntime=rs.getString(3).substring(0,11);
	  %> 
	  <%=notice%>-<%=ntime%></marquee>
	  </td>
        </tr>  
        <tr>
          <td height="300" colspan="2" bgcolor="#99CC99" background="images/fssss.jpg" valign="top">欢迎师生们的光临!在这里你可以查询学校图书馆里的图书信息,愿你能找到你想看的图书!<br>
对图书馆有什么建议,请给我们<a href="guestbook/guestbook_index.jsp"><b>提出来</b></a>,我们会认真处理你的留言.</td>
        </tr>
        <tr>
     <%@include file="searchbook.jsp"%>
        </tr>
        <tr>
          <td height="230" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>


<%@ include file="bottom.jsp" %>
</body>
</html>

⌨️ 快捷键说明

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