news.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:4k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <jsp:useBean id="newBean" class="MyFly.Bean.newBean" scope="request"/>
- <jsp:useBean id="newBeans" class="MyFly.Bean.newBeans" scope="request"/>
- <%@ include file ="top.jsp" %>
- <%
- String index=request.getParameter("index");
- if(index==null){
- out.println("<Script language=JavaScript>alert('您访问的页面不存在');JavaScript:history.back();</Script>");
- }
- %>
- <HTML><HEAD><TITLE>-星海图书网-</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
- href="image/buyok_shop.css" type=text/css
- rel=stylesheet><LINK href="image/table.css" type=text/css
- rel=stylesheet><LINK href="image/buyok_shop.css"
- type=text/css rel=stylesheet>
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- .STYLE1 {
- COLOR: #ff3300
- }
- .STYLE2 {
- COLOR: #ff0000
- }
- </STYLE>
- <%!
- StringBuffer convert(StringBuffer sour){
- for(int i=0;i<sour.length();i++){
- if(sour.substring(i,i+1).equals("n")){
- sour.delete(i,i+1);
- sour.insert(i,"</p><p>");
- }
- }
- return sour;
- }
- %>
- <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
- <BODY>
- <CENTER>
- <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center
- bgColor=#ffffff border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=left height=55><IMG height=55 src="image/yzdt1.gif" width=255></TD>
- </TR>
- <TR>
- <TD vAlign=top align=left width=210 bgColor=#fafafa>
- <TABLE cellSpacing=0 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <%
- int num=1;
- newBeans.getQuery("-1");
- for(int i=0; i<newBeans.getItems(); i++)
- {
- %>
- <TR>
- <TD width=22 height=25> <DIV align=center><IMG height=11
- src="image/3.gif" width=10
- align=absMiddle></DIV></TD>
- <TD width=178><a href="news.jsp?index=<%=newBeans.getNewID(i)%>"><%=newBeans.getTopic(i)%></a></TD>
- </TR>
- <%
- }
- %>
- </TBODY>
- </TABLE>
- </TD>
- <TD class=left vAlign=top align=middle width=550 bgColor=#fdfdfd>
- <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0>
- <TBODY>
- <TR>
- <TD align=right width=24 height=30><IMG height=11
- src="image/jt_2.gif" width=11></TD>
- <TD width=510>当前位置:<A
- href="default.jsp">首页</A> > <A
- href="#">新闻动态</A> >
- 浏览新闻</TD>
- </TR>
- <TR>
- <TD align=middle background="image/bgline.gif"
- colSpan=2 height=1></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=1 width="95%" align=center
- bgColor=#ffffff border=0>
- <TBODY>
- <TR align=center>
- <TD><B><FONT color=#ff6600>
- <%
- if(newBean.getNew(Integer.parseInt(index)))
- {
- %>
- <DIV style="FONT-SIZE: 15pt; LINE-HEIGHT: 250%"> <%=newBean.getTopic()%></DIV>
- </FONT></B></TD></TR>
- <TR>
- <TD align=middle><FONT color=#448697><IMG
- src="image/xie.gif" border=0>出处:<%=newBean.getOrigin()%>
- 发布日期: 【<%=newBean.getAppendTime()%>】 </FONT></TD>
- </TR>
- <TR>
- <TD height=25></TD></TR>
- <TR>
- <TD vAlign=center bgColor=#ffffff>
- <DIV style="LINE-HEIGHT: 180%">
- <%=convert(new StringBuffer(newBean.getContent()))%>
- <%
- }
- %></DIV></TD></TR></TBODY></TABLE><BR><BR></TD></TR></TBODY></TABLE>
- <%@ include file ="foot.jsp" %>
- </CENTER></BODY></HTML>