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

📄 costquery.jsp

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

--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.*" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
  Security auth = new Security();
  String employee_id = (String)session.getAttribute("employee_id");
  if(employee_id == null || employee_id.equals(""))
  {
    response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
  }
  String modelid = "Chg020";
  int authflag = auth.popedom(employee_id, modelid);
  if(authflag == 0 || authflag == 2 || authflag == -1)
  {
%>
  <jsp:forward page="../inc/noauth.jsp" >
  </jsp:forward>
<%
  }
%>
<%
  Date d = new Date();
  SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
  String today = f.format(d);
%>
<html>
<head>
<title>统计查询</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class=page>
<script language="javascript">
  function query1() {
    document.form1.action = "CostQueryResult1.jsp";
    document.form1.submit();
  }
  function query2() {                   
  	if(document.form1.employee.value=="")
  	{
  	 	alert("请选择律师");
  	 	document.form1.employee.focus();
  	 	return false;
  	}
    document.form1.action = "CostQueryResult2.jsp";
    document.form1.submit();
  }
</script>
<!--显示工具条-->
<table width="98%" align="center" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td>&nbsp;</td>
    <td width="108" height="30" background="../images/title_bg.gif" align="center">
      <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>
<!--显示工具条结束-->
<form name="form1" method="post" action="">
  <table width="50%" align="center">
    <tr>
      <td>
        <input type="radio" name="rdobtn" value="1" checked onClick="MM_showHideLayers('Layer1','','show','Layer2','','hide')">
        律所收费统计</td>
      <td>
        <input type="radio" name="rdobtn" value="2" onClick="MM_showHideLayers('Layer1','','hide','Layer2','','show')">
        律师案件收费统计</td>
    </tr>
  </table>
  <div id="Layer1" style="Position:absolute; left:119px; top:105px; width:495px; height:114px; z-index:1; visibility: visible">
    <table width="98%" align="center" border="0" cellspacing="1" cellpadding="5" class="table_bg">
      <tr>
        <td align=right  height=28 width=152 class="title_bg"> 开始时间:</td>
        <td height=28 width=596 class="tr_bg1">
          <input type="text" name="begindate1" maxlength="10" size="10" value="2001-01-01" class="input"  readOnly>
          <img src="../images/datetime.gif" border="0" align="absmiddle"
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(begindate1);return false" width="16" height="16">
        </td>
      </tr>
      <tr>
        <td align=right  height=28 width=152 class="title_bg"> 终止时间:</td>
        <td height=28 width=596 class="tr_bg1">
          <input type="text" name="enddate1" maxlength="10" size="10" value="2001-12-31" class="input"  readOnly>
          <img src="../images/datetime.gif" border="0" align="absmiddle"
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(enddate1);return false" width="16" height="16">
        </td>
      </tr>
    </table>
    <div align="center">
      <input type="button" name="btn1" value="统计" onClick="query1()">
    </div>
  </div>
  <div id="Layer2" style="Position:absolute; left:119px; top:105px; width:495px; height:114px; z-index:1; visibility: hidden">
    <table width="98%" align="center" border="0" cellspacing="1" cellpadding="5" class="table_bg">
      <tr>
        <td align=right  height=28 width=152 class="title_bg"> 开始时间:</td>
        <td height=28 width=596 class="tr_bg1">
          <input type="text" name="begindate2" maxlength="10" size="10" value="2001-01-01" class="input"  readOnly>
          <img src="../images/datetime.gif" border="0" align="absmiddle"
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(begindate2);return false" width="16" height="16">
        </td>
      </tr>
      <tr>
        <td align=right  height=28 width=152 class="title_bg">终止时间:</td>
        <td height=28 width=596 class="tr_bg1">
          <input type="text" name="enddate2" maxlength="10" size="10" value="2001-12-31" class="input"  readOnly>
          <img src="../images/datetime.gif" border="0" align="absmiddle"
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(enddate2);return false" width="16" height="16">
        </td>
      </tr>
      <tr>
        <td align=right  height=28 width=152 class="title_bg">律师姓名:</td>
        <td height=28 width=596 class="tr_bg1">
          <select name="employee">
            <option value=""></option>
          <%
            ResultSet rs = db.executeQuery("select employee_id, employee_name from t_employee");
            while (rs.next()) {
          %>
            <option value=<%=rs.getString("employee_id")%>><%=rs.getString("employee_name")%></option>
          <%}%>
          </select>
        </td>
      </tr>
    </table>
    <div align="center">
      <input type="button" name="btn2" value="统计" onClick="query2()">
    </div>
  </div>
</form>
</body>
</html>

⌨️ 快捷键说明

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