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

📄 hyxw_2.jsp~5~

📁 c++通信编程学习1
💻 JSP~5~
字号:
<%@ 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">
<table width="770" height="114" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="29" colspan="3"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="15%" height="28"><img src="image/member_enter.gif" width="120" height="26"></td>
          <td width="58%" bgcolor="#E6E6E6"> <form action="logincservlet" method="post" name="form1">
              用户名
              <input name="name" type="text" size="16" maxlength="20">
              密码
              <input name="password" type="password" value="" size="16">
              <select name="usertype">
                <option value="0" selected>个人用户</option>
                <option value="1">企业用户</option>
              </select>
              <input type="submit" name="Submit" value="登陆">
            </form></td>
          <td width="13%" bordercolor="#FFFFFF" bgcolor="#E6E6E6"><p>注册帐号</p></td>
          <td width="10%" bordercolor="#FFFFFF" bgcolor="#E6E6E6">忘记密码</td>
          <td width="4%" bordercolor="#FFFFFF" bgcolor="#E6E6E6">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td width="26%" height="60" class="index"><img src="image/log.jpg" width="200" height="60"></td>
    <td width="62%" height="60" class="index"><img src="image/top.jpg" width="476" height="60"></td>
    <td width="12%" align="center" valign="middle"> <p><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></p></td>
  </tr>
  <tr>
    <td height="25" colspan="3" align="center" valign="top"> <table class=table2 height=22 cellspacing=0 bordercolordark=#ffffff
cellpadding=0 width=764 align=center bordercolorlight=#00000 border=0>
        <tbody>
          <tr>
            <td bgcolor=#4a70ac colspan=2 height=1></td>
          </tr>
          <tr>
            <td width=212 background=image/tabs_m_tile.gif
      height=22><div align=center></div></td>
            <td width=552 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> |<a href="zlxzservlet">
                最新下载 </a>|&nbsp; </font></div></td>
          </tr>
        </tbody>
      </table></td>
  </tr>
</table>
<table height=542 cellspacing=0 bordercolordark=#e2dffd cellpadding=0 width=760
align=center bgcolor=#ffffff border=0 borderlightcolor="#EBF1F1"
  witdth="100%">
  <tbody>
  <tr>
      <td valign=top width=600 bgcolor=#ffffff>&nbsp;&nbsp; <img
      height=27 src="image/vb_bullet.gif" width=30> 您的位置:<a href="index.jsp">首页</a>
        -&gt; <a  href="hyxwservlet?type=typea&pageno=1"><%=ns.getType()%></a> -&gt; <%=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 width="95%" align=center border=0>
        <tbody>
        <tr>
          <td width="65%">上一篇:fdisk用法</td>
          <td width="35%">&nbsp;</td>
        </tr>
        <tr>
          <td>下一篇:</td>
          <td><img
            height=23 src="image/v_email.gif" width=100 border=0><img height=23 src="" width=90
            border=0></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>
        <table cellspacing=0 cellpadding=0 width="200" 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="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?type=qb&pageno=1">全部文章</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?type=hyfx&pageno=1">行业分析</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?type=gnxw&pageno=1">国内新闻</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?type=gjxw&pageno=1">国际新闻</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?type=qydt&pageno=1">企业动态</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?type=zhxx&pageno=1">展会信息</a></font></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>&nbsp;</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>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
      <br>
    </td>
  </tr>
  <tr bgcolor=#f1f1f1>
    <td valign=top colspan=2 height=271><br>
      <br>
    </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 + -