📄 hyxw_2.jsp~6~
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="com.j2ee.func.news.*" %>
<%@ page import="com.j2ee.servlet.news.*" %>
<%Vector vct=(Vector)request.getAttribute("vct");
NewsInfo ns=new NewsInfo();
ns=(NewsInfo)vct.firstElement();%>
<%Vector vctzxxw=(Vector)request.getAttribute("vctzxxw");%>
<%Vector vcttjxw=(Vector)request.getAttribute("vcttjxw");%>
<%Vector vcttopnews = (Vector) request.getAttribute("vcttopnews");%>
<% String typevia=(String)request.getAttribute("typevia");%>
<% String typeviad=(String)request.getAttribute("typeviad");%>
<%String str=ns.getType();
//if(str.equals("全部文章")){String type=qb;}
if(str.equals("国内新闻")){String typea="gnxw";}
if(str.equals("国际新闻")){String typea="gjxw";}
if(str.equals("企业动态")){String typea="qydt";}
if(str.equals("行业分析")){String typea="hyfx";}
if(str.equals("展会信息")){String typea="zhxx";}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>
hyxw_2
</title>
<link href="css/type.css" rel="stylesheet" type="text/css">
<link href="css/indexcss.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<%@ include file="inc/index.inc" %>
<table height=506 cellspacing=0 bordercolordark=#e2dffd cellpadding=0 width=760
align=center bgcolor=#ffffff border=0 borderlightcolor="#EBF1F1"
witdth="100%">
<tbody>
<tr>
<td width=600 height="506" align="left" valign=top bgcolor=#ffffff>
<img
height=27 src="image/vb_bullet.gif" width=30> 您的位置:<a href="index.jsp">首页</a>
-> <a href="hyxwservlet?type=<%=typea%>&pageno=1"><%=ns.getType()%></a>
-> <%=typeviad%>
<table width="100%" background=ddd.files/point.gif border=0>
<tbody>
<tr>
<td height=28> <div align=center><strong><%=ns.getTitle() %></strong>
</div></td>
</tr>
<tr>
<td height=30> <div align=center><font color=#0000ff>来源:</font><font size="3" face="宋体"><%=ns.getComefrom()%></font><font color=#0000ff>
</font><font color=#0000ff> 作者:</font><font size="3" face="宋体"><%=ns.getAuthor() %></font><font color=#0000ff>
时间:</font><font size="3" face="宋体"><%=ns.getNewsdate()%></font></div></td>
</tr>
</tbody>
</table>
<table cellspacing=0 cellpadding=0 width="600" align=center border=0>
<tbody>
<tr>
<td class=font105 valign=top
height=380><br> <br> <%=ns.getContent() %> </td>
</tr>
</tbody>
</table>
<table cellspacing=0 cellpadding=0 width="98%" align=center border=0>
<tbody>
<tr>
<td height=30><strong><font color=#ff0000>注:</font></strong><font
color=#000000>本站文章之所有权均属原作者或其网站所有,对于文章大家可以自行发表评论,但并不代表本站的观点! </font></td>
</tr>
</tbody>
</table>
</td>
<td valign=top width=200 bgcolor=#f7f7ff> <table cellspacing=0 cellpadding=0 width="100%" border=0>
<tbody>
<tr>
<td width="25%" align="center" valign="middle" background=ddd.files/line4.gif><img height=20 src="image/sbiao.gif"
width=25></td>
<td valign=bottom width="75%" background=ddd.files/line4.gif> <div align=center><strong>==
站内搜索 ==</strong></div></td>
</tr>
<tr>
<td colspan=2 bgcolor="#f7f7ff"> <div align=center><br>
<form name=form2 action=searchresult.php?s= method=post>
<table cellspacing=0 cellpadding=0 width="95%" border=0>
<tbody>
<tr>
<td width="38%" height=30> <div align=right>关键字:</div></td>
<td width="62%" height=30> <input class=stedit id=KeyWords
maxlength=30 size=13 name=KeyWords> </td>
</tr>
<tr>
<td height=30> <div align=right>类 别:</div></td>
<td height=30> <select id=Block name=Block>
<option
value=news>新闻资讯</option>
<option value=articles
selected>技术文章</option>
<option value=download>下载</option>
<option value=website>网站</option>
</select> </td>
</tr>
<tr>
<td colspan=2 height=30> <div align=center>
<input type=image height=20 width=80
src="image/search.gif" border=0 name=imageField2>
</div></td>
</tr>
</tbody>
</table>
</form>
</div></td>
</tr>
</tbody>
</table>
<br> <table cellspacing=0 cellpadding=0 width="190" align=center border=0 height="20">
<tbody>
<tr>
<td>◆ <strong>最新新闻<font color=#ff0000> TOP10</font>: </strong></td>
</tr>
<tr>
<td bgcolor=#440000 height=1></td>
</tr>
</tbody>
</table>
<br> <table cellspacing=0 cellpadding=0 width="200" align=center border=0 height="25">
<tbody>
<% int lastnewsi=0;
while(lastnewsi<vctzxxw.size()){
NewsInfo ni=(NewsInfo)vctzxxw.elementAt(lastnewsi);%>
<tr>
<td valign=top width="10" height=20> <div align=right><strong>.</strong></div></td>
<td valign=top width="138"><a target="_blank" href="newsdetailservlet?id=<%=ni.getId()%>"><%=(ni.getTitle().length()>10?ni.getTitle().substring(0,8)+"...":ni.getTitle())%></a></td>
<td valign=top width="52">[<%=ni.getNewsdate().substring(5,7)%>,<%=ni.getNewsdate().substring(8,10)%>]</td>
</tr>
<%lastnewsi++;} %>
</tbody>
</table>
<table cellspacing=0 cellpadding=0 width="200" align=center border=0>
<tbody>
<tr>
<td> </td>
</tr>
<tr>
<td bgcolor=#440000 height=1></td>
</tr>
</tbody>
</table>
<table cellspacing=0 cellpadding=0 width="190" align=center border=0 height="20">
<tbody>
<tr>
<td>◆ <strong>热点新闻<font color=#ff0000> TOP10</font>: </strong></td>
</tr>
<tr>
<td bgcolor=#440000 height=1></td>
</tr>
</tbody>
</table>
<table cellspacing=0 cellpadding=0 width="200" align=center border=0 height="25">
<tbody>
<% int topnewsi=0;
while(topnewsi<vcttopnews.size()){
NewsInfo ni=(NewsInfo)vcttopnews.elementAt(topnewsi);%>
<tr>
<td valign=top width="18" height=25> <div align=right><strong>.</strong></div></td>
<td width="120" height="25" align="left" valign=middle><a target="_blank" href="newsdetailservlet?id=<%=ni.getId()%>"><%=(ni.getTitle().length()>10?ni.getTitle().substring(0,8)+"...":ni.getTitle())%></a></td>
<td width="62" height="25" align="left" valign=middle><font size="-1">人气:<%=ni.getSeecount()%>
</font></td>
</tr>
<%topnewsi++;} %>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<div align=center>
<table width=800 height="30" border=0 align=center cellpadding=0 cellspacing=0>
<tbody>
<tr>
<td>
<div align=center><img height=30 src="image/di.gif"
width=800></div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -