⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bulletin_intro.jsp

📁 一、 网站名称:旅游信息管理网站 二、 编程语言:JSP+javabean+sql2000 三、 编程运行:首先把数据库文件导入数据库中,然后把tour文件拷贝到D:Tomcat 5.5webap
💻 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>
</head>


<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="n" scope="application" class="bull.bulletin_intro"/>


<form name="form1" method="post" action="bulletin_amend.jsp">

<%
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%"><input type="text" name="bulletin_title" value=<%=bu.getBulletin_title()%> size="50"></td>
                <td width="17%"><div align="center">公告时间:</div></td>
                <td width="18%"><div align="center"><input type="text" name="bulletin_time" value=<%=bu.getBulletin_time()%> size="20"></div></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="391"><table width="100%" height="391" border="1" cellspacing="0">
              <tr>
                <td><textarea name="bulletin_context" cols="100" rows="10"><%=bu.getBulletin_context()%></textarea></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
    </tr>
  <tr> 
    <td width="758" height="40"> <div align="right"> 
        <form name="form1" method="post" action="">
  <div align="right">
    <input name="old_title" type="hidden" value=<%=bu.getBulletin_title()%>>
    <input type="submit" name="Submit" value="提交">
  </div>
</form>
      </div></td>
    <td width="2"> </td>
  </tr>
</table>


<tr>
<td></td>
<td></td>
<td> </td>
</tr>
<%
it.remove();
}
j.releaseConnection(n.con);
%>

</table>

</form>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -