forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_new.jsp
More file actions
55 lines (53 loc) · 2.07 KB
/
list_new.jsp
File metadata and controls
55 lines (53 loc) · 2.07 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
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.model.User" %>
<%@ page import="com.model.New" %>
<%@ page import="com.core.*" %>
<%@ page import="java.util.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>明日科技</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="781" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
<tr>
<td height="165" colspan="4"><jsp:include page="top.jsp"/></td>
</tr>
<tr>
<td width="11" rowspan="2"> </td>
<td width="235" rowspan="2" align="left" valign="top"><jsp:include page="left.jsp"/></td>
<td width="535" align="center" valign="top">
<table><tr><td height="9pt"></td></tr></table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableNew">
<tr align="center">
<td colspan="3" class="TableTitle1" >新闻信息</td>
</tr>
<tr align="center">
<td height="27" bgcolor="#FFFFFF">新闻标题</td>
<td bgcolor="#FFFFFF">发布时间</td>
<td bgcolor="#FFFFFF">摘自</td>
</tr>
<%BasetableFactory bf=BasetableFactory.getInstance();
Collection coll=bf.ListNew("ORDER BY ntime desc");
if(coll==null||coll.size()<=0){%>
<tr align="center">
<td height="27" colspan="3" bgcolor="#FFFFFF">没有添加新闻</td>
</tr><%}else{ Iterator it=coll.iterator();
while(it.hasNext()){New n=(New)it.next();%>
<tr align="center">
<td height="27" bgcolor="#FFFFFF"><a target="_self" href="info_new.jsp?nid=<%=n.getNid()%>" class="delink"><%=n.getTitle()%></a></td>
<td bgcolor="#FFFFFF"><%=n.getNtime()%></td>
<td bgcolor="#FFFFFF"><%=ParamUtils.nullToString(n.getFromto(),"无")%></td>
</tr> <%}}%>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td colspan="4" align="center"><jsp:include page="bottom.jsp"/></td>
</tr>
</table>
</body>
</html>