From: Steve Sutton Date: Thu, 5 May 2016 16:36:48 +0000 (-0400) Subject: Add new contact type and new field X-Git-Tag: v1.5^2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=811ddfff9e34e307f57821cda28733f1e98d67b2;p=web%2FGaylordGolfMecca.git Add new contact type and new field New field for the last_access for contacts New contact type for contacts --- diff --git a/.htaccess b/.htaccess index 573c329..2430cb5 100644 --- a/.htaccess +++ b/.htaccess @@ -26,6 +26,8 @@ RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{REQUEST_URI} v/[0-9\.]+/ RewriteRule ^v/[0-9\.]+/(.*) $1 [L] +RewriteRule ^winaround/? index.php?catid=65 [L] + ############ ## Events ## ############ diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index f1830d1..2579b6a 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -1058,6 +1058,7 @@ class Toolkit_Contacts_ContactUs $this->newInterest = $values['interest']; // update create_date for this contact $values['create_date'] = date('m/d/Y'); + $values['last_access'] = date('m/d/Y'); // set up interest field values if (is_array($values['interest']) && !empty($values['interest'])) { diff --git a/Toolkit/Contacts/config.ini b/Toolkit/Contacts/config.ini index 7b7b5c6..9b9f2c0 100644 --- a/Toolkit/Contacts/config.ini +++ b/Toolkit/Contacts/config.ini @@ -16,6 +16,7 @@ sequence = "contact_id_seq" 6 = "Golf Passport" 7 = "Golf Giveaway" 8 = "Golf Show" +9 = "Win A Round" ; ini file for the setup of the How did you hear about us ; used in the contact form and the vacation guide form. diff --git a/Toolkit/LeadManager/Contact.php b/Toolkit/LeadManager/Contact.php index a7e5f4c..b15bd33 100644 --- a/Toolkit/LeadManager/Contact.php +++ b/Toolkit/LeadManager/Contact.php @@ -49,6 +49,7 @@ class Toolkit_LeadManager_Contact private $_golfvacation; private $_gender; private $_handicap; + private $_last_access; /** * Contructor for class Contact Objects @@ -73,7 +74,8 @@ class Toolkit_LeadManager_Contact ->setEclub($eclub) ->setBig_giveaway($big_giveaway) ->setGender($gender) - ->setHandicap($handicap); + ->setHandicap($handicap) + ->setLast_access($last_access); if ($id) { $this->setId($id); } @@ -339,6 +341,11 @@ class Toolkit_LeadManager_Contact return $this->_big_giveaway; } + function getLast_access() + { + return $this->_last_access; + } + function getGolfvacation() { return $this->_golfvacation; @@ -368,6 +375,12 @@ class Toolkit_LeadManager_Contact return $this; } + function setLast_access($last_access) + { + $this->_last_access = $last_access; + return $this; + } + function getGender() { return $this->_gender; diff --git a/admin/Contact/contact_setup.inc b/admin/Contact/contact_setup.inc index 97001b3..062eb44 100755 --- a/admin/Contact/contact_setup.inc +++ b/admin/Contact/contact_setup.inc @@ -403,6 +403,8 @@ function dateSelector($M, $D, $Y, array $m = null, array $d = null, array $y = n $c_date_from = GLM_TOOLBOX::contact_date_entry("", "", "", "fc_month", "fc_day", "fc_year"); $c_date_to = GLM_TOOLBOX::contact_date_entry("", "", "", "tc_month", "tc_day", "tc_year"); +$a_date_from = GLM_TOOLBOX::contact_date_entry("", "", "", "fa_month", "fa_day", "fa_year"); +$a_date_to = GLM_TOOLBOX::contact_date_entry("", "", "", "ta_month", "ta_day", "ta_year"); // The Following $DB_fields array is no longer used for the edit contact page // You must alter the class Toolkit_Contacts_Admin_EditContact // The following is only used for the search form and the listing pages @@ -437,6 +439,7 @@ define("WHERE", ID." IS NOT NULL"); // $DB_fields are used for edit and updating contacts $DB_fields[] = array("name" => "id", "title" => "id", "type" => "hide"); $DB_fields[] = array("name" => "create_date", "title" => "Create Date", "type" => "static"); +$DB_fields[] = array("name" => "last_access", "title" => "Last Access Date", "type" => "static"); $DB_fields[] = array("name" => "fname", "title" => "First Name", "type" => "text"); $DB_fields[] = array("name" => "lname", "title" => "Last Name", "type" => "text"); if (TABLE == 'customer') { diff --git a/admin/Contact/index.phtml b/admin/Contact/index.phtml index 0428884..d5ffe07 100755 --- a/admin/Contact/index.phtml +++ b/admin/Contact/index.phtml @@ -134,12 +134,20 @@ GLM_TOOLBOX::html_nav_table($nav,$navWidth); -
Created From:
+
Created From:
>
-
Created To:
+
Created To:
>
+ + +
Last Access From:
+ >
+
Last Access To:
+ >
+ + In Fields:
@@ -301,7 +309,7 @@ GLM_TOOLBOX::html_nav_table($nav,$navWidth); -