【JSP开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了JSP开源代码-list_new.jsp的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<%@ 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>
上一篇:
list_guestboard.jsp
下一篇:
探讨江泽民对哲学物质利益观的丰富和发展