📄 admin_systeminfo.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="../ch.jsp" %>
<%@ include file="checkadmin.jsp"%>
<jsp:useBean id="info" class="conndb.DbConnBean" scope="page" />
<%
String sql1="select sum(quantity) from book";
String sql2="select count(*) from [user]";
String sql3="select count(*) from guestbook";
Connection conn=info.getConn();
Statement stmt=conn.createStatement();
ResultSet rs1=stmt.executeQuery(sql1);
rs1.next();
int bookcount=rs1.getInt(1);
ResultSet rs2=stmt.executeQuery(sql2);
rs2.next();
int usercount=rs2.getInt(1);
ResultSet rs3=stmt.executeQuery(sql3);
rs3.next();
int messagecount=rs3.getInt(1); %>
<!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>系统消息</title>
<style type="text/css">
<!--
body,td,th {
font-size: 13px;
}
-->
</style></head>
<body>
<p><strong> 图书馆系统信息 </strong></p>
<table width="72%" border="1" cellpadding="5" cellspacing="0" bordercolor="#000000">
<tr>
<td>目前图书馆里共有图书<%= bookcount %>册</td>
</tr>
<tr>
<td>目前图书馆里共有借书证用户<%= usercount %>名</td>
</tr>
<tr>
<td>目前共有留言<%=messagecount %>条</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<p><strong> </strong></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -