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

📄 main.jsp

📁 这是从网上下载下来的一个计算程序
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.lovo.bbs.vo.*,com.lovo.bbs.bo.*,com.lovo.bbs.listener.VistorCounterListen,java.util.*"%>

<%
        // 取得网站杂项信息
		ForumStatVo forumInfo = (ForumStatVo)application.getAttribute("forumInfo");
		//更新网站杂项信息
		if(forumInfo==null){
			forumInfo = new ForumStatBo().getForumInfo();
		}
		HashMap<String, LoginVo> onlineUser = (HashMap<String, LoginVo>) application
				.getAttribute("onlineUser");
		//更新在线会员数
		forumInfo.setMemberOLNum(onlineUser.size());
		//更新在线总人数
		forumInfo.setUserOLNum(VistorCounterListen.getVisitorNum());
		application.setAttribute("forumInfo", forumInfo);
 %>


	
	
<html>
	<body leftMargin="0" topMargin="0">
		<table borderColor="#111111" height="1" cellSpacing="0"
			cellPadding="0" width="100%" border="0">
			<tr height="20">
				<td bgColor="#c0d9e6" align="center" style="font-size: 12px">
					<font color="#006699" face="宋体">论坛管理系统</font>
				</td>
			</tr>
		</table>
		<table cellSpacing="10" cellPadding="0" width="95%" align="center"
			border="0" style="POSITION: absolute; TOP: 50px; left: 50px;">
			<tr>
				<td>
					<table border="0" align="center" cellPadding="0" cellSpacing="0"
						bgcolor="#FFFFFF">
						<tr>
							<td>
								<table cellspacing="0" cellpadding="5" rules="rows"
									bordercolor="#E8F4FF" border="1"
									style="border-collapse: collapse;">
									<tr align="center"
										style="color: #006699; background-color: #E8F4FF; font-size: X-Small; font-weight: bold; height: 20px;">
										<td align="left" width="100px">
											内容统计
										</td>
										<td align="right">
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										</td>
									</tr>
									<tr align="left" style="font-size: X-Small;">
										<td>
											-主题总数
										</td>
										<td>
											<%=forumInfo.getTopicNum()%>篇
										</td>
									</tr>
									<tr align="left" style="font-size: X-Small;">
										<td height="33" align="left">
											-帖子总数
										</td>
										<td>
											<%=forumInfo.getPostNum()%>篇
										</td>
									</tr>
									<tr align="left" style="font-size: X-Small;">
										<td height="33" align="left">
											-今日主题
										</td>
										<td>
											<%=forumInfo.getTodayTopicNum()%>篇
										</td>
									</tr>
								</table>
							</td>
							<td>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							</td>
							<td>
								<table cellspacing="0" cellpadding="5" rules="rows"
									bordercolor="#E8F4FF" border="1"
									style="border-collapse: collapse;">
									<tr align="left" valign="middle"
										style="color: #006699; background-color: #E8F4FF; font-size: X-Small; font-weight: bold; height: 20px;">
										<td align="left" width="100px">
											用户统计
										</td>
										<td>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										</td>
									</tr>
									<tr align="left" valign="middle" style="font-size: X-Small;">
										<td>
											-用户总数
										</td>
										<td>
											<%=forumInfo.getMemberNum()%>人
										</td>
									</tr>
									<tr align="left" valign="middle" style="font-size: X-Small;">
										<td height="33" align="left">
											-在线人数
										</td>
										<td>
											<%=forumInfo.getUserOLNum()%>人
										</td>
									</tr>
									<tr align="left" valign="middle" style="font-size: X-Small;">
										<td height="33" align="left">
											-在线会员数
										</td>
										<td>
											<%=forumInfo.getMemberOLNum()%>人
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>

⌨️ 快捷键说明

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