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

📄 jswz_2.jsp~1~

📁 c++通信编程学习1
💻 JSP~1~
字号:
<%@ 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.jswz.*" %>
<% Vector vct=(Vector)request.getAttribute("vct");
<% String typevia=(String)request.getAttribute("typevia");%>
       String type=(String)request.getAttribute("type");
       String counts=(String )request.getAttribute("count");
       int count=Integer.parseInt(counts);
       String pagenos=(String)request.getAttribute("pageno");
       int pageno=Integer.parseInt(pagenos);
       String pagesizes=(String)request.getAttribute("pagesize");
       int pagesize=Integer.parseInt(pagesizes);
       String typevia=(String)request.getAttribute("typevia");
%>
<%Vector vctzxwz = (Vector) request.getAttribute("vctzxwz");%>
<%Vector vcttopwz = (Vector) request.getAttribute("vcttopwz");%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>
jswz_2
</title>
<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="770" height="25" 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 cellSpacing=0 borderColorDark=#e2dffd cellPadding=0 width=800 
align=center bgColor=#ffffff border=0 borderlightcolor="#EBF1F1" 
  witdth="100%">
  <TBODY>
    <TR> 
      <TD vAlign=top width=200 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="jswz2servlet?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%"><font color="#440000"><a href="jswz2servlet?type=j2&pageno=1">J2ee核心</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="jswz2servlet?type=sj&pageno=1">Servlet/Jsp</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="jswz2servlet?type=ej&pageno=1">EJB</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="jswz2servlet?type=jj&pageno=1">JDBC/JDO</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="jswz2servlet?type=rcj&pageno=1">Rmi/Corba/Jini</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="jswz2servlet?type=ys&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="jswz2servlet?type=mv&pageno=1">mvcwea</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 lastWzi=0;
                                               while(lastWzi<vctzxwz.size()){
                                                 WzInfo ni=(WzInfo)vctzxwz.elementAt(lastWzi);%>
            <tr> 
              <td valign=top width="10" height=20> <div align=right><strong>.</strong></div></td>
              <td valign=top width="138"><a target="_blank" href="jswz3servlet?id=<%=ni.getId()%>"><%=(ni.getTitle().length()>10?ni.getTitle().substring(0,8)+"...":ni.getTitle())%></a></td>
              <td valign=top width="52">[<%=ni.getSentdate().substring(5,7)%>,<%=ni.getSentdate().substring(8,10)%>]</td>
            </tr>
            <%lastWzi++;} %>
          </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 topwzsi=0;
                                               while(topwzsi<vcttopwz.size()){
                                                 WzInfo ni=(WzInfo)vcttopwz.elementAt(topwzsi);%>
            <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="jswz3servlet?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>
            <%topwzsi++;} %>
          </tbody>
        </table>
        <BR>
        <BR>
      </TD>
      <TD width=1 bgColor=#440000 height=271 rowSpan=0></TD>
      <TD width="600" vAlign=top> <img 
      height=21 src="image/vb_bullet.gif" width=24> 您的位置:首页 -&gt; <%=typevia%> 
        <BR>
        <br> <table width="600" height="25" border="1" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF">
          <%int newsi=0;
                                  while(newsi<vct.size()){
                                  WzInfo ni=new WzInfo();  ni=(WzInfo)vct.elementAt(newsi);%>
          <tr> 
            <td height="21" width="46">[<%=ni.getComefrom()%>]</td>
            <td width="281"><font
            color=#440000>-><a href="jswz3servlet?id=<%=ni.getId()%>" target="_blank"><%=ni.getTitle()%></a></font></td>
            <td height="21" width="112"><span class=style17><font color=#917402>提交人:<%=ni.getAuthor()%> 
              </font></span></td>
            <td height="21" width="68"><font color=#917402><%=ni.getSentdate() %></font></td>
            <td height="21" width="61"><font color=#917402><span  class=style9>人气:<%=ni.getSeecount()%></span></font></td>
          </tr>
          <%newsi++;}%>
        </table>
        <BR>
        <BR>
        <form action="jswz2servlet?type=<%=type%>" name="myform" method="Post">
          <table width="584" border="0">
            <tr>
              <td width="578"> <%if (pageno==1){%> <font color="#999999">首页 上一页</font>
                <%}else{%> <a href="jswz2servlet?type=<%=type%>&pageno=1">
                首页</a> <a href="jswz2servlet?type=<%=type%>&pageno=<%=pageno-1%>">
                上一页</a> <%}
        if(pageno==(count%pagesize==0?count/pagesize:count/pagesize+1)){%> <font color="#999999">下一页 末页</font>
                <%}else{ %> <a href="jswz2servlet?type=<%=type%>&pageno=<%=pageno+1%>">
                下一页</a> <a href="jswz2servlet?type=<%=type%>&pageno=<%=(count%pagesize==0?count/pagesize:count/pagesize+1)%>">
                末页</a> <%} %>
                当前页
                <input name="pageno" type="text" size="4" value="<%=pageno%>">
                <input name="button" type="button" onclick="window.location='jswz2servlet?type=<%=type%>&pageno='+myform.pageno.value" value="go"/>
                页数 <%=pageno%>/<%=count%pagesize==0?count/pagesize:count/pagesize+1%> 每页:<%=pagesize%> 总数:<%=count%></td>
            </tr>
          </table>
	</form>
		
      </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 + -