newsMain.jsp
上传用户:jishiqi_cj
上传日期:2022-08-08
资源大小:24765k
文件大小:2k
- <%@ page contentType="text/html;charset=GBK" language="java" %>
- <%@ page import = "StudyNews.*" %>
- <%@ page import = "java.util.*" %>
- <%
- Vector v = (Vector)session.getAttribute(Constants.NEWS_LIST_KEY);
- News news = null;
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>1</title>
- <style>
- <!--
- A:link {
- COLOR: #993399
- }
- .s {
- FONT-SIZE: 13px; LINE-HEIGHT: 170%; FONT-FAMILY: "宋体"
- }
- -->
- </style>
- </head>
- <body>
- <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
- <tr>
- <td width="100%">
- <img border="0" src="images/ruanjian.jpg" width="770" height="154"></td>
- </tr>
- <tr>
- <td width="100%"> </td>
- </tr>
- </table>
- <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
- <tr>
- <td width="13%"> </td>
- <td width="87%">
- <img border="0" src="images/mid-rdxw2.gif" width="101" height="18"><p>
- <%if(v != null ){
- for(int i = 0;i < v.size();i++)
- {
- news = (News)v.get(i);
- if (news.getType()==1){
- %>
- <span class="s"> <a href="newsDetail.do?newsId=<%=news.getId()%>"><%=news.getTitle()%></a><br>
- <%
- }
- }
- %>
-
- <p>
- <img border="0" src="images/mid-hyxw2.gif" width="94" height="19"></p>
-
- <% for(int i = 0;i < v.size();i++)
- {
- news = (News)v.get(i);
- if (news.getType()==2){
-
- %>
-
- <p><span class="s"> <a href="newsDetail.do?newsId=<%=news.getId()%>"><%=news.getTitle()%></a><br>
-
- <%
- }
- }
- }
- %>
-
- <p> </td>
- </tr>
- </table>
- <p align="center">Study Online版权所有</p>
- <p align="center"> </p>
- </body>
- </html>