news.jsp
资源名称:zyp.rar [点击查看]
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:5k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <%@ include file="conn.jsp"%>
- <%
- String condition="select * from art";
- rs=stmt.executeQuery(condition);
- rs.next();
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link rel="stylesheet" href="mm_travel2.css" type="text/css">
- <link href="style.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- .style1 {font-family: "宋体"}
- .style2 {font-size: 9px}
- .style3 {color: #9999CC; text-decoration: none; font-family: "宋体";}
- .style4 {font-size: 9pt}
- .style5 {color: #999999}
- .style6 {font-family: "宋体"; color: #999999; }
- .style7 {color: #FF0000}
- .style8 {font-family: Tahoma}
- a.rights:link {
- COLOR: #000000;
- TEXT-DECORATION: none;
- }
- a.rights:visited {
- COLOR: #000000;
- TEXT-DECORATION: none;
- }
- a.rights:hover {
- COLOR: #FF0000;
- TEXT-DECORATION: none;
- }
- .style9 {
- font-size: 9pt;
- color: #FF0000;
- font-weight: bold;
- }
- -->
- </style>
- <title>新闻系统</title>
- <script language="javascript">
- var d=new Date();
- var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
- var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
- </script>
- </head>
- <body background="img/beijing.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
- <table width="650" align="center" cellpadding="0" cellspacing="0">
- <tr bgcolor="img/beijing.gif">
- <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>
- <td bgcolor="#3366CC" height="140" colspan="3" id="tagline" valign="top" align="center"><font size="5">新闻系统</font></td>
- </tr>
- <tr>
- <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>
- </tr>
- <tr width="650" bgcolor="#CCFF99">
- <td colspan="7" id="dateformat" height="25"> <script language="javascript">
- document.write(TODAY); </script> </td>
- </tr>
- <tr>
- <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>
- </tr>
- <tr>
- <td width="189" valign="top" bgcolor="#E6F3FF">
- <table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
- <tr>
- <td width="165"> <br>
- <br></td>
- </tr>
- <tr>
- <td width="165"><a href="login.jsp" class="font0">管理员登陆</a></td>
- </tr>
- <tr>
- <td width="165"><a href="news_add.jsp" class="font0">添加新闻</a></td>
- </tr>
- <tr>
- <td width="165"><a href="news_all.jsp" class="font0">删除新闻</a></td>
- </tr>
- <tr>
- <td width="165"><a href="news_all.jsp" class="font0">编辑新闻</a></td>
- </tr>
- <tr>
- <td width="165"><a href="Index.jsp" class="font0">返回首页</a></td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- <br> </td>
- <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>
- <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>
- <br>
- <br>
- <%
- String condition1="select * from art ";
- rs=stmt.executeQuery(condition1);
- rs.next();
- %>
- <table border="0" cellspacing="0" cellpadding="0" width="386">
- <tr>
- <td width="386" align="center"><p><%=rs.getString("art_headline")%></p>
- <p> </p></td>
- </tr>
- <tr>
- <td class="bodyText"><p> <%=rs.getString("art_content")%> </tr>
- </table>
- <br> </td>
- <td colspan="2"> </td>
- <td width="8"> </td>
- </tr>
- <tr>
- <td width="189"> </td>
- <td width="50"> </td>
- <td width="161"> </td>
- <td width="226"> </td>
- <td width="7"> </td>
- <td width="7"> </td>
- <td width="8"> </td>
- </tr>
- </table>
- <img src="file:///C|/Program%20Files/Macromedia/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="50" height="1" border="0">
- <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center"><p class="style4 style8"><a href="http://jorwoo.yeah.net" target="_blank" class="rights">周亚平</a> 版权所有 <br>
- 程序设计:周亚平 E-mail: <a href="mailto:zhouyaping1986@126.com" class="rights">zhouyaping1986@126.com</a><br>
- QQ:153589840</p> </td>
- </tr>
- </table>
- </body>
- </html>