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

📄 lawyer.jsp

📁 这是一个法律事务所系统源码
💻 JSP
字号:
<%--
模块名称:律师专栏
模块功能:律师介绍
版    本:V1.0
著 作 人:谢永刚 SIMM
著作日期:2001-11-15
该模块所需的文件:
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
	修改日期:
	修 改 人:
	修改理由:
	修改出处:
	= = = = = = = = = = = = = = = = = = = = = = = = = =

--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.*" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
  Security auth = new Security();
  String scu_employee_id = (String)session.getAttribute("employee_id");
  if(scu_employee_id == null || scu_employee_id.equals(""))
  {
    response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
  }
  String modelid = "Law010";         //	律师介绍-列表显示
  int authflag = auth.popedom(scu_employee_id, modelid);
  if(authflag == 0 || authflag == 2 || authflag == -1)
  {%>
  <jsp:forward page="../inc/noauth.jsp" >
  </jsp:forward>
<%}%>   
<%       
  String num = request.getParameter("pagenum");
  int pagenum=0, pagesize = 10, recordcount=0, pagecount=0;
  if ((num == null) || (num.equals("")))
    pagenum = 1;
  else
    pagenum = Integer.parseInt(num);
  String sql = "select employee_id, employee_name, sex, birth, duty, education";
  sql = sql + ",join_time, expert from t_employee where (duty like '%律师' or duty='主任' or duty='合伙人'";
  sql = sql + ") and active='1' order by employee_id";   
  ResultSet rs = db.executeQuery(sql);
  if (rs != null) {
    rs.last();
    recordcount = rs.getRow();
    if (recordcount == recordcount/pagesize*pagesize)
      pagecount = recordcount/pagesize;
    else
      pagecount = recordcount/pagesize + 1;
    if (pagenum < 1)
      pagenum = 1;
    if (pagenum > pagecount)
      pagenum = pagecount;
    rs.absolute((pagenum-1)*pagesize+1);
 }
%>
<html>
<head>
<title>律 师 介 绍</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class=page>         
<!--显示内容-->
<table width="98%" align="center" cellspacing="0" border="0" cellpadding="0">
  <tr> 
    <td>&nbsp;</td>
    <td align="center" width="108" height="30" 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%" align="center" class="page_bg">
   <tr>
    <td>共<span class="font1"> <%=recordcount%></span> 条记录 <span class="font1">
    </td>  </tr>
</table>


<table cellspacing="1" cellpadding="5"  height="25" align="center" border="0" class="table_bg" width="98%">
  <tr class="title_bg">          
    <td width="10%" align="center"> 姓 名</td>
    <td width="6%" align="center"> 性 别</td>
    <td width="14%" align="center"> 出生年月</td>
    <td width="10%" align="center">职 务</td>
    <td width="8%" align="center">学历</td>
    <td width="14%" align="center">从业时间</td>
    <td width="38%" align="center">专业方向</td>
  </tr>                          
  
    <%
    String 	employeeName = "",
    		employeeID ="",
    		sex = "",
    		birth = "",
    		duty = "",
    		education = "",
    		joinTime = "",
    		expert = "";
    
    for (int i=1;recordcount>0;i++) 
    {                                                      
			employeeID = rs.getString("employee_id");	
			employeeName = rs.getString("employee_name");
			if(employeeName == null) employeeName = "";  		
    		sex = rs.getString("sex");                 
    		if(sex == null) sex = "";
    		birth = rs.getString("birth");             
    		if(birth == null) birth = "";   
    		else birth = birth.substring(0,10);
    		duty = rs.getString("duty");
    		if(duty == null) duty = "";
    		education = rs.getString("education");
    		if(education == null) education = "";
    		joinTime = rs.getString("join_time");
    		if(joinTime == null) joinTime = "";  
    		else joinTime = joinTime.substring(0,10);
    		expert = rs.getString("expert");
    		if(expert == null) expert = "";
    		
    		if(sex.equals("1")) sex = "男";
    		else if(sex.equals("0")) sex = "女";
    		
    		if(education.equals("1")) education="小学";
    		else if(education.equals("2")) education="初中";
    		else if(education.equals("3")) education="高中";
    		else if(education.equals("4")) education="中专";
    		else if(education.equals("5")) education="大专";
    		else if(education.equals("6")) education="本科";
    		else if(education.equals("7")) education="硕士";
    		else if(education.equals("8")) education="博士";			
    	if(i%2 == 0)
    	{
    %>
    <tr class="tr_bg1">
    <%}else{%>
    <tr class="tr_bg2">
    <%}%>        
    <td width="10%" align="center"> 
    <a href="/Office/EmployeeInfo.jsp?employee_id=<%=employeeID%>"><%=employeeName%></td>
    <td width="6%" align="center"> <%=sex%></td>
    <td width="14%" align="center"> <%=birth%></td>
    <td width="10%" align="center"><%=duty%></td>
    <td width="8%" align="center"><%=education%></td>
    <td width="14%" align="center"><%=joinTime%></td>
    <td width="38%" align="center"><%=expert%></td>
  </tr>        

    <%
    if (!rs.next())
        break;
    }
    %>
  
  </table>
<!--显示内容结束-->
</body>
</html>

⌨️ 快捷键说明

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