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

📄 bulletinsearchinfo.jsp

📁 这是一个法律事务所系统源码
💻 JSP
字号:
<%--
模块名称:律所公告
模块功能:公告查询显示
版    本:V1.0
著 作 人:蔡静
著作日期:2001-11-12
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
	修改日期:
	修 改 人:
	修改理由:
	修改出处:
	= = = = = = = = = = = = = = = = = = = = = = = = = =

--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.*" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
  ExtendString es = new ExtendString();
  String bulletin_id = request.getParameter("bulletin_id");
  String bulletin_title = request.getParameter("bulletin_title");
  String input_person = request.getParameter("input_person");
  String input_fromtime = request.getParameter("input_fromtime");
  String input_totime = request.getParameter("input_totime");
  String sql = "select a.bulletin_id, a.bulletin_title, a.input_time, ";
  sql = sql + "b.employee_name as input_person from t_bulletin a, t_employee b where ";
  sql = sql + "a.input_person = b.employee_id";
  if ((bulletin_id != null) && (!bulletin_id.equals("")))
    sql = sql + " and a.bulletin_id like '%" + bulletin_id + "%'";
  if ((bulletin_title != null) && (!bulletin_title.equals("")))
    sql = sql + " and a.bulletin_title like '%" + es.getStr(bulletin_title) + "%'";
  if ((input_person != null) && (!input_person.equals("")))
    sql = sql + " and a.input_person = '" + input_person + "'";
  if ((input_fromtime == null) || (input_fromtime.equals("")))
    input_fromtime = "1950-01-01";
  if ((input_totime == null) || (input_totime.equals("")))
    input_totime = "2050-01-01";
  sql = sql + " and a.input_time between '" + input_fromtime + "' and '" + input_totime + "'";
  ResultSet rs = db.executeQuery(sql);
%>
<html>
<head>
<title>律 所 公 告</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class=page>
<form name="thisForm" METHOD="post">
<!--显示工具条-->
<table width="98%" align="center" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td><a href="Bulletin.jsp"><img src="../images/all.gif" height="22" border="0"></a>
    <a href="BulletinSearch.jsp"><img src="../images/query.gif" alt="查询内容"   width="79" height="22" border="0"></a>
    </td>
    <td width="108" height="30" align="center" background="../images/title_bg.gif">
      <script language=JavaScript>
document.write("<span class=\"title\">"+document.title+"</span>");
</script>
    </td>
  </tr>
</table>
<table width="98%" background="../images/line.gif" border="0" cellspacing="0" cellpadding="0" height="12" align="center">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<!--显示工具条结束-->
<!--显示内容-->
  <table width="98%" cellspacing="1" cellpadding="5"  height="25" align="center" border="0" class="table_bg">
    <tr class="title_bg">
      <td width="11%" align="center"> 公告编号</td>
      <td width="41%" align="center"> 公告标题</td>
      <td width="19%" align="center"> 录入时间</td>
      <td width="10%" align="center"> 录入人</td>
    </tr>
  <%
    String input_time;
    while (rs.next()) {
      bulletin_id = rs.getString("bulletin_id");
      bulletin_title = rs.getString("bulletin_title");
      input_time = rs.getString("input_time");
      input_person = rs.getString("input_person");
      if (rs.getRow()!=(rs.getRow()/2*2)) {
  %>
  <tr  class="tr_bg1">
  <%  }
      else {
  %>
  <tr  class="tr_bg2">
  <%  }
  %>
      <td width="11%" align="right"><%=bulletin_id%></td>
      <td width="41%" align="right"><a href="BulletinInfo.jsp?bulletin_id=<%=bulletin_id%>"><%=bulletin_title%></a></td>
      <td width="19%" align="center"><%=input_time.substring(0,10)%></td>
      <td width="10%" align="right"><%=input_person%></td>
    </tr>
  <%
    }
  %>
  </table>

<!--显示内容结束-->
</form>
</body>
</html>

⌨️ 快捷键说明

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