📄 shownh.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="GB2312"%>
<%@page import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<jsp:useBean id="help" scope="page" class="edu.HelpBean" />
<jsp:useBean id="note" scope="page" class="edu.NoteBean" />
<title>网站信息</title>
<style type="text/css">
<!--
.STYLE7 {font-size: 14px; }
-->
</style>
</head>
<body>
<%
int id=0;
String title="",time="",content="";
ResultSet rs=null;
try{
id=Integer.valueOf(request.getParameter("id")).intValue();
}catch(NumberFormatException e){}
try{
String sortnh=new String(request.getParameter("sort").getBytes("ISO8859_1"));
if(sortnh.equals("note")){
rs=note.getNote(id);
}
if(sortnh.equals("help")){
rs=help.getHelp(id);
}
if(rs.next()){
title=rs.getString("title");
time=rs.getString("time");
content=rs.getString("content");
}}catch(NullPointerException e){}
%>
<div align="center">
<table width="750" height="25" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="770" height="160"><iframe name="top" height="160"
width="770" scrolling="no" src="top.jsp" frameborder="0"></iframe></td>
</tr>
</table>
</div>
<table width="700" border="0" align="center">
<tr>
<td> <br>
<br>
<div align="center"><strong><%=title %></strong></div>
</td>
</tr>
<tr>
<td>
<div align="center"></div>
</td>
</tr>
<tr>
<td bgcolor="#00CCFF"></td>
</tr>
<tr>
<td><DIV class="STYLE7"><%=content %></DIV></td>
</tr>
<tr>
<td>
<div align="right" class="STYLE7"><%=time %></div>
</td>
</tr>
<tr>
<td bgcolor="#00CCFF"></td>
</tr>
</table>
<div align="center">
<table height="155" width="750" border="0" cellspacing="1"
align="center">
<tr>
<td><iframe name="bottom" height="155" width="750" scrolling="no"
src="bottom.jsp" frameborder="0"></iframe></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -