⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hyxw_3.jsp~26~

📁 c++通信编程学习1
💻 JSP~26~
字号:
<%@ 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.*" %>
<% Vector vct=(Vector)request.getAttribute("vct");
       String type=(String)request.getAttribute("type");
       Vector vctzxxw=(Vector)request.getAttribute("vctzxxw");
       Vector vcttjxw=(Vector)request.getAttribute("vcttjxw");
       String counts=(String )request.getAttribute("count");
       int count=Integer.parseInt(counts);
       String pageno=(String)request.getAttribute("page");
       %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>
hyxw_1
</title>
<link href="css/type.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table cellspacing=0 cellpadding=0 width=760 align=center bgcolor=#f7f7ff
border=0>
  <tbody>
    <tr>
      <td> <table cellspacing=0 cellpadding=0 width="100%" align=center border=0>
          <tbody>
            <tr>
              <td width=200 height=19>&nbsp;</td>
              <td width=558 rowspan="2" align=center valign=middle> <table cellspacing=0 cellpadding=0 width="100%" border=0>
                  <tbody>
                    <tr>
                      <td align=right height=20><font
                  color=#000000>首页</font> <font color=#000000>| 注册</font> <font
                  color=#000000>|</font> <font
                  color=#000000>我的主页| 搜索</font> <font color=#000000>|</font> <font
                  color=#000000>帮助</font> <font color=#000000>|</font> <font
                  color=#000000>站点地图</font> <font
                  color=#000000>|</font> <font color=#000000>关于本站</font> <font color=#000000>|</font>
                        <font
                  color=#000000>离开</font> <font color=#000000>|</font> &nbsp;</td>
                    </tr>
                  </tbody>
                </table>
                <div align=center><img src="image/top.jpg" alt="" width="461" height="60" align="left">
                  <table width="88" height="57" border="0" cellpadding="00" cellspacing="00">
                    <tr>
                      <td><img src="image/jt1.gif" width="11" height="11" ><a onClick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://com.com.com');return false;" href="" title="将本站设为你的首页">
                        设为首页</a><br > <img src="image/jt2.gif" width="11" height="11">
                        <a href="javascript:window.external.AddFavorite(location.href,document.title)" title="将本站加入到你的收藏夹">
                        加入收藏</a><br> <img src="image/jt3.gif" width="11" height="11">
                        <a href="list.list@eyou.com"> 联系我们</a></td>
                    </tr>
                  </table>
                </div></td>
            </tr>
            <tr>
              <td width=200 height=35> <div align=center><img src="image/log.jpg" width="200" height="60"></div></td>
            </tr>
          </tbody>
        </table></td>
    </tr>
  </tbody>
</table>
<table class=table2 height=22 cellspacing=0 bordercolordark=#ffffff
cellpadding=0 width=762 align=center bordercolorlight=#00000 border=0>
  <tbody>
    <tr>
      <td bgcolor=#4a70ac colspan=2 height=1></td>
    </tr>
    <tr>
      <td width=256 background=image/tabs_m_tile.gif
      height=22> <div align=center></div></td>
      <td width=506 background=image/tabs_m_tile.gif
      height=22> <div align=right><font color=#000000>&nbsp;<font
      color=#000020><a href="newsservlet">新闻资讯</a></font><a href="newsservlet">
          </a>| <font
      color=#000020><a href="jswz1servlet">技术文章</a></font> | 最新下载 |&nbsp; </font></div></td>
    </tr>
  </tbody>
</table>
<table height=278 cellspacing=0 bordercolordark=#e2dffd cellpadding=0 width=758
align=center bgcolor=#ffffff border=0 borderlightcolor="#EBF1F1"
  witdth="100%">
  <tbody>
    <tr>
      <td valign=top width=197 bgcolor=#f7f7ff> <table cellspacing=0 cellpadding=0 width="100%" border=0>
          <tbody>
            <tr>
              <td width="25%" background=image/line4.gif><img
            height=31 src="image/searchicon.gif" width=50></td>
              <td valign=bottom width="75%"
          background=image/line4.gif> <div align=center><strong>== 站内搜索 ==</strong></div></td>
            </tr>
            <tr bgcolor=#f7f7ff>
              <td colspan=2> <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>
        <table cellspacing=0 cellpadding=0 width="95%" align=center border=0>
          <tbody>
            <tr>
              <td>◆ <strong>文章分类:</strong></td>
            </tr>
            <tr>
              <td bgcolor=#440000 height=1></td>
            </tr>
          </tbody>
        </table>
        <br> <table cellspacing=0 cellpadding=0 width="80%" align=center border=0>
          <tbody>
            <tr valign=center>
              <td width="17%" height=20> <div align=center><strong> -&gt;</strong></div></td>
              <td width="83%"><font
            color=#440000><a href="hyxwservlet?id=gnxw">全部文章</a></font> </td>
            <tr valign=center>
              <td width="17%" height=20> <div align=center><strong><font
            color=#660000>-&gt;</font></strong></div></td>
              <td width="83%"><a href="hyxwservlet?id=hyfx">行业分析</a></td>
            </tr>
            <tr valign=center>
              <td width="17%" height=20> <div align=center><strong><font
            color=#660000>-&gt;</font></strong></div></td>
              <td width="83%"><a href="hyxwservlet?id=gnxw">国内新闻</a></td>
            </tr>
            <tr valign=center>
              <td width="17%" height=20> <div align=center><strong><font
            color=#660000>-&gt;</font></strong></div></td>
              <td width="83%"><font color="#440000"><a href="hyxwservlet?id=gjxw">国际新闻</a></font></td>
            </tr>
            <tr valign=center>
              <td width="17%" height=20> <div align=center><strong><font
            color=#660000>-&gt;</font></strong></div></td>
              <td width="83%"><font color="#440000"><a href="hyxwservlet?id=qydt">企业动态</a></font></td>
            </tr>
            <tr valign=center>
              <td width="17%" height=20> <div align=center><strong><font
            color=#660000>-&gt;</font></strong></div></td>
              <td width="83%"><font color="#440000"><a href="hyxwservlet?id=zhxx">展会信息</a></font></td>
            </tr>
          </tbody>
        </table>
        <br> <table cellspacing=0 cellpadding=0 width="95%" align=center border=0>
          <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="95%" align=center border=0>
          <tbody>
            <% int lastnewsi=0;
                                               while(lastnewsi<vctzxxw.size()){
                                                 NewsInfo ni=(NewsInfo)vctzxxw.elementAt(lastnewsi);%>
            <tr>
              <td valign=top width="9%" height=20> <div align=right><strong>.</strong></div></td>
              <td valign=top width="90%"><a target="_blank" href="newsdetailservlet?id=<%=ni.getId()%>"><%=(ni.getTitle().length()>10?ni.getTitle().substring(0,8)+"...":ni.getTitle())%></a>[<%=ni.getNewsdate().substring(5,7)%>,<%=ni.getNewsdate().substring(8,10)%>]</td>
            </tr>
            <%lastnewsi++;} %>
          </tbody>
        </table>
        <table cellspacing=0 cellpadding=0 width="95%" align=center border=0>
          <tbody>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td bgcolor=#440000 height=1></td>
            </tr>
          </tbody>
        </table>
        <table cellspacing=0 cellpadding=0 width="95%" align=center border=0>
          <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="95%" align=center border=0>
          <tbody>
            <%int tjnewssi=0;
							           while(tjnewssi<vcttjxw.size()){
                                                                     TjnewsInfo tjni=(TjnewsInfo)vcttjxw.elementAt(tjnewssi);%>
            <tr>
              <td valign=top width="9%" height=20> <div align=right><strong>.</strong></div></td>
              <td valign=top width="90%"> <a target="_blank" href="newsdetailservlet?id=<%=tjni.getNewsid()%>"><%=(tjni.getNewstitle().length()>12?tjni.getNewstitle().substring(0,10)+"...":tjni.getNewstitle())%></a>[<%=tjni.getNewsdate().substring(5,7)%>,<%=tjni.getNewsdate().substring(8,10)%>]
              </td>
            </tr>
            <%tjnewssi++;} %>
          </tbody>
        </table>
        <p>&nbsp;</p>
        <br> </td>
      <td width=1 bgcolor=#440000 height=271 rowspan=0></td>
      <td width="560" valign=top><br> <table cellspacing=0 cellpadding=0 width="100%" border=0>
          <tbody>
            <tr>
              <td width="14%">&nbsp;共有文章 篇</td>
              <td width="13%">每页显示 篇</td>
              <td width="14%">第 到 35 篇 </td>
              <td width="14%">第 <%=pageno+1%>页/共 <%= count/10+1%>页</td>
              <td width="7%"><a href="hyxwservlet?type=<%=type%> & page=<%=Integer.parseInt(pageno)-1 <0? 1:Integer.parseInt(pageno)-1%>">上一页 </a></td>
              <td width="5%"><a href="hyxwservlet?type=<%=type%> & page=<%=Integer.parseInt(pageno)+1 >count/10+1? Integer.parseInt(pageno):Integer.parseInt(pageno)+1%>">下一页</a> </td>
            </tr>
          </tbody>
        </table>
        <br> <table cellspacing=2 cellpadding=2 width="98%" align=center border=0>
          <tbody>
            <%int newsi=0;
                                  while(newsi<vct.size()){
                                  NewsInfo ni=new NewsInfo();  ni=(NewsInfo)vct.elementAt(newsi);%>
            <tr>
              <td>[<%=ni.getComefrom()%>] <font
            color=#440000>><a href="newsdetailservlet?id=<%=ni.getId()%>" target="_blank"><%=ni.getTitle()%></a></font>
                <font color=#999999>-</font> <font color=#917402>提交人:<%=ni.getAuthor()%>
                <%=ni.getNewsdate() %><span  class=style9>人气:<%=ni.getSeecount()%></span></font></td>
            </tr>
            <%newsi++;} %>
          </tbody>
        </table>
        <br> <table cellspacing=0 cellpadding=0 width="100%" border=0>
          <tbody>
            <tr>
              <td width="14%">&nbsp;共有文章 286 篇</td>
              <td width="13%">每页显示 35 篇</td>
              <td width="14%">第 1 到 35 篇 </td>
              <td width="14%">第 1 页/共 9 页</td>
              <td width="7%">上一页 </td>
              <td width="5%">下一页 </td>
            </tr>
          </tbody>
        </table></td>
    </tr>
  </tbody>
</table>
<div align=center>
  <table cellspacing=0 cellpadding=0 width=760 align=center border=0>
    <tbody>
      <tr>
        <td> <div align=center><img height=30 src="image/di.gif"
      width=760></div></td>
      </tr>
    </tbody>
  </table>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -