newUser == true)
{
echo "
Created account for
";
echo $this->firstName." ".$this->lastName.". PIN: ".$this->tempPin;
echo "
×
";
}
?>
Account |
Type |
Status |
Supervisor |
Action |
accounts) > 0) {
foreach ($this->accounts as $account) {
switch ($account['type']) {
case "part":
$type = "Part Time";
break;
case "full":
$type = "Full Time";
break;
default:
$type = " - ";
}
switch ($account['status']) {
case 0:
$status = "Inactive";
break;
case 1:
$status = "Active";
break;
default:
$status = " - ";
}
foreach ($this->allAccounts as $allAccount) {
if ($allAccount['id'] == $account['supervisorId']) {
$supervisor = $allAccount['lastName'] . ", " . $allAccount['firstName'];
}
}
echo "
" . $account['lastName'] . ", " . $account['firstName'] . " |
$type |
$status |
$supervisor |
link(array('accounts', 'edit', $account['id'])) . "\">Edit |
";
}
}
?>