📄 index.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*,
java.text.*,
net.ijsp.news.news.*,
net.ijsp.news.online.*"%>
<%@include file="header.jsp"%>
<%
Factory factory = Factory.getInstance();
NewsFactory newsFactory = factory.getNewsFactory();
Iterator iterator;
News news;
Date date;
String dateString;
long time = new Date().getTime()-3*24*60*60*1000;
%>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=762>
<TBODY>
<TR>
<TD bgColor=#44672e height=1 width=1></TD>
<TD bgColor=#44672e height=1 width=168></TD>
<TD bgColor=#44672e height=1 width=1></TD>
<TD bgColor=#336633 height=1 width=590></TD>
<TD bgColor=#336633 height=1 width=2></TD></TR>
<TR>
<TD bgColor=#44672e width=1></TD>
<TD bgColor=#85b866 vAlign=top width=168>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=168>
<TBODY>
<TR>
<TD colSpan=3><IMG height=32 src="../images/l2.gif"
width=168></TD></TR>
<TR>
<TD rowSpan=2 width=4></TD>
<TD bgColor=#e8fcdb width=160>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=160>
<TBODY>
<TR>
<TD height=6></TD></TR>
<TR>
<TD>
<form action="search.jsp" method="post">
<TABLE border=0 cellPadding=0 cellSpacing=0 width=160>
<TBODY>
<TR>
<TD><p align='center'><select size='1' name='boardid'>
<option value="0">全部文章</option>
<option value="21">新手上路</option>
<option value="22">JSP技术</option>
<option value="23">JAVA编程</option>
<option value="24">数据库</option>
<option value="25">程序人生</option>
</select>
</td></tr>
<tr><td><p align='center'><input type='text' name='keyword' size='10'></tr></td>
<tr><td><center>
<INPUT border=0 class=img height=20 name=Submit src="../images/searchtable_button.gif" type=image vspace=3></center>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD rowSpan=2 width=4></TD></TR>
<TR>
<TD><IMG height=8 src="../images/l5.gif" width=160></TD></TR>
<TR>
<TD colSpan=3 height=4></TD></TR>
<TR>
<TD colSpan=3><IMG height=32 src="../images/l3.gif"
width=168></TD></TR>
<TR>
<TD rowSpan=2 width=4></TD>
<TD bgColor=#e8fcdb>
<%
Counter counter = Counter.getMsg();
String today = GetDate.getStringDateShort();
if(today==null)
today = "";
System.out.println(counter.getTodayDate());
if(!today.equals(counter.getTodayDate())) {
counter.update(today);
}
%>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=160>
<TBODY>
<TR>
<TD rowSpan=8> 今日访问量:<%=counter.getTodayCount()%>,共有<FONT color=#ff0000><%=counter.getCount()%></FONT>人访问,日最高访问人数为:<FONT color=#ff0000><%=counter.getMaxCount()%></FONT>人,发生日期:<%=counter.getMaxDate()%>
</TD>
</TR>
<TR>
<TD width=16>
</TD></TR></TBODY></TABLE></TD>
<TD rowSpan=2 width=4></TD></TR>
<TR>
<TD><IMG height=8 src="../images/l5.gif" width=160></TD>
<TD></TD></TR>
<TR>
<TD colSpan=3 height=4></TD></TR>
<TR>
<TD colSpan=3><IMG height=35 src="../images/l8.gif"
width=168></TD></TR>
<TR>
<TD width=4></TD>
<TD bgColor=#e8fcdb>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=160>
<TBODY>
<TR>
<TD>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=160>
<TBODY>
<TR>
<TD vAlign=top><center><A href="http://www.javastudy.org/" target=_blank>JavaStudy.org</A></center></TD></TR>
<tr><TD vAlign=top><center><A href="http://enjoyjava.yeah.net/" target=_blank>Enjoy Java</A></center></TD></TR>
<tr><TD vAlign=top><center><A href="http://www.cnjm.net/" target=_blank>java手机网</A></center></TD></TR>
<tr><TD vAlign=top><center><A href="http://www.china1024.com/" target=_blank>中国字节网</A></center></TD></TR>
<tr><TD vAlign=top><center><A href="http://www.yemaosheng.com/" target=_blank><IMG border=0 src="../images/yms.gif"></A></center></TD></TR>
<tr><td height="6"></td></tr>
<tr><TD vAlign=top><center><A href="http://www.java-cn.com/" target=_blank><IMG border=0 src="../images/java-cn.gif"></A></center></TD></TR>
<tr><td height="6"></td></tr>
<tr><TD vAlign=top><center><A href="http://www.cnjsp.com/" target=_blank><IMG border=0 src="../images/cnjsp.gif"></A></center></TD></TR>
<tr><td height="6"></td></tr>
<tr><TD vAlign=top><center><A href="http://www.503room.com/" target=_blank><IMG border=0 src="../images/503room.jpg"></A></center></TD></TR>
<tr><td height="6"></td></tr>
</TR></TBODY></TABLE></TD></TR>
</TR></TBODY></TABLE></TD>
<TD width=4></TD></TR>
<TR>
<TD width=4></TD>
<TD bgColor=#e8fcdb> </TD>
<TD width=4></TD></TR></TBODY></TABLE>
</TD>
<TD bgColor=#44672e width=1></TD>
<TD align=middle vAlign=top width=591>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=591>
<TBODY>
<TR bgColor=#ffebbf>
<TD width=16>
<DIV align=center><FONT color=#fdc1bb><B><FONT color=#fb8679><IMG
height=11 src="../images/yellow_arrow.gif"
width=11></FONT></B></FONT></DIV></TD>
<TD width=42>用户名</TD>
<TD width=97><INPUT name=username size=12> </TD>
<TD width=15>
<DIV align=center><FONT color=#fdc1bb><B><FONT color=#fb8679><IMG
height=11 src="../images/yellow_arrow.gif"
width=11></FONT></B></FONT></DIV></TD>
<TD width=31>密 码 </TD>
<TD width=89><INPUT name=password size=12 type=password> </TD>
<TD width=43>
<DIV align=center><INPUT border=0 class=img height=20 name=Submit
src="../images/logon.gif" type=image vspace=3 width=29>
</DIV></TD>
<TD width=109>[请勿限制cookie]</TD>
<TD width=79><IMG align=absMiddle height=20
src="../images/add.gif" width=20><A
href="../forum/reg.jsp"
target=_blank>即刻加入</A> </TD>
<TD width=25><IMG height=20 src="../images/h2.gif" width=20></TD>
<TD width=45><A href="mailto:ccjsmile@sina.com">投诉</A></TD></FORM></TR>
<TR>
<TD bgColor=#44672e colSpan=13 height=1></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD height=2></TD></TR>
<TR>
<TD bgColor=#fcfcfa>
<P align=center>
<MARQUEE height=16 scrollDelay=200
width=583>锋网正在改斑中,<B><FONT
color=#008000>欢迎大家提出宝贵意见</FONT></B>
</MARQUEE></P></TD></TR>
<TR>
<TD>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width=570><TBODY>
<TR>
<TD vAlign=top width=420>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width=420>
<TBODY>
<TR>
<TD height=4></TD>
<TD width=1></TD>
<TD></TD></TR>
<TR>
<TD colSpan=3 height=150>
<DIV align=center><a href="../homepage/index.jsp"><img border="0" src="../images/aaa.gif" width="409" height="166"></a>
</DIV></TD></TR>
<TR>
<TD colSpan=3 height=3></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top width=150>
<DIV align=center>
<TABLE align=right border=0 cellPadding=0 cellSpacing=0
width=150>
<TBODY>
<TR>
<TD colSpan=1 height=20>
<DIV align=center><IMG alt=站务信息 height=20
src="../images/myshanwu1.gif"
width=149></DIV></TD></TR>
<tr>
<TD height=150 vAlign=top width=148>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width=140>
<TBODY>
<TR>
<TD height=148
vAlign=top>
锋网全新改斑,欢迎大家提出宝贵意见,谢谢。<br>
新闻发布采用了静态的Html页面,全文检索采用Lucene,相信访问速度比原来快。<br>
我会在最近一段时间提供“锋网新闻发布”程序的下载,敬请留意。
</TD></TR></TBODY></TABLE></TD></TR>
</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width=570><TBODY>
<TR>
<TD vAlign=top width=284>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="95%">
<TBODY>
<tr>
<td width=136 valign="bottom"><img src=../images/t1.gif width=130 height=16 border=0></td>
<td width=240 align=right class=p2> </td>
<td width=80 class=p2><a href="list.jsp?news=21"><img src="../images/moreinfo.gif" width="60" height="17" border="0"></a></td>
</tr>
<tr>
<td colspan=3><img src=../images/index_01.jpg width=280 height=3></td>
</tr>
<TR>
<TD colspan="3">
<%
iterator = newsFactory.list(21,1,15);
while(iterator.hasNext()) {
news = (News)iterator.next();
String title = news.getTitle();
if(title.length()>18)
title = title.substring(0,18)+"...";
out.println("<li><a class=f14 href='../news/"+ news.getNewsFile() +"' target=_blank>"+ title +"</a>");
if(time<news.getDate())
out.println("<img src='../images/new0.gif'>");
date = new Date(news.getDate());
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM");
dateString = formatter.format(date);
out.println("(<font color=#008000>"+dateString+"</font>)");
out.println("</li>");
}
%>
</TD></TR></TBODY></TABLE></TD>
<TD background=line-back.gif vAlign=top
width=2></TD>
<TD vAlign=top width=284>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="95%">
<TBODY>
<tr>
<td width=136 valign="bottom"><img src=../images/t2.gif width=130 height=16 border=0></td>
<td width=240 align=right class=p2> </td>
<td width=80 class=p2><a href="list.jsp?news=22"><img src="../images/moreinfo.gif" width="60" height="17" border="0"></a></td>
</tr>
<tr>
<td colspan=3><img src=../images/index_01.jpg width=280 height=3></td>
</tr>
<TR>
<TD colspan="3">
<%
iterator = newsFactory.list(22,1,15);
while(iterator.hasNext()) {
news = (News)iterator.next();
String title = news.getTitle();
if(title.length()>18)
title = title.substring(0,18)+"...";
out.println("<li><a class=f14 href='../news/"+ news.getNewsFile() +"' target=_blank>"+ title +"</a>");
if(time<news.getDate())
out.println("<img src='../images/new0.gif'>");
date = new Date(news.getDate());
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM");
dateString = formatter.format(date);
out.println("(<font color=#008000>"+dateString+"</font>)");
out.println("</li>");
}
%>
</TD></TR></TBODY></TABLE></TD></TR>
<tr>
<TR>
<TD vAlign=top width=284>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="95%">
<TBODY>
<tr>
<td width=136 valign="bottom"><img src=../images/t3.gif width=130 height=16 border=0></td>
<td width=240 align=right class=p2> </td>
<td width=80 class=p2><a href="list.jsp?news=24"><img src="../images/moreinfo.gif" width="60" height="17" border="0"></a></td>
</tr>
<tr>
<td colspan=3><img src=../images/index_01.jpg width=280 height=3></td>
</tr>
<TR>
<TD colspan="3">
<%
iterator = newsFactory.list(23,1,15);
while(iterator.hasNext()) {
news = (News)iterator.next();
String title = news.getTitle();
if(title.length()>18)
title = title.substring(0,18)+"...";
out.println("<li><a class=f14 href='../news/"+ news.getNewsFile() +"' target=_blank>"+ title +"</a>");
if(time<news.getDate())
out.println("<img src='../images/new0.gif'>");
date = new Date(news.getDate());
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM");
dateString = formatter.format(date);
out.println("(<font color=#008000>"+dateString+"</font>)");
out.println("</li>");
}
%>
</TD></TR></TBODY></TABLE></TD>
<TD background=/line-back.gif vAlign=top
width=2></TD>
<TD vAlign=top width=284>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="95%">
<TBODY>
<tr>
<td width=136 valign="bottom"><img src=../images/t5.gif width=130 height=16 border=0></td>
<td width=240 align=right class=p2> </td>
<td width=80 class=p2><a href="http://bbs.ijsp.net"><img src="../images/moreinfo.gif" width="60" height="17" border="0"></a></td>
</tr>
<tr>
<td colspan=3><img src=../images/index_01.jpg width=280 height=3></td>
</tr>
<TR>
<TD colspan="3">
<%
// out.println(net.ijsp.news.forum.ForumThread.showBBS());
out.println("<br>此处为论坛数据^&^");
%>
</TD></TR></TBODY></TABLE></TD></TR>
</tr>
</TBODY></TABLE></TD></TR>
</TBODY></TABLE>
<TD bgColor=#44672e width=2></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=30
style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid"
width=760>
<TBODY>
<CENTER></CENTER>
<TR>
<TD colSpan=2 height=26 vAlign=center><IMG height=27
src="../images/bottom-3.gif" width=760></TD></TR></TBODY></TABLE>
</BODY></HTML>
<%@include file="footer.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -