home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
-
- <%@ page session="true" errorPage="error.jsp" %>
- <%@ page import="com.magpiesoftware.db.*" %>
- <%@ page import="com.magpiesoftware.bean.*" %>
- <%@ page import="java.util.*, com.magpiesoftware.util.*"%>
-
- <%@ include file="begin.jsp"%>
-
- <head>
- <title>Uw stamboom op het internet</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
- <link rel="stylesheet" href="stylesheet.css" type="text/css"/>
-
- </head>
-
- <body class="bgcontent">
-
- <br/>
- <div align="center" class="txt"><b>Alle aanwezige familieleden in deze databank</b><br/></div>
-
- <div align="center">
- <br/>
- <br/>
- <br/>
- <span class="txt"><b></b></span>
- <table border="0" cellspacing="0" cellpadding="2" width="95%">
-
- <%
- boolean living = "living".equals(request.getParameter("type"));
- boolean deceased = "deceased".equals(request.getParameter("type"));
- String letter = request.getParameter("letter");
- if (letter==null) letter="";
-
- if ("all".equals(request.getParameter("type"))) {
- living = deceased = true;
- }
-
- Map map = Relatives.getRelatives(living,deceased,letter);
- %>
-
- <tr>
- <td class="bglight"> </td>
- <td class="bglight"> <%=map!=null ? ""+map.size():"0"%> Familieleden</td>
- <td class="bglight" align="center"> Geboorte</td>
- <td class="bglight" align="center"> Overlijden</td>
- </tr>
-
- <!-- <%=request.getParameter("type")%> -->
-
- <%
- int col=0;
-
- for (Iterator it = map.keySet().iterator(); it.hasNext(); ) {
- String key = (String)it.next();
- IndividualBean bean = (IndividualBean)map.get(key);
- col++;
- %>
-
- <%
- if (!key.startsWith(letter)) {
- letter = key.substring(0,1);
- %>
-
- <tr>
- <td class="txt" colspan="4"> </td>
- </tr>
-
- <tr>
- <td class="bglight"> </td>
- <td class="bglight"> <%=letter%></td>
- <td class="bglight"> </td>
- <td class="bglight"> </td>
- </tr>
-
- <%}%>
-
- <tr <%=col%2==0?"bgcolor='white'":""%> >
- <td width="10" class="txt"></td>
- <td class="txt" valign="top"><a href="view_individual.jsp?id=<%=bean.getId()%>"><%=key%></a></td>
- <td class="txt" align="right" valign="top"><%=bean.getBirth().getDate()%></td>
- <td class="txt" align="right" valign="top"><%=bean.getDeath().getDate()%></td>
- </tr>
-
- <%
- }
- %>
-
- </table>
- <br/><br/>
-
- </div>
- <div class="txt" align="center">[<a href="javascript:history.back()">terug</a>] [<a href="#" onclick="self.window.print()">afdrukken lijst</a>]</div>
-
- <%@ include file="end.jsp"%>
-
- </body>
- </html>
-