<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.*" import="javax.servlet.http.HttpServletRequest" import="org.starhope.appius.user.*" import="org.starhope.appius.types.AgeBracket" %><% Parent parent = null; String param = ""; /** Obtain the parameters passed when this page is imported */ if (null!=request.getParameter("email")) { param = request.getParameter("email"); parent = Parent.getByMail(param); } else if (null!=request.getParameter("parentid")) { param = request.getParameter("parentid"); try { parent = Parent.getByID(Integer.parseInt(param)); } catch (NumberFormatException e) { // do nothing, invalid data }; } %> Joshua's Spy Console <% /** This is where we actual display the parent information */ if (null!=parent) { %>

Joshua's Spy Console

Currently spying on <%= parent.getMail() %>

<%= parent.getMail() %>: <%= parent.getMailConfirmed() %>

User Name
User ID #<%= parent.getID() %>
Password
Given Name " />
Children
<% User[] children = parent.getChildren(); for ( User child : children ) { %><%= child.getDisplayName() %>
<% } %>
<% } /** If there was no parent found with the data, display * this error message. */ else { %>

Joshua's Spy Console

No parent was found with the supplied data

<% } %>