📄 bulletin_intro.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" import="bull.bulletin"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="java.io.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>五十里旅行社--公告</title>
<script language="javascript">
function guanbi() {
window.close('chaxun.htm')
}
</script>
</head>
<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="n" scope="application" class="bull.bulletin_intro"/>
<%
String title=new String(request.getParameter("title").getBytes("ISO8859_1"), "GBK");
String bulletin_title=title.trim();
n.bulletin_title=bulletin_title;
n.con=j.getConnection();
Collection bcol=n.b_intro();
Iterator it=bcol.iterator();
while(it.hasNext())
{
bulletin bu=(bulletin)it.next();
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="F0F7FF">
<!--DWLayoutTable-->
<tr>
<td height="160" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="760" height="150"><img src="image/biaoti.jpg" width="760" height="160"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="407" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="760" height="30" valign="top"><table width="100%" border="1" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="13%" height="28"><div align="center">标题:</div></td>
<td width="52%"><%out.print(bu.getBulletin_title());%></td>
<td width="17%"><div align="center">公告时间:</div></td>
<td width="18%"><div align="center"><%out.print(bu.getBulletin_time());%></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="391"><table width="100%" height="391" border="1" cellspacing="0">
<tr>
<td><%out.print(bu.getBulletin_context());%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="758" height="40"> <div align="right">
<form name="form1" method="post" action="">
<input type="button" name="Submit" value="关闭" onClick="guanbi()">
</form>
</div></td>
<td width="2"></td>
</tr>
</table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<%
it.remove();
}
j.releaseConnection(n.con);
%>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -