<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.*" import="javax.servlet.http.HttpServletRequest" import="com.tootsville.user.*" import="org.starhope.appius.user.*" import="org.starhope.appius.mb.Messages" import="com.tootsville.WebUtil" %><% //---------- Universal Declarations: Place this on every page. /** * Parent/User object. On myAccount this should be declared User and on parent this should be declared Parent */ Parent sessionUser=null; /** * Error message list */ HashMap err = new HashMap (); HashMap storeValues = new HashMap (); String url = "/membership/"; %><% //----------- Verify the session and create a User or Parent Object //----------- This should be placed on any of the 'logged in' sections on the website. if (null!=session.getAttribute("sUserID") && null!=session.getAttribute("sUserPassword") && null!=session.getAttribute("sUserType")) { String userID=session.getAttribute("sUserID").toString(); String userPassword=session.getAttribute("sUserPassword").toString(); String userType=session.getAttribute("sUserType").toString(); if (userPassword.equals("approval")) { WebUtil.log ("A parent has come to approve or deny their child."); sessionUser=Parent.getByID(Integer.parseInt(userID)); WebUtil.log ("userID: " + userID + " userType: " + userType + " password: " + userPassword); } else { if (userType.equals(WebUtil.USER)) { err.put("username", Messages.getText("login_invalid")); url = "/membership/"; } else if (userType.equals(WebUtil.PARENT)) { sessionUser=WebUtil.verifyParentLogin(userID, userPassword); } if (null==sessionUser) err.put("username", Messages.getText("login_invalid")); } } else { if (null==session.getAttribute("sUserID")) if (null==session.getAttribute("sUserPassword")) if (null==session.getAttribute("sUserType")) err.put("username", Messages.getText("login_invalid")); } Toot selectedChild = null; String childID = ""; if (null!=request.getParameter("toot") && !request.getParameter("toot").equals("")) { childID = request.getParameter("toot"); selectedChild = (Toot) User.getByID(Integer.parseInt(childID)); } //----------- Error handling: Place this on every page. //----------- These errors are read and displayed by Header.jsp if (err.size() > 0) { session.setAttribute("sError", err); response.sendRedirect(url); } else { %> Tootsville™ Membership

Manage My Account!

Welcome to Manage My Parent Account.

Manage My Account

Hello, <%= sessionUser.getDisplayName() %><%= (" (" + sessionUser.getMail() + ")") %>

To review the details of your child's Toots® Account(s), edit your profile and register new Toots® accounts, please select from the options below.
This child has a Very Important Toot membership. V.I.T. Memberships
This child needs attention. Your Child's Account Needs Attention
<% if (null!=selectedChild && sessionUser.getID() == selectedChild.getParentID()) { %>
To update individual or all listed items of the user details, edit the field boxes provided and hit submit.

Child: <%= selectedChild.getDisplayName() %>

<% if (!selectedChild.isApproved() && !selectedChild.isBanned() ) {%> ">
ApproveApprove Child Account
(This action will approve your child's account and allow your child to chat in Tootsville™)
<% if (!selectedChild.isCanceled()) { %> ">
DenyCancel Child Account
(This action will cancel your child's account)
<% }} if (selectedChild.isBanned()) { %> ">
DenyYour child is banned!
(Click here to send Tootsville™'s Customer Service an e-mail)
<% } %>
Status: <% if (selectedChild.isActive()) { // Active out.println ("Active"); } else if (selectedChild.isCanceled()) { // Canceled out.println ("Canceled"); } else if (selectedChild.isBanned()) { // Banned out.println ("Banned"); } else if (selectedChild.isKicked()) { // Kicked + message out.println ("Kicked: "+selectedChild.getKickedMessage()+""); } %>

<% if (selectedChild.needsNaming()) { %> <% } %>
The user name your child has requested was not approved. Please select another user name.
New User Name:
Child's Password:
Child's First Name: " size="20" maxlength="30" />
Allow Child to Chat
Forgotten Password Question:
<%= selectedChild.getForgotPasswordQuestion() %>
Forgotten Password Answer:
Child's Date of Birth <%= Messages.prettyDate(selectedChild.getBirthDate()) %>

If you have a Chase-It eCode or Peanut Code and you wish to apply its value to this child's account, please enter the corresponding code below.

Chase-It eCode:
Peanut Code:
<% if (!selectedChild.isPaidMember()) { %> <% } %>
<% if (selectedChild.isApproved()) { %>
Disable This Toots Account
<% } %>
<% } if (null!=request.getParameter("edit") && !request.getParameter("edit").equals("")) { String edit = request.getParameter("edit"); if (edit.equals("true")) { %>

<% /** * * * * * * * * * * * * * * * * * */ %>
Do you want to change your password? Type your old password then your new password twice and hit submit!


Old Password:

New Password:
Confirm New Password:

Update E-mail


New E-mail:
Confirm New E-mail:

<% }} %>
<% } %>