📄 news.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!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>
<jsp:useBean id="dateformat" scope="session" class="com.xsaas.util.Dateformat" />
<%
com.xsaas.util.DBConnection dbc = new com.xsaas.util.DBConnection(true);
com.xsaas.util.Charset charset = new com.xsaas.util.Charset();
String title = "",content="";
dbc.getConnection();
String id = request.getParameter("id");
if (id==null) id ="0";
ResultSet rs = dbc.getRS("select title ,content from saasnews.agrinews where id='"+id+"'");
while(rs.next())
{
title = charset.ISO_2_GBK(rs.getString(1));
content = charset.ISO_2_GBK(rs.getString(2));
}
content = content.replaceAll(""","'");
%>
<html>
<head>
<title>Xsaas-网上办公系统</title>
<link href="/style/layout.css" rel="stylesheet" type="text/css">
<link href="/style/daohang.css" rel="stylesheet" type="text/css">
<link href="/style/manager.css" rel="stylesheet" type="text/css">
<link href="/css/new.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<jsp:include page="/inc/top.jsp" />
<tr>
<!-- 中间 -->
<td align="center">
<div id="manager_body">
<!--左边菜单-->
<div id="manager_body_left">
<jsp:include page="/info/menu.jsp" />
</div>
<div id="manager_body_right">
<div class="newxx">
<div class="newxxone"><h1><%= title %></h1>
</div>
<div class="newxxone1"><%= content %></div>
</div>
</div>
<!--右边 主体部分结束 -->
</div>
</td>
<!-- 中间 结束 -->
</tr>
<tr>
<!-- 底部 -->
<td align="center">
<jsp:include page="/bottom.jsp"/>
</td>
</tr>
<!-- 底部结束 -->
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -