📄 typedetial.jsp
字号:
<%//作者:林志灿 2007-5-12
%>
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ page import="StudyNews.*"%>
<%@ page import="java.util.*"%>
<%Vector v = (Vector) session.getAttribute(Constants.NEWS_LIST_KEY);
Vector vNews = null;
Type type = null;
News news = null;
Integer pageId=(Integer)session.getAttribute(Constants.CUR_PAGEID);%>
<BODY topMargin=0>
<CENTER>
<TABLE cellSpacing=0 cellPadding=0 width=771 border=0>
<TBODY>
<TR>
<TD width="1%"> <IMG height=7
src="../images/news/article1.gif" width=6></TD>
<TD>
<%if (v != null) {
vNews=(Vector)v.get(0);
type=(Type)vNews.get(0);
%>
您现在的位置: <a href="typeDetail.do?typeId=<%=type.getTypeId()%>"><%=type.getTypeName()%></a>
搜索: <INPUT id="thekeyword" type="text" name="keyword"> <input type="button" value="提交" onclick="location='typeDetail.do?typeId=<%=type.getTypeId()%>&keyword='+document.getElementById('thekeyword').value">
</TD></TR>
</TBODY></TABLE></CENTER>
<TABLE borderColor=#006699 cellSpacing=0 cellPadding=0 width=761 align=center
border=1>
<TBODY>
<TR>
<%=(String)session.getAttribute("nolist")%>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<% for(int j=1;j<vNews.size();j++){
news=(News)vNews.get(j);
%>
<TR>
<TD width=108>
<DIV align=center><img src="../images/news/article1.gif" width="15" height="8"></DIV></TD>
<TD width=337><a href="newsDetail.do?newsId=<%=news.getId()%>"><%=news.getTitle()%></a></TD>
<TD width=312>
<DIV style="COLOR: #ff0000" align=center>[<%=news.getTime()%>]</DIV></TD></TR>
<TR>
<% }//for%>
<TD align=middle colSpan=9>
<DIV align=right> <a href="typeDetail.do?typeId=<%=type.getTypeId()%>&pageId=<%=pageId.intValue()-1%>">[上一页]</a>
<a href="typeDetail.do?typeId=<%=type.getTypeId()%>&pageId=<%=pageId.intValue()+1%>">[下一页]</a>
</DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<DIV align=center><BR>
<TABLE cellSpacing=1 cellPadding=1 width=771 bgColor=#6899ca border=0>
<TBODY>
<tr>
<% for(int i=1;i<v.size();i++){
type=(Type)v.get(i);
%>
<td>
<a href="typeDetail.do?typeId=<%=type.getTypeId()%>"><%=type.getTypeName()%></a>
</td>
<%}//for%>
</tr>
</TBODY>
</table>
<%}//if%>
<a href="newsMain.do">通知通告主页面</a>
</TBODY></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -