/*
* JSP generated by Resin 2.1.6 (built Fri Nov 8 08:18:18 PST 2002)
*/
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.util.*;
import popten.web.*;
import popten.util.*;
public class _index__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, "/error.jsp", true, 8192, true);
javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
javax.servlet.http.HttpSession session = pageContext.getSession();
javax.servlet.ServletContext application = pageContext.getServletContext();
response.setContentType("text/html; charset=GBK");
request.setCharacterEncoding("GBK");
try {
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
//if(session.isNew())
//{
Coun.addCoun();
//}
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
Cata cata0 = new Cata();
Vector cata0List = cata0.Cata0All();
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
for(int i=0;i<cata0List.size();i++){
Cata cata0all= (Cata)cata0List.elementAt(i);
out.println("mpmenu"+(i+1)+"=new mMenu('"+cata0all.getcata_name()+"','','self','','','','');");
Cata cata1 = new Cata();
Vector cata1List = cata1.Cata1All(cata0all.getcata_id());
String rr=(String)session.getValue("r");
int r=rr!=null?Integer.parseInt(rr):1;
for(int j=0;j<cata1List.size();j++){
Cata cata1all= (Cata)cata1List.elementAt(j);
Cata cata2 = new Cata();
Vector cata2List = cata2.Cata2All(cata1all.getcata_id());
if(cata2List.size()>0){
out.println("msub"+r+"=new mMenuItem('"+cata1all.getcata_name()+"','','self',false,'','1','','','','');");
for(int k=0;k<cata2List.size();k++){
Cata cata2all= (Cata)cata2List.elementAt(k);
out.println("msub"+r+".addsubItem(new mMenuItem('"+cata2all.getcata_name()+"','cata2.jsp?cata2_id="+cata2all.getcata_id()+"&cata2_name="+cata2all.getcata_name()+"&act=1','self',false,'',null,'','','',''));");
}
out.println("mpmenu"+(i+1)+".addItem(msub"+r+");");
r++;
session.putValue("r",String.valueOf(r));
}
else{
out.println("mpmenu"+(i+1)+".addItem(new mMenuItem('"+cata1all.getcata_name()+"','','self',false,'',null,'','',''));");
}
}
}
session.removeValue("r");
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
if(cata0List.size()>0){
for(int i=0;i<cata0List.size();i++){
Cata cata0all= (Cata)cata0List.elementAt(i);
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
out.print((cata0all.getcata_id()));
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
out.print((cata0all.getcata_name()));
pageContext.write(_jsp_string8, 0, _jsp_string8.length);
}}
pageContext.write(_jsp_string9, 0, _jsp_string9.length);
News news = new News();
Vector newsList = new Vector();
newsList = news.loadTop10News();
pageContext.write(_jsp_string10, 0, _jsp_string10.length);
if(newsList.size()>0){
for(int i=0;i<newsList.size();i++){
News newsall= (News)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#FFF2EC';\" onmouseout=\"this.bgColor='#FFFAF8';\">\n<td width='12' height='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='100%'><a href='news.jsp?news_id="+newsall.getnews_id()+"'>"+newsall.getnews_title()+"</a></td>\n</tr>");
}}
pageContext.write(_jsp_string11, 0, _jsp_string11.length);
TopNews week=new TopNews();
newsList=week.WeekTop10();
if(newsList.size()>0){
for(int i=0;i<newsList.size();i++){
TopNews newsall= (TopNews)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#FFF2EC';\" onmouseout=\"this.bgColor='#FFFAF8';\">\n<td width='12' height='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='100%'><a href='news.jsp?news_id="+newsall.getnews_id()+"'>"+newsall.getnews_title()+"</a></td>\n</tr>");
}}
pageContext.write(_jsp_string12, 0, _jsp_string12.length);
//TopNews week=new TopNews();
newsList=week.DayTop10();
if(newsList.size()>0){
for(int i=0;i<newsList.size();i++){
TopNews newsall= (TopNews)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#FFF2EC';\" onmouseout=\"this.bgColor='#FFFAF8';\">\n<td width='12' height='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='100%'><a href='news.jsp?news_id="+newsall.getnews_id()+"'>"+newsall.getnews_title()+"</a></td>\n</tr>");
}}
pageContext.write(_jsp_string13, 0, _jsp_string13.length);
News pcinews = news.loadPicNews();
newsList = news.loadNewNews();
News hot=new News();
Vector hotnews = new Vector();
hotnews = hot.loadHotNews();
pageContext.write(_jsp_string14, 0, _jsp_string14.length);
if(pcinews.getimgsrc()!=null){
pageContext.write(_jsp_string15, 0, _jsp_string15.length);
out.print((pcinews.getnews_id()));
pageContext.write(_jsp_string16, 0, _jsp_string16.length);
out.print((pcinews.getimgsrc()));
pageContext.write(_jsp_string17, 0, _jsp_string17.length);
out.print((pcinews.getnews_title()));
pageContext.write(_jsp_string18, 0, _jsp_string18.length);
}
pageContext.write(_jsp_string19, 0, _jsp_string19.length);
if(hotnews.size()>0){
for(int ii=0;ii<hotnews.size();ii++){
News hot_news = (News)hotnews.elementAt(ii);
out.println("<tr onmouseover=\"this.bgColor='#deeeff';\" onmouseout=\"this.bgColor='#f2f8ff';\">\n<td width='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='260'><a href='cata1.jsp?cata0_id="+hot_news.getcata0_id()+"&cata0_name="+hot_news.getcata0_name()+"'>["+hot_news.getcata0_name()+"]</a> <a href='news.jsp?news_id="+hot_news.getnews_id()+"'>"+hot_news.getnews_title()+"</a></td>");
out.println("<td width='75' valign='bottom'><font color=#808080>["+hot_news.getdat().substring(0,10)+"]</font></td>\n</tr>");
}}
pageContext.write(_jsp_string20, 0, _jsp_string20.length);
if(newsList.size()>0){
for(int i=0;i<10;i++){
News newsall= (News)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#deeeff';\" onmouseout=\"this.bgColor='#f2f8ff';\">\n<td width='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='259'><a href='cata1.jsp?cata0_id="+newsall.getcata0_id()+"&cata0_name="+newsall.getcata0_name()+"'>["+newsall.getcata0_name()+"]</a> <a href='news.jsp?news_id="+newsall.getnews_id()+"'>"+newsall.getnews_title()+"</a></td>\n</tr>");
//out.println("<td width='50' valign='bottom'><font color=#808080>["+newsall.getdat().substring(5,10)+"]</font></td>\n</tr>");
}}
pageContext.write(_jsp_string21, 0, _jsp_string21.length);
if(newsList.size()>10){
for(int i=10;i<newsList.size();i++){
News newsall= (News)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#deeeff';\" onmouseout=\"this.bgColor='#f2f8ff';\">\n<td width='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='259'><a href='cata1.jsp?cata0_id="+newsall.getcata0_id()+"&cata0_name="+newsall.getcata0_name()+"'>["+newsall.getcata0_name
没有合适的资源?快使用搜索试试~ 我知道了~
JSP源码 POPTEN新闻0.96beta_poptenv0.96beta.rar
共221个文件
gif:103个
jsp:50个
java:25个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 29 浏览量
2023-03-04
11:36:11
上传
评论
收藏 615KB RAR 举报
温馨提示
免责声明:资料部分来源于合法的互联网渠道收集和整理,部分自己学习积累成果,供大家学习参考与交流。收取的费用仅用于收集和整理资料耗费时间的酬劳。 本人尊重原创作者或出版方,资料版权归原作者或出版方所有,本人不对所涉及的版权问题或内容负法律责任。如有侵权,请举报或通知本人删除。
资源推荐
资源详情
资源评论
收起资源包目录
JSP源码 POPTEN新闻0.96beta_poptenv0.96beta.rar (221个子文件)
HELP.BMP 246B
使用说明.chm 31KB
_index__jsp.class 42KB
SmartUpload.class 16KB
SmartUpload.class 16KB
_left__jsp.class 12KB
_adduserok__jsp.class 11KB
_right__jsp.class 7KB
File.class 6KB
File.class 6KB
_index__jsp.class 6KB
_error__jsp.class 6KB
_error__jsp.class 6KB
_setupok__jsp.class 5KB
_main__jsp.class 5KB
_login__jsp.class 4KB
_logout__jsp.class 4KB
Files.class 2KB
Files.class 2KB
Request.class 2KB
Request.class 2KB
SmartUploadException.class 389B
SmartUploadException.class 389B
style.css 4KB
edit.css 2KB
Thumbs.db 71KB
Thumbs.db 47KB
效果图.gif 80KB
logo1.gif 4KB
logo.gif 3KB
hotclosed.gif 2KB
table.gif 902B
MOOD8.GIF 902B
MOOD4.GIF 895B
MOOD7.GIF 894B
MOOD12.GIF 891B
MOOD5.GIF 884B
MOOD10.GIF 881B
MOOD9.GIF 880B
MOOD1.GIF 879B
numlist.gif 864B
bullist.gif 861B
undo.gif 859B
redo.gif 859B
center.gif 850B
aleft.gif 850B
aright.gif 848B
button-back.gif 760B
search.gif 745B
button-ok.gif 678B
button-login.gif 676B
button-upload.gif 648B
phone.gif 634B
quesion.gif 619B
sex.gif 618B
password.gif 613B
user.gif 607B
email.gif 605B
qq.gif 603B
answer.gif 592B
close1.gif 513B
index.gif 437B
open1.gif 427B
home.gif 398B
guestbook.gif 370B
closed.gif 361B
favor.gif 347B
help.gif 342B
jiantou1.gif 325B
jiantou2.gif 322B
bullet1.gif 320B
down.gif 307B
up.gif 302B
bullet2.gif 301B
closedb.gif 298B
Line_v.gif 289B
fgcolor.gif 180B
bullet.gif 179B
greystrip.gif 173B
MOOD6.GIF 152B
download.gif 150B
MOOD11.GIF 147B
wlink.gif 142B
MOOD2.GIF 140B
img.gif 140B
paste.gif 137B
MOOD3.GIF 136B
dc.gif 132B
-.gif 122B
White_TabRightSide3.gif 115B
White_TabRightSide.gif 115B
White_TabRightSide1.gif 115B
icon_folder.gif 114B
+.gif 110B
copy.gif 104B
underline.gif 102B
jiao3.gif 102B
jiao1.gif 102B
jiao2.gif 100B
menu-back.gif 99B
共 221 条
- 1
- 2
- 3
资源评论
金枝玉叶9
- 粉丝: 137
- 资源: 7640
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功