forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnews_detail.jsp
More file actions
59 lines (58 loc) · 2.22 KB
/
Copy pathnews_detail.jsp
File metadata and controls
59 lines (58 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.util.Collection"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="electric.dbs.Dbnews"%>
<%@ page import="electric.dbs.news"%>
<%@ page import="electric.dbs.Newsdb"%>
<%@ page import="electric.electricUtils.ParamUtils"%>
<%@ page import="electric.electricUtils.DbConnectionManager"%>
<%
Newsdb newse=new Newsdb();
int countpage=newse.selectsql(5);
int a=0;
//int i=0;
a=ParamUtils.getIntParameter(request,"a",0);
%>
<html>
<head>
<title>详细内容</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet">
</head>
<%Dbnews news_2=new Dbnews(a);%>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#E6E0DC">
<td height="5" colspan="3"></td>
</tr>
<tr>
<td width="5" height="40" bgcolor="#E6E0DC" class="white"></td>
<td background="Images/Top.GIF" class="white"> <%=news_2.getMotif()%></td>
<td width="5" bgcolor="#E6E0DC" class="white"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" height="208" border="0" cellpadding="-2" cellspacing="-2">
<tr>
<td width="6%" height="187"></td>
<td colspan="2" valign="top" style="padding:5px;"><%=news_2.getContent()%></td>
<td width="5%"> </td>
</tr>
<tr>
<td width="6%" bgcolor="#EEEEEE"></td>
<td width="46%" height="21" bgcolor="#EEEEEE"><div align="left">发布人 :<%=news_2.getKithepeople()%></div></td>
<td width="43%" bgcolor="#EEEEEE"><div align="right">发表日期:<%=news_2.getCreateDate().substring(0,4)%>年<%=news_2.getCreateDate().substring(4,6)%>月<%=news_2.getCreateDate().substring(6,8)%>日</div></td>
<td width="5%" bgcolor="#EEEEEE"> </td>
</tr>
</table> </td>
</tr>
<tr>
<td height="28" bgcolor="#E6E0DC"> </td>
</tr>
</table>
</body>
</html>