public function configureElements()
{
$e = array();
+ $config = parse_ini_file(BASE .'Toolkit/Contacts/config.ini', true);
+ $referredBy = $config['referred_by'];
+ $gender = $config['gender'];
+ $handicap = $config['handicap'];
$this->setInterestFields();
// Grouped Elements are defined here.
$this->interestsGroups =& $this->getInterestFields();
'type' => 'advcheckbox',
'req' => false,
'name' => 'golfvacation',
- 'display' => '',
- 'opts' => 'Golf Vacation Planner',
+ 'display' => 'Golf Vacation Planner',
+ 'opts' => 'Yes',
'val' => array(0, 1)
);
+ $e[] = array(
+ 'type' => 'select',
+ 'req' => false,
+ 'name' => 'gender',
+ 'display' => 'Gender',
+ 'opts' => $gender
+ );
+ $e[] = array(
+ 'type' => 'select',
+ 'req' => false,
+ 'name' => 'handicap',
+ 'display' => 'Do you have a USGA Handicap',
+ 'opts' => $handicap
+ );
if (is_array($this->interestsGroups)) {
foreach ($this->interestsGroups as $group => $gData) {
$this->myGroups[] = $gData;