From: Steve Sutton Date: Tue, 3 Mar 2015 21:53:01 +0000 (-0500) Subject: Update forms X-Git-Tag: v1.0.0^2~42 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=da08dd8319b60c37cdbbfb297b14ec07f460e70a;p=web%2FGaylordGolfMecca.git Update forms set defaults for checkboxes setting up lead manager classes with new fields --- diff --git a/Toolkit/Contacts/Admin/EditContact.php b/Toolkit/Contacts/Admin/EditContact.php index ef49dbb..92f5b8c 100644 --- a/Toolkit/Contacts/Admin/EditContact.php +++ b/Toolkit/Contacts/Admin/EditContact.php @@ -520,6 +520,30 @@ class Toolkit_Contacts_Admin_EditContact 'opts' => 'Yes', 'val' => array(0, 1) ); + $e[] = array( + 'type' => 'advcheckbox', + 'req' => false, + 'name' => 'eclub', + 'display' => 'I would like to sign up for the Gaylord Golf Mecca E-club', + 'opts' => 'Yes', + 'val' => array(0, 1) + ); + $e[] = array( + 'type' => 'advcheckbox', + 'req' => false, + 'name' => 'giveaway', + 'display' => 'Register me to WIN the Gaylord Golf Giveaway!', + 'opts' => 'Yes', + 'val' => array(0, 1) + ); + $e[] = array( + 'type' => 'advcheckbox', + 'req' => false, + 'name' => 'big_giveaway', + 'display' => 'Register me to WIN the Great Big Gaylord Golf Getaway!', + 'opts' => 'Yes', + 'val' => array(0, 1) + ); if (is_array($this->interestsGroups)) { foreach ($this->interestsGroups as $group => $gData) { $this->myGroups[] = $gData; diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index 5c60370..09857ab 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -384,8 +384,12 @@ class Toolkit_Contacts_ContactUs public function configureDefaults() { $defaults = array( - 'state' => '', - 'mail_ok' => 1 + 'state' => '', + 'mail_ok' => 1, + 'big_giveaway' => 1, + 'giveaway' => 1, + 'eclub' => 1, + 'golfvacation' => 1 ); if (defined("MEMBERS_DB") && MEMBERS_DB) { $defaults['members'] = 1; diff --git a/Toolkit/Contacts/GreatBigGaylordGolfGetaway.php b/Toolkit/Contacts/GreatBigGaylordGolfGetaway.php index bd82576..d45518c 100755 --- a/Toolkit/Contacts/GreatBigGaylordGolfGetaway.php +++ b/Toolkit/Contacts/GreatBigGaylordGolfGetaway.php @@ -224,9 +224,9 @@ class Toolkit_Contacts_GreatBigGaylordGolfGetaway $e[] = array( 'type' => 'advcheckbox', 'req' => false, - 'name' => 'giveaway', + 'name' => 'big_giveaway', 'display' => '', - 'opts' => 'Yes, Register me to WIN the Gaylord Golf Giveaway!', + 'opts' => 'Yes, Register me to WIN the Gaylord Golf Getaway!', 'val' => array(0, 1) ); $e[] = array( diff --git a/Toolkit/Contacts/VacationPlanner.php b/Toolkit/Contacts/VacationPlanner.php index 92e51dc..b55572d 100644 --- a/Toolkit/Contacts/VacationPlanner.php +++ b/Toolkit/Contacts/VacationPlanner.php @@ -69,7 +69,7 @@ class Toolkit_Contacts_VacationPlanner .listing {display:none;}
- Thank you for requesting the Visitors guide. + Thank you for requesting the Golf Vacation Planner.
'; /** * Email subject and

header in email @@ -80,7 +80,7 @@ class Toolkit_Contacts_VacationPlanner * @var string * @access protected */ - public $subject = "Visitor Guide Form from website"; + public $subject = "Golf Vacation Planner Request"; /** * Class constructor @@ -276,7 +276,7 @@ class Toolkit_Contacts_VacationPlanner $e[] = array( 'type' => 'advcheckbox', 'req' => false, - 'name' => 'planner', + 'name' => 'golfvacation', 'display' => '', 'opts' => 'Golf Vacation Planner', 'val' => array(0, 1) diff --git a/Toolkit/LeadManager/Contact.php b/Toolkit/LeadManager/Contact.php index d1d8493..7e00306 100644 --- a/Toolkit/LeadManager/Contact.php +++ b/Toolkit/LeadManager/Contact.php @@ -43,6 +43,10 @@ class Toolkit_LeadManager_Contact private $_discover; private $_password; private $_verify_password; + private $_giveaway; + private $_eclub; + private $_big_giveaway; + private $_golfvacation; /** * Contructor for class Contact Objects @@ -61,7 +65,11 @@ class Toolkit_LeadManager_Contact ->setMembers($members) ->setMemberOk($member_ok) ->setPassword($password) - ->setVerifyPassword($verify_password); + ->setVerifyPassword($verify_password) + ->setGiveaway($giveaway) + ->setGolfvacation($golfvacation) + ->setEclub($eclub) + ->setBig_giveaway($big_giveaway); if ($id) { $this->setId($id); } @@ -309,6 +317,51 @@ class Toolkit_LeadManager_Contact public function setVerifyPassword($verifyPassword) { $this->_verify_password = $verifyPassword; + return $this; + } + + function getGiveaway() + { + return $this->_giveaway; + } + + function getEclub() + { + return $this->_eclub; + } + + function getBig_giveaway() + { + return $this->_big_giveaway; + } + + function getGolfvacation() + { + return $this->_golfvacation; + } + + function setGiveaway($giveaway) + { + $this->_giveaway = $giveaway; + return $this; + } + + function setEclub($eclub) + { + $this->_eclub = $eclub; + return $this; + } + + function setBig_giveaway($big_giveaway) + { + $this->_big_giveaway = $big_giveaway; + return $this; + } + + function setGolfvacation($golfvacation) + { + $this->_golfvacation = $golfvacation; + return $this; }