news.jsp
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ include file="conn.jsp"%>
  3. <% 
  4. String condition="select * from art";
  5. rs=stmt.executeQuery(condition);
  6. rs.next();
  7. %>
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  11. <link rel="stylesheet" href="mm_travel2.css" type="text/css">
  12. <link href="style.css" rel="stylesheet" type="text/css">
  13. <style type="text/css">
  14. <!--
  15. .style1 {font-family: "宋体"}
  16. .style2 {font-size: 9px}
  17. .style3 {color: #9999CC; text-decoration: none; font-family: "宋体";}
  18. .style4 {font-size: 9pt}
  19. .style5 {color: #999999}
  20. .style6 {font-family: "宋体"; color: #999999; }
  21. .style7 {color: #FF0000}
  22. .style8 {font-family: Tahoma}
  23. a.rights:link {
  24. COLOR: #000000;
  25. TEXT-DECORATION: none;
  26. }
  27. a.rights:visited {
  28. COLOR: #000000;
  29. TEXT-DECORATION: none;
  30. }
  31. a.rights:hover {
  32. COLOR: #FF0000;  
  33. TEXT-DECORATION: none;
  34. }
  35. .style9 {
  36. font-size: 9pt;
  37. color: #FF0000;
  38. font-weight: bold;
  39. }
  40. -->
  41. </style>
  42. <title>新闻系统</title>
  43. <script language="javascript">
  44. var d=new Date();
  45. var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  46. var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
  47. </script>
  48. </head>
  49. <body background="img/beijing.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  50. <table width="650" align="center" cellpadding="0" cellspacing="0">
  51.   <tr bgcolor="img/beijing.gif">
  52.     <td colspan="3" rowspan="2"align="center" valign="middle"><img src="mm_travel_photo.jpg" alt="Header image" width="400" height="140" border="0"></td>
  53.      <td bgcolor="#3366CC" height="140" colspan="3" id="tagline" valign="top" align="center"><font size="5">新闻系统</font></td>
  54.   </tr>
  55.   <tr>
  56.     <td colspan="7" bgcolor="#003366"><img src="file:///C|/Program%20Files/Macromedia/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0"></td>
  57.   </tr>
  58.   <tr width="650" bgcolor="#CCFF99">
  59.    <td colspan="7" id="dateformat" height="25">&nbsp;&nbsp;<script language="javascript">
  60.       document.write(TODAY); </script> </td>
  61.   </tr>
  62.  <tr>
  63.     <td colspan="7" bgcolor="#003366"><img src="file:///C|/Program%20Files/Macromedia/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0"></td>
  64.   </tr>
  65.  <tr>
  66.     <td width="189" valign="top" bgcolor="#E6F3FF">
  67. <table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
  68.         <tr>
  69.           <td width="165">&nbsp;<br>
  70.  &nbsp;<br></td>
  71.         </tr>
  72.         <tr>
  73.           <td width="165"><a href="login.jsp" class="font0">管理员登陆</a></td>
  74.         </tr>
  75.         <tr>
  76.           <td width="165"><a href="news_add.jsp" class="font0">添加新闻</a></td>
  77.         </tr>
  78.         <tr>
  79.           <td width="165"><a href="news_all.jsp" class="font0">删除新闻</a></td>
  80.         </tr>
  81.         <tr>
  82.           <td width="165"><a href="news_all.jsp" class="font0">编辑新闻</a></td>
  83.         </tr>
  84.         
  85. <tr>
  86.           <td width="165"><a href="Index.jsp" class="font0">返回首页</a></td>
  87.         </tr>
  88.       </table>
  89.   <br>
  90.    &nbsp;<br>
  91.    &nbsp;<br>
  92.    &nbsp;<br>  </td>
  93.     <td width="50"><img src="file:///C|/Program%20Files/Macromedia/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="50" height="1" border="0"></td>
  94.     <td colspan="2" valign="top"><img src="file:///C|/Program%20Files/Macromedia/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="305" height="1" border="0"><br>
  95. &nbsp;<br>
  96. &nbsp;<br>
  97. <%
  98. String condition1="select * from art ";
  99. rs=stmt.executeQuery(condition1);
  100. rs.next();
  101. %>
  102. <table border="0" cellspacing="0" cellpadding="0" width="386">
  103.         <tr>
  104.           <td width="386" align="center"><p><%=rs.getString("art_headline")%></p>
  105.           <p>&nbsp;</p></td>
  106. </tr>
  107. <tr>
  108.           <td class="bodyText"><p> <%=rs.getString("art_content")%>  </tr>
  109.       </table>
  110.     <br>   </td>
  111.     <td colspan="2">&nbsp;</td>
  112.     <td width="8">&nbsp;</td>
  113.   </tr>
  114.   <tr>
  115.     <td width="189">&nbsp;</td>
  116.     <td width="50">&nbsp;</td>
  117.     <td width="161">&nbsp;</td>
  118.     <td width="226">&nbsp;</td>
  119.     <td width="7">&nbsp;</td>
  120.     <td width="7">&nbsp;</td>
  121. <td width="8">&nbsp;</td>
  122.   </tr>
  123. </table>
  124. <img src="file:///C|/Program%20Files/Macromedia/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="50" height="1" border="0">
  125. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  126.   <tr>
  127.     <td align="center"><p class="style4 style8"><a href="http://jorwoo.yeah.net" target="_blank" class="rights">周亚平</a>&nbsp;&nbsp; 版权所有 <br>
  128. 程序设计:周亚平&nbsp;&nbsp; E-mail: <a href="mailto:zhouyaping1986@126.com" class="rights">zhouyaping1986@126.com</a><br>
  129. QQ:153589840</p>    </td>
  130.   </tr>
  131. </table>
  132. </body>
  133. </html>