Update forms
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 3 Mar 2015 21:53:01 +0000 (16:53 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 3 Mar 2015 21:53:01 +0000 (16:53 -0500)
set defaults for checkboxes
setting up lead manager classes with new fields

Toolkit/Contacts/Admin/EditContact.php
Toolkit/Contacts/ContactUs.php
Toolkit/Contacts/GreatBigGaylordGolfGetaway.php
Toolkit/Contacts/VacationPlanner.php
Toolkit/LeadManager/Contact.php

index ef49dbb..92f5b8c 100644 (file)
@@ -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;
index 5c60370..09857ab 100755 (executable)
@@ -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;
index bd82576..d45518c 100755 (executable)
@@ -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(
index 92e51dc..b55572d 100644 (file)
@@ -69,7 +69,7 @@ class Toolkit_Contacts_VacationPlanner
         .listing {display:none;}
         </style>
         <div id="form-success-top">
-            Thank you for requesting the Visitors guide.
+            Thank you for requesting the Golf Vacation Planner.
         </div>';
     /**
      * Email subject and <h1> 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)
index d1d8493..7e00306 100644 (file)
@@ -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;
     }