forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNews_Particular.jsp
More file actions
60 lines (60 loc) · 2.43 KB
/
News_Particular.jsp
File metadata and controls
60 lines (60 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.sql.*" %>
<html>
<head>
</head>
<%!
String sql;
String title;
String content;
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Css/style.css">
<body topmargin="0" leftmargin="0">
<jsp:useBean id="data" scope="session" class="cars.Bean1" />
<%
sql="select * from tb_News where ID="+Integer.parseInt(request.getParameter("id"));
ResultSet rs=data.getrs(sql);
rs.beforeFirst();
if(rs.next()){
%>
<table width="500" height="560" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#006699" class="table">
<tr>
<td valign="top"><table width="480" height="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="40" align="center" nowrap><div align="center" class="bottm" style="font-size: 16px;color: #F9f9f9;font-weight: bold;width:400;">
<%=rs.getString("Title") %>
</div></td>
</tr>
<form name="orderform" method="post" action="OrderForm.jsp">
<tr>
<td valign="top">
<table width="480" height="510" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="470" colspan="4" valign="top"> <br>
<%
out.write(rs.getString("Content"));
}
%> </td>
</tr>
<tr>
<td height="30" colspan="4" valign="bottom"><div align="center">
<input name="Submit" type="button" class="buttons" value=" [ ¹Ø ±Õ ´° ¿Ú ] " onClick="javascript:window.close();">
</div></td>
</tr>
</table></td>
</tr>
</form>
</table></td>
</tr>
</table>
<div id="Layer1" style="position:absolute; width:459px; height:293px; z-index:1; left: 10px; top: 0px;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="479" height="538">
<param name="movie" value="Image/fish.swf">
<param name="quality" value="high">
<param name='wmode' value='transparent'>
<embed src="Image/fish.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="479" height="538"></embed>
</object>
</div>
</body>
</html>