复件 catalog.jsp
上传用户:sami52198
上传日期:2010-02-11
资源大小:5174k
文件大小:15k
源码类别:

电子政务应用

开发平台:

MultiPlatform

  1. <%@ page contentType="text/html;charset=gb2312" %>
  2. <%@ include file="include/config.jsp"%>
  3. <%@include file="include/head.jsp"%>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <LINK href="../css/style.css" rel=stylesheet type=text/css>
  8. <SCRIPT language=JavaScript src="../js/pub.js"></SCRIPT>
  9. <title>乐趣新闻首页----乐趣工作室</title>
  10. </head>
  11. <body bgcolor="#FFF9E6" leftmargin="0" topmargin="0">
  12. <table width="770" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DC9F01" bgcolor="#FFFFFF" bordercolordark="#FFF9E6">
  13.   <tr> 
  14.     <td valign="top">
  15. <table width="770" border="0" cellspacing="0" cellpadding="0">
  16.         <tr> 
  17.           <td height="80"><img src="images/tou.jpg" width="770" height="80"></td>
  18.         </tr>
  19.         <tr> 
  20.           <td><table width="770" border="0" cellspacing="0" cellpadding="0">
  21.               <tr bgcolor="#838383"> 
  22.                 <td width="755" height="5"><img src="images/tmtp.gif" width="2" height="2"></td>
  23.               </tr>
  24.               <tr> 
  25.                 <td height="25" background="images/topbg1.gif"> <div align="center">    
  26. <%@include file="include/board1.jsp"%>              
  27.                </td>
  28.         </tr>
  29.  
  30.  <% 
  31.    boardParentID =request.getParameter("boardParentID");  
  32.    boardParentName = ((Vector)(news.getTypeName(boardParentID).get(0))).get(0).toString();
  33.    m_vct = news.getSubTypeList(boardParentID );//取得放在首页的新闻类型
  34. %>          
  35.         <tr> 
  36.           <td height="25" valign="bottom">&nbsp;&nbsp;
  37. <TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=760>
  38.   <TR>
  39.     <TD height=20> 
  40.     您现在的位置:<A href="index.jsp">首 页 </A> 
  41.       <%
  42.        if(boardParentID!=null&&!boardParentID.equals(""))
  43.        {
  44.          %>
  45.   → <A href="catalog.jsp?boardParentID=<%=boardParentID%>" class=list><!--%=new String(boardParentName.getBytes("gb2312"),"ISO8859_1")%--><%=boardParentName%></A> → 栏目列表 
  46.          <%
  47.        } 
  48.       else
  49.       {
  50.          %>
  51.            → 栏目列表
  52.          <%      
  53.       }  
  54.       %>        </FONT> </TD>
  55.     <TD height=20 align="right"><font color=#2D56D2> 
  56.     <%
  57.       if(session.getAttribute("id") == null || session.getAttribute("id") == "")
  58.        {
  59.           %>
  60.            <a href="javascript:issue();" class=list><u>发布自己的稿件</u></a>
  61.           <%
  62.        }
  63.       else
  64.        {
  65.           %>
  66.           <a href="issue.jsp" class=list><u>发布自己的稿件</u></a>
  67.           <%
  68.        }
  69.           
  70.     %>  
  71.    
  72.     </FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD>  
  73.   </TR>
  74. </TABLE>          
  75.            </td>
  76.         </tr>
  77.       
  78.         <tr>
  79.           <td height="13"><hr width="99%" size="1"></td>
  80.         </tr>
  81.         <tr> 
  82.           <td><table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  83.                   <tr> 
  84.                 <td width="560" valign="top"><table width="560" border="0" cellspacing="0" cellpadding="0">
  85.                     <tr> 
  86.                       <td><table width="560" border="0" cellspacing="0" cellpadding="0">
  87.                           <tr> 
  88.                             <td width="180" rowspan="2"><div align="center"> 
  89.                                 <table width="160" border="1" cellpadding="0" cellspacing="0" bordercolor="#DC9F01"  bordercolordark="#FFFFFF">
  90.                                   <tr> 
  91.                                     <td><img src="images/toutiao.jpg" width="160" height="103"></td>
  92.                                   </tr>
  93.                                 </table>
  94.                               </div></td>
  95.                             <td width="380" height="20"><font color="#A66400" size="2"><strong>个文科强人是怎样跨学校跨专业考研的...</strong></font></td>
  96.                           </tr>
  97.                           <tr> 
  98.                             <td width="380"> <table width="380" border="0" cellspacing="0" cellpadding="0">
  99.                                 <tr> 
  100.                                   <td height="60">现在跨专业跨学校考研已经是一种趋势。某君学习图书馆学年,也是得发腻。于是决定考个理科的研究生,在广泛的调查和研究之后。他毅然决定考天大的化院来挑战一下自己。看看一个连苯完都不会写的人是否可以大跨度考研成功。他做了一下跨专业跨学校考研已经是一种趋势。</td>
  101.                                 </tr>
  102.                                 <tr> 
  103.                                   <td height="20" valign="bottom"> <div align="right"><a href="http://www.2rich.net/code/news/newdetail.jsp?boardParentID=1&boardID=5&newid=11" target="_blank">阅读全文 </a>
  104.                                       &gt;&gt;&nbsp;&nbsp;</div></td>
  105.                                 </tr>
  106.                               </table></td>
  107.                           </tr>
  108.                         </table></td>
  109.                     </tr>
  110.                     <tr> 
  111.                       <td height="10"><img src="images/tmtp.gif" width="2" height="2"> 
  112.                       </td>
  113.                     </tr>
  114.                     <tr> 
  115.                       <td>
  116.                       <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
  117. <%
  118.    if(m_vct!=null&&m_vct.size()>0)
  119.     {
  120.        for(int i=0;i<m_vct.size();i++)
  121.         {
  122.            Vector t_vct = (Vector)m_vct.get(i);
  123.            
  124.           %>
  125.                         
  126.                           <tr> 
  127.                             <td height="16" valign="bottom" bgcolor="#FFCC00">  
  128.                               <table width="100%">
  129.                               <tr align="left">
  130.                               <td>&nbsp;&nbsp;:: <!--%=new String(((String)t_vct.get(2)).getBytes("gb2312"),"ISO8859_1")%--><%=t_vct.get(2)%> ::
  131.                               </td>                              
  132.                               <td align="right">
  133.                               <a href="list.jsp?boardParentID=<%=t_vct.get(0)%>&boardID=<%=t_vct.get(1)%>">更多>>>&nbsp;&nbsp;&nbsp;</a> 
  134.                               </td>
  135.                               </tr>
  136.                               </table>
  137.                               </td>
  138.                           </tr>  
  139.                           
  140.                                                                            
  141.         <%
  142.               boardParentID =t_vct.get(0).toString();
  143.                   boardID =t_vct.get(1).toString();
  144.                    n_list_vct =news.getList(boardID,boardParentID,"00");// pageCtl.getcurData(news.getList(boardID,boardParentID,"00"),20,1); //分页实现
  145.                  
  146.                     if(n_list_vct!=null&&n_list_vct.size()>0)
  147.                      {
  148.                      
  149.                         %>
  150.                           <tr> 
  151.                             <td height="155" valign="top"> 
  152.                               <table width="540" border="0" align="center" cellpadding="0" cellspacing="0">
  153.                           
  154.                         <%
  155.                         int br_judge=0;
  156.                         for(int j=0;j<n_list_vct.size();j++)
  157.                          {
  158.                             Vector t1_vct = (Vector)n_list_vct.get(j);
  159.                             title = (String)t1_vct.get(1);
  160.                             if(title.length()>14)
  161.                              {
  162.                                 title = title.substring(0,12)+"...";
  163.                              }
  164.                            //新闻现实换行处理  
  165.                             if(j%2==0)
  166.                              {
  167.                                br_judge=1;
  168.                                 %>
  169.                                <tr valign="top"> 
  170.                                   <td width="50%" height="18"><img src="images/xtb.jpg" width="18" height="11"> 
  171.                                     <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)%>)<br> 
  172.                                     </td>
  173.                                  
  174.                                                                                      
  175.                                 <%
  176.                              }
  177.                             else
  178.                              {  
  179.                                   br_judge=0;
  180.                                  %>  
  181.                                     <td width="50%" height="18">
  182.                                     <img src="images/xtb.jpg" width="18" height="11"> 
  183.                                     <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)%>) 
  184.                                     <br></td>
  185.                                 </tr>                               
  186.                                                                                                   
  187.                                  <%
  188.                              }
  189.                          }
  190.                        if(br_judge==1)
  191.                         {
  192.                                  %>  
  193.                                     <td width="50%" height="18"><img src="images/xtb.jpg" width="18" height="11"> &nbsp;                                    
  194.                                     </td>
  195.                                 </tr>                               
  196.                                                                                         
  197.                                 <%                          
  198.                         }  
  199.                        %>
  200.                                 </table></td> 
  201.                                </tr>                          
  202.                        <%  
  203.                      }
  204.         }
  205.     }
  206. %> 
  207.               
  208.         
  209.                         </table></td>
  210.                     </tr>
  211.                   </table></td>
  212.                 <td width="10" valign="top" background="images/shuxian.gif">&nbsp;</td>
  213.                 <td width="200" valign="top"> 
  214.                   <table width="180" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DC9F01"  bordercolordark="#FFFFFF">
  215.                     <tr> 
  216.                       <td><img src="images/sousuo.jpg" width="180" height="20"></td>
  217.                     </tr>
  218.                     <tr> 
  219.                       <td height="95" background="images/shousuo.gif"> <table width="165" border="0" align="center" cellpadding="0" cellspacing="0">
  220.                           <tr valign="bottom"> 
  221.                             <td width="68" height="28"> <div align="center"><font size="2">分 类:</font></div></td>
  222.                             <td width="97" height="28"><strong><font size="2"> 
  223.                               </font></strong> <select name="select">
  224.                                 <option>全部文章</option>
  225.                               </select> <strong><font size="2"> </font></strong></td>
  226.                           </tr>
  227.                           <tr> 
  228.                             <td height="28"> <div align="center"><font size="2">关键字:</font></div></td>
  229.                             <td height="28"><strong><font size="2"> 
  230.                               <input name="textfield3" type="password" size="10">
  231.                               </font></strong></td>
  232.                           </tr>
  233.                           <tr valign="bottom"> 
  234.                             <td height="20" colspan="2"> <div align="center"><img src="images/dis06.gif" width="84" height="17"></div></td>
  235.                           </tr>
  236.                         </table></td>
  237.                     </tr>
  238.                     <tr> 
  239.                       <td height="12"><img src="images/tmtp.gif" width="2" height="2"></td>
  240.                     </tr>
  241.                     <tr> 
  242.                       <td><img src="images/huiyuan.jpg" width="180" height="20"></td>
  243.                     </tr>
  244.                     <tr> 
  245.                       <td height="95" background="images/shousuo.gif">
  246.                       <%@include file="include/board2.jsp"%>   
  247.                      </td>
  248.                     </tr>
  249.                     <tr> 
  250.                       <td height="12"><img src="images/tmtp.gif" width="2" height="2"></td>
  251.                     </tr>
  252.                     <tr> 
  253.                       <td><img src="images/jiaodian.jpg" width="180" height="20"></td>
  254.                     </tr>
  255.                     <tr> 
  256.                       <td height="180" background="images/jiaodianbg.gif"><table width="140" border="0" align="center" cellpadding="0" cellspacing="0">
  257.                           <tr>
  258.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  259.                           </tr>
  260.                           <tr>
  261.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  262.                           </tr>
  263.                           <tr>
  264.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  265.                           </tr>
  266.                           <tr>
  267.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  268.                           </tr>
  269.                           <tr>
  270.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  271.                           </tr>
  272.                           <tr>
  273.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  274.                           </tr>
  275.                           <tr>
  276.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  277.                           </tr>
  278.                           <tr>
  279.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  280.                           </tr>
  281.                           <tr>
  282.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  283.                           </tr>
  284.                           <tr>
  285.                             <td height="16">* 乐趣大型新闻系统1.0版</td>
  286.                           </tr>
  287.                         </table></td>
  288.                     </tr>
  289.                   </table>
  290.                 </td>
  291.               </tr>
  292.               <tr>
  293.                 <td valign="top">&nbsp;</td>
  294.                 <td valign="top">&nbsp;</td>
  295.                 <td width="200" valign="top">&nbsp;</td>
  296.               </tr>
  297.             </table></td>
  298.         </tr>
  299.       </table>
  300.     </td>
  301.   </tr>
  302. </table>
  303.     <br>
  304.     <div align="center">
  305.       <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  306.         <tr>
  307.       <td height="10"><img src="images/tmtp.gif" width="2" height="2"></td>
  308.     </tr>
  309.     <tr>
  310.       <td><div align="center">&copy;中文版权所有: 乐趣工作室『2rich』 &copy;Copyright 2003-2004 
  311.         </div></td>
  312.     </tr>
  313.     <tr>
  314.       <td><div align="center">本新闻系统部分内容摘自Internet,与 乐趣工作室『2rich』 立场无关 </div></td>
  315.     </tr>
  316.   </table>
  317. </div>
  318. </body>
  319. </html>