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

电子政务应用

开发平台:

MultiPlatform

  1. <%@ page contentType="text/html;charset=GB2312"%>
  2. <%@ include file="include/config.jsp"%>
  3. <%@include file="include/control.jsp"%>
  4. <% request.setCharacterEncoding("gb2312"); %>
  5. <%@include file="include/head.jsp"%>
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  9. <LINK href="../css/style.css" rel=stylesheet type=text/css>
  10. <title>新闻发布----乐趣工作室</title>
  11. <script language="JavaScript">  
  12. function sub()
  13.  {
  14.      document.issueform.par.value="addnews";
  15.      document.issueform.action="issueout.jsp"
  16.      document.issueform.submit();
  17.  }  
  18. </script>
  19. </head>
  20. <body bgcolor="#FFF9E6" leftmargin="0" topmargin="0">
  21. <table width="770" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DC9F01" bgcolor="#FFFFFF" bordercolordark="#FFF9E6">
  22.   <tr> 
  23.     <td valign="top">
  24. <table width="770" border="0" cellspacing="0" cellpadding="0">
  25.         <tr> 
  26.           <td height="80"><img src="images/tou.jpg" width="770" height="80"></td>
  27.         </tr>
  28.         <tr> 
  29.           <td><table width="770" border="0" cellspacing="0" cellpadding="0">
  30.               <tr bgcolor="#838383"> 
  31.                 <td width="755" height="5"><img src="images/tmtp.gif" width="2" height="2"></td>
  32.               </tr>
  33.               <tr> 
  34.                 <td height="25" background="images/topbg1.gif"> 
  35.                 <div align="center">
  36.                 <%@include file="include/board1.jsp"%>            
  37.                 </div></td>
  38.               </tr>
  39.             </table></td>
  40.         </tr>
  41. <% 
  42.       boardParentID = request.getParameter("boardParentID");
  43.       boardID = request.getParameter("boardID");   
  44.       par = request.getParameter("par");
  45.       if(boardParentID!=null&&!boardParentID.equals(""))
  46.        {
  47.           position = news.getPosition(boardID,boardParentID);
  48.  
  49.        }
  50.       
  51.       m_vct = news.getBanner(); 
  52.       
  53.       
  54. %>        
  55.         <tr> 
  56.           <td height="25" valign="bottom">&nbsp;&nbsp;
  57. 您现在的位置:<A href="index.jsp">首 页</A> 
  58.       <%
  59.        if(boardParentID!=null&&!boardParentID.equals(""))
  60.        {
  61.          %>
  62.          → <A href="catalog.jsp?boardParentID=<%=boardParentID%>"><!--%=new String(((String)((Vector)position.get(0)).get(0)).getBytes("gb2312"),"ISO8859_1")%--><%=((Vector)position.get(0)).get(0)%></A> 
  63.          → <A href="list.jsp?boardParentID=<%=boardParentID%>&boardID=<%=boardID%>"><!--%=new String(((String)((Vector)position.get(0)).get(1)).getBytes("gb2312"),"ISO8859_1")%--> <%=((Vector)position.get(0)).get(1)%></A>
  64.          → 发布文章 
  65.          <%
  66.        } 
  67.       else
  68.       {
  69.          %>
  70.            → 发布文章 
  71.          <%      
  72.       }  
  73.       %>             
  74.            </td>
  75.         </tr>     
  76.        
  77.         <tr> 
  78.           <td><table width="770" border="0" cellspacing="0" cellpadding="0">
  79.               <tr> 
  80.                 <td width="200" valign="top"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DC9F01"  bordercolordark="#FFFFFF">
  81.                     <tr> 
  82.                       <td><img src="images/fabu.jpg" width="180" height="20"></td>
  83.                     </tr>
  84.                     <tr> 
  85.                       <td><img src="images/bg1.jpg" width="180" height="22"></td>
  86.                     </tr>
  87.                     <tr> 
  88.                       <td background="images/bg2.jpg"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
  89.                           <%
  90.    if(m_vct!=null&&m_vct.size()>0)
  91.     {
  92.        for(int i=0;i<m_vct.size();i++)
  93.         {
  94.            Vector t_vct = (Vector)m_vct.get(i);           
  95.            %>
  96.                    <TR>
  97.                    <TD align=left>&nbsp;&nbsp;<!--%=new String(((String)t_vct.get(1)).getBytes("gb2312"),"ISO8859_1")%--><%=t_vct.get(1)%></td> 
  98.                    </tr>
  99.            <%
  100.           
  101.           n_list_vct = news.getSubTypeList(t_vct.get(0).toString());
  102.           if(n_list_vct!=null&&n_list_vct.size()>0)
  103.            {
  104.                 for(int j=0;j<n_list_vct.size();j++) 
  105.                  {
  106.                     Vector t1_vct = (Vector)n_list_vct.get(j);
  107.                      %>
  108.                       <tr>
  109.                       <td align=left>&nbsp;&nbsp;&nbsp;&nbsp;
  110.                       <a href="issue.jsp?boardParentID=<%=t1_vct.get(0)%>&boardID=<%=t1_vct.get(1)%>"><!--%=new String(((String)t1_vct.get(2)).getBytes("gb2312"),"ISO8859_1")%--><%=t1_vct.get(2)%></a>
  111.                       </td>
  112.                       </tr>
  113.                      <%
  114.                  }    
  115.            } 
  116.            
  117.         }
  118.     }
  119. %>  
  120.                           <tr> 
  121.                             <td height="17"><div align="left"><a href="index.jsp">返回首页</a></div></td>
  122.                           </tr>
  123.                         </table></td>
  124.                     </tr>
  125.                     <tr> 
  126.                       <td><img src="images/bg3.jpg" width="180" height="24"></td>
  127.                     </tr>
  128.                   </table></td>
  129.                 <td width="10" valign="top" background="images/shuxian.gif">&nbsp;</td>
  130.                 <td width="560" valign="top"><table width="530" border="0" align="center" cellpadding="0" cellspacing="0">
  131.                     <tr>
  132.                       <td>&nbsp;</td>
  133.                     </tr>
  134.                     <tr>
  135.                       <td>
  136.                           
  137.                       <table width="530" border="1" cellpadding="0" cellspacing="0" bordercolor="#DC9F01" bordercolordark="#FFFFFF" bgcolor="#FFFDF7">
  138.                     
  139.                           <tr> 
  140.                             <td valign="top"> <table width="510" border="0" align="center" cellpadding="0" cellspacing="0">
  141.                                              
  142. <%
  143.       if(boardParentID!=null&&!boardParentID.equals(""))
  144.        {
  145.        %>
  146. <form name="issueform" method="post">
  147.                 <input type=hidden name=boardID value=<%=boardID%>>
  148.                 <input type=hidden name=boardParentID value=<%=boardParentID%>>    
  149.                 <input type=hidden name=par value="0"> 
  150.                                 <tr> 
  151.                                   <td width="110">&nbsp;</td>
  152.                                   <td width="400">&nbsp;</td>
  153.                                 </tr>
  154.                                 <tr> 
  155.                                   <td width="110" height="30"> <div align="center">文章标题:</div></td>
  156.                                   <td width="400" height="30"> <input type="text" name="title"></td>
  157.                                 </tr>
  158.                                 <tr> 
  159.                                   <td width="110" height="30"> <div align="center">作 
  160.                                       &nbsp;&nbsp; 者:</div></td>
  161.                                   <td width="400" height="30"> <input type="text" name="author"  value="<%=nickname%>"></td>
  162.                                 </tr>
  163.                                 <tr> 
  164.                                   <td width="110" height="30"> <div align="center">文章类型:</div></td>
  165.                                   <td width="400" height="30"> 
  166.                                   <select name="article_type">
  167.                                       <option value="00">原创</option>
  168.                                       <option value="01">转载</option>
  169.                                     </select></td>
  170.                                 </tr>
  171.                                 <tr> 
  172.                                   <td width="110" height="30"> <div align="center">摘 
  173.                                       &nbsp;&nbsp; 自:</div></td>
  174.                                   <td width="400" height="30"> <input type="text" name="pick"></td>
  175.                                 </tr>
  176.                                 <tr> 
  177.                                   <td width="110"><div align="center">文章内容:</div></td>
  178.                                   <td width="400"><textarea name="content" cols="50" rows="10"></textarea></td>
  179.                                 </tr>
  180.                                 <tr> 
  181.                                   <td>&nbsp;</td>
  182.                                   <td height="30"><div align="center"><a href="javascript:sub()"><img src="images/fabuwenzhang.jpg" width="84" height="17" border="0"></a></div></td>
  183.                                 </tr>
  184.                                 <tr>
  185.                                   <td>&nbsp;</td>
  186.                                   <td>&nbsp;</td>
  187.                                 </tr>
  188.       <%
  189.       } 
  190.      else
  191.       {    
  192.          %>                                                                                
  193.               <tr> 
  194.                 <td width=80% align="center" valign="center">&nbsp;<font color="red">请选择左面您要发表文章的分类</font></td>     
  195.               </tr> 
  196.          <%
  197.       }
  198. %>                                  
  199.                               </table></td>
  200.                           </tr>
  201.                         </table></td>
  202.                     </tr>
  203.                     <tr>
  204.                       <td>&nbsp;</td>
  205.                     </tr>
  206.                   </table> </td>
  207.               </tr>
  208.               <tr>
  209.                 <td valign="top">&nbsp;</td>
  210.                 <td valign="top">&nbsp;</td>
  211.                 <td width="560" valign="top">&nbsp;</td>
  212.               </tr>
  213.             </table></td>
  214.         </tr>
  215.       </table>
  216.     </td>
  217.   </tr>
  218. </table>
  219. <div align="center">
  220.   <table width="760" border="0" cellspacing="0" cellpadding="0">
  221.     <tr>
  222.       <td height="10"><img src="images/tmtp.gif" width="2" height="2"></td>
  223.     </tr>
  224.     <tr>
  225.       <td><div align="center">&copy;中文版权所有: 乐趣工作室『2rich』 &copy;Copyright 2003-2004 
  226.         </div></td>
  227.     </tr>
  228.     <tr>
  229.       <td><div align="center">本新闻系统部分内容摘自Internet,与 乐趣工作室『2rich』 立场无关 </div></td>
  230.     </tr>
  231.   </table>
  232. </div>
  233. </body>
  234. </html>