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

📄 list.jsp

📁 基于JSP的网上购物系统,包含数据库DB设计文档
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312"%>
<%@ include file="include/config.jsp"%>
<%@include file="include/head.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/style.css" rel=stylesheet type=text/css>
<SCRIPT language=JavaScript src="../js/pub.js"></SCRIPT>
<title>乐趣新闻列表----乐趣工作室</title>
</head>
<body bgcolor="#FFF9E6" leftmargin="0" topmargin="0">
<table width="770" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DC9F01" bgcolor="#FFFFFF" bordercolordark="#FFF9E6">
  <tr> 
    <td valign="top">
<table width="770" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="80"><img src="images/tou.jpg" width="770" height="80"></td>
        </tr>
        <tr> 
          <td><table width="770" border="0" cellspacing="0" cellpadding="0">
              <tr bgcolor="#838383"> 
                <td width="755" height="5"><img src="images/tmtp.gif" width="2" height="2"></td>
              </tr>
              <tr> 
                <td height="25" background="images/topbg1.gif"> <div align="center">    
<%@include file="include/board1.jsp"%>              
               </td>
        </tr>
 
<%
  boardParentID = request.getParameter("boardParentID");
  boardID =   request.getParameter("boardID");   
  m_vct = news.getSubTypeList(boardParentID);
  position = news.getPosition(boardID,boardParentID);  
%>        
        <tr> 
          <td height="25" valign="bottom">&nbsp;&nbsp;
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=760>
  <TR>
    <TD height=20> 
    您现在的位置:<A href="index.jsp" class=list>首 页</A> → <A href="catalog.jsp?boardParentID=<%=boardParentID%>" class=list><!--%=new String(((String)((Vector)position.get(0)).get(0)).getBytes("gb2312"),"ISO8859_1")%--><%=((Vector)position.get(0)).get(0)%></A> → <A href="list.jsp?boardParentID=<%=boardParentID%>&boardID=<%=boardID%>" class=list><!--%=new String(((String)((Vector)position.get(0)).get(1)).getBytes("gb2312"),"ISO8859_1")%--> <%=((Vector)position.get(0)).get(1)%></A> → 文章列表     </FONT> </TD>
    <TD height=20 align="right"><font color=#2D56D2> 
    <%
      if(session.getAttribute("id") == null || session.getAttribute("id") == "")
       {
          %>
           <a href="javascript:issue();" class=list><u>发布自己的稿件</u></a>
          <%
       }
      else
       {
          %>
          <a href="issue.jsp" class=list><u>发布自己的稿件</u></a>
          <%
       }
          
    %>  
   
    </FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD>  
  </TR>
</TABLE>          
           </td>
        </tr>
      
        <tr>
          <td height="13"><hr width="99%" size="1"></td>
        </tr>
        <tr> 
          <td><table width="770" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="560" valign="top"><table width="560" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="560" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="180" rowspan="2"><div align="center"> 
                                <table width="160" border="1" cellpadding="0" cellspacing="0" bordercolor="#DC9F01"  bordercolordark="#FFFFFF">
                                  <tr> 
                                    <td><img src="images/toutiao.jpg" width="160" height="103"></td>
                                  </tr>
                                </table>
                              </div></td>
                            <td width="380" height="20"><font color="#A66400" size="2"><strong>个文科强人是怎样跨学校跨专业考研的...</strong></font></td>
                          </tr>
                          <tr> 
                            <td width="380"> <table width="380" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td height="60">现在跨专业跨学校考研已经是一种趋势。某君学习图书馆学年,也是得发腻。于是决定考个理科的研究生,在广泛的调查和研究之后。他毅然决定考天大的化院来挑战一下自己。看看一个连苯完都不会写的人是否可以大跨度考研成功。他做了一下跨专业跨学校考研已经是一种趋势。</td>
                                </tr>
                                <tr> 
                                  <td height="20" valign="bottom"> <div align="right"><a href="http://www.onlineshop.net/code/news/newdetail.jsp?boardParentID=1&boardID=5&newid=11" target="_blank">阅读全文 </a> 
                                      &gt;&gt;&nbsp;&nbsp;</div></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td height="10"><img src="images/tmtp.gif" width="2" height="2"> 
                      </td>
                    </tr>
                    <tr> 
                      <td>
                      <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
           <tr> 
            <td height="16" valign="bottom" bgcolor="#FFCC00" valign="top">
                              <table width="540" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr valign="center"> 
                                  <td width="50%" height="18" valign="top"> 
                                   &nbsp;&nbsp;:: <%=((Vector)position.get(0)).get(1)%> ::<br> </td>
                                  <td align="right" width="50%" height="18" valign="center">&nbsp;
                                  
                                  </td>
                                </tr>
                              </table>            
            </td>     
            </tr>           
<%
   // n_list_vct = pageCtl.getcurData(news.getList(boardID,boardParentID,"00"),40,1);
   n_list_vct = news.getList(boardID,boardParentID,"00");
   if(n_list_vct!=null&&n_list_vct.size()>0)
    {
%>
                           <tr> 
                            <td height="155" valign="top"> 
                              <table width="540" border="0" align="center" cellpadding="0" cellspacing="0">                              
                        
<%      
      
      int br_judge=0;
      
       for(int j=0;j<n_list_vct.size();j++)
        {   
          
           Vector t1_vct = (Vector)n_list_vct.get(j);
        
           title = (String)t1_vct.get(1);
        
           createdate = t1_vct.get(2).toString();
        
           if(title.length()>13)
            {
        
               title = title.substring(0,12)+"...";
        
            }           
                
              
                           if(j%2==0)
                             {
                               br_judge=1;
                                %>
                            <tr valign="top"> 
                                  <td width="50%" height="18"><img src="images/xtb.jpg" width="18" height="11"> 
                                    <a  href=newdetail.jsp?boardParentID=<%=boardParentID%>&boardID=<%=boardID%>&newid=<%=t1_vct.get(0)%>  target=_blank><!--%=new String(title.getBytes("gb2312"),"ISO8859_1")%--><%=title%></a>(<font color="#31720E"><%=(t1_vct.get(2).toString()).substring(5,16)%></font>)</img> </td>
                                    
                                 
                                <%
                             }
                            else
                             {  
                                  br_judge=0;
                                 %>  
                                  <td width="50%" height="18"><img src="images/xtb.jpg" width="18" height="11"> 
                                    <a  href=newdetail.jsp?boardParentID=<%=boardParentID%>&boardID=<%=boardID%>&newid=<%=t1_vct.get(0)%>  target=_blank><!--%=new String(title.getBytes("gb2312"),"ISO8859_1")%--><%=title%></a>(<font color="#31720E"><%=(t1_vct.get(2).toString()).substring(5,16)%></font>)</img><br> </td>
                                 </tr>
                                 
                                <%
                             }           

        }
        
                       if(br_judge==1)
                        {
                                 %>  
                                  <td width="50%" height="18">&nbsp;
                                    </td>
                                 </tr>
                              
                                <%                          
                        }
     %>
                                </table>
                        </td>
                    </tr>        
     <%                             
    }
%> 

              

                        </table>
                        </td>
                    </tr>
                  </table>
                  </td>
                <td width="10" valign="top" background="images/shuxian.gif">&nbsp;</td>
                <td width="200" valign="top"> 
                  <table width="180" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DC9F01"  bordercolordark="#FFFFFF">
                    <tr> 
                      <td><img src="images/sousuo.jpg" width="180" height="20"></td>
                    </tr>
                    <tr> 
                      <td height="95" background="images/shousuo.gif"> <table width="165" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr valign="bottom"> 
                            <td width="68" height="28"> <div align="center"><font size="2">分 类:</font></div></td>
                            <td width="97" height="28"><strong><font size="2"> 
                              </font></strong> <select name="select">
                                <option>全部文章</option>
                              </select> <strong><font size="2"> </font></strong></td>
                          </tr>
                          <tr> 
                            <td height="28"> <div align="center"><font size="2">关键字:</font></div></td>
                            <td height="28"><strong><font size="2"> 
                              <input name="textfield3" type="password" size="10">
                              </font></strong></td>
                          </tr>
                          <tr valign="bottom"> 
                            <td height="20" colspan="2"> <div align="center"><img src="images/dis06.gif" width="84" height="17"></div></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td height="12"><img src="images/tmtp.gif" width="2" height="2"></td>
                    </tr>
                    <tr> 
                      <td><img src="images/huiyuan.jpg" width="180" height="20"></td>
                    </tr>
                    <tr> 
                      <td height="95" background="images/shousuo.gif">
                      <%@include file="include/board2.jsp"%>   
                     </td>
                    </tr>
                    <tr> 
                      <td height="12"><img src="images/tmtp.gif" width="2" height="2"></td>
                    </tr>
                    <tr> 
                      <td><img src="images/jiaodian.jpg" width="180" height="20"></td>
                    </tr>
                    <tr> 
                      <td height="180" background="images/jiaodianbg.gif"><table width="140" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                          <tr>
                            <td height="16">* 新闻系统1.0版</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td valign="top">&nbsp;</td>
                <td valign="top">&nbsp;</td>
                <td width="200" valign="top">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    
  </tr>
</table>
<div align="center">
  <table width="760" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="10"><img src="images/tmtp.gif" width="2" height="2"></td>
    </tr>
    <tr>
      <td><div align="center"></div></td>
    </tr>
    <tr>
      <td><div align="center">本新闻系统部分内容摘自Internet,与 本公司 立场无关 </div></td>
    </tr>
  </table>
</div>
</body>
</html>

⌨️ 快捷键说明

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