get("Filter", false); if (!empty($VARS['filter']) && preg_match("/(camper|adult|youth)/", $VARS['filter'])) { $where = [ $VARS['filter'] . 'id[!]' => null ]; $filter = $Strings->get(ucfirst($VARS['filter'] . ($VARS['filter'] == "youth" ? "" : "s")), false); } ?>
select( "people", [ 'personid (id)', 'camperid', 'adultid', 'youthid', 'firstname', 'lastname', 'address', 'zip', 'phone1', 'phone2', 'email', 'unit', 'shirt', 'sex' ], $where); foreach ($people as $person) { ?>
get('Actions'); ?> get('First'); ?> get('Last'); ?> get('Type'); ?> get('Phone'); ?> get('Email'); ?> get('Unit'); ?> get('Shirt'); ?> get('Sex'); ?>
get("Edit"); ?> get("Camper"); } else if (!is_null($person['adultid'])) { $Strings->get("Adult"); } else if (!is_null($person['youthid'])) { $Strings->get("Youth"); } ?>
get('Actions'); ?> get('First'); ?> get('Last'); ?> get('Type'); ?> get('Phone'); ?> get('Email'); ?> get('Unit'); ?> get('Shirt'); ?> get('Sex'); ?>