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

📄 bulletinmanagesearchinfo.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>
<script language="javascript">
   function selectID() {
     var a = document.all.item("rel");
     var bulletin_ids = "";
     var flag=0;
     if (a!=null)
       if (a.length!=null)
	 for (i=0; i<a.length; i++)  {
	   if(a(i).checked) {
             if (bulletin_ids == "")
               bulletin_ids = a(i).value;
             else
               bulletin_ids = bulletin_ids + "," + a(i).value;
             flag=1;
           }
	 }
	 else
	 {
	   if(a.checked) {
	     bulletin_ids = a.value;
	     flag=1;
	   }
         }
       if (!flag)
       {
         alert("请选择一项!")
         return false;
       }
      if(!window.confirm("确定要删除选中的项目吗?"))
      {
        return false;
      }
      else {
        document.thisForm.action="BulletinDel.jsp";
        document.thisForm.bulletin_ids.value=bulletin_ids;
        document.thisForm.submit();
        return true;
      }
   }

   function go() {
     document.thisForm.action="BulletinManage.jsp";
     document.thisForm.submit();
   }

   function keygo() {
     if(event.keyCode == 13){
	document.thisForm.action="BulletinManage.jsp";
	document.thisForm.submit();
     }
     else {
       if (event.keyCode<48 || event.keyCode>57) {
         alert("请输入数字!");
         document.thisForm.pagenum.value="";
         event.returnValue=false;
       }
     }
   }
</script>
<form name="thisForm" METHOD="post">
<!--显示工具条-->
<table width="98%" align="center" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td><a href="BulletinManage.jsp"><img src="../images/all.gif" height="22" border="0"></a>
    <a href="BulletinAdd.jsp"><img src="../images/add.gif" alt="增加内容" width="79" height="22" border="0"></a>
    <img src="../images/delete.gif" alt="删除选中的内容" onClick="return selectID();" style="cursor:hand" width="79" height="22">
    <a href="BulletinManageSearch.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="0"  height="25" align="center" border="0" class="table_bg">
    <tr class="title_bg">
      <td height="25" width="7%" align="center">
        <input  name="chkCheckAll" type="checkbox" enabled onclick="CheckAll();">
      </td>
      <td width="11%" align="center"> 公告编号</td>
      <td width="41%" align="center">
        <p>公告标题</p>
      </td>
      <td width="19%" align="center"> 录入时间</td>
      <td width="10%" align="center"> 录入人</td>
      <td width="12%" 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 height="25" width="7%" align="center">
        <input  name="rel" type="checkbox" enabled value=<%=bulletin_id%>>
      </td>
      <td width="11%" align="right"><%=bulletin_id%></td>
      <td width="41%" align="right"><a href="BulletinManageInfo.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>
      <td width="12%" align="center"><a href="BulletinAmend.jsp?bulletin_id=<%=bulletin_id%>"><img src="../images/edit.gif" width="18" height="13" border="0" alt="修改"></a>
      </td>
    </tr>
  <%
    }
  %>
  </table>
<!--显示内容结束-->
  <input type="hidden" name="bulletin_ids">
</form>
</body>
</html>

⌨️ 快捷键说明

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