Update the report builder to have new options
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 12 Sep 2014 13:04:53 +0000 (09:04 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 12 Sep 2014 13:04:53 +0000 (09:04 -0400)
Bring in options from their old site that they had in their older
contact database.

Toolkit/Contacts/Admin/EditContact.php
admin/Contact/contact_setup.inc

index b535447..b50e0e6 100644 (file)
@@ -603,7 +603,7 @@ class Toolkit_Contacts_Admin_EditContact
         $e[] = array(
             'type'    => 'advcheckbox',
             'req'     => false,
-            'name'    => 'twinsok',
+            'name'    => 'twinok',
             'display' => 'Twin Ok',
             'opts'    => 'Yes',
             'val'     => array(0, 1)
index b3b704b..5abba8d 100755 (executable)
@@ -479,16 +479,35 @@ $lodging     = array(
     'Trout Creek Condominiums'    => 'Trout Creek Condominiums',
     'Hamlet Village Condominiums' => 'Hamlet Village Condominiums'
 );
-$DB_fields[] = array("name" => "city", "title" => "City", "type" => "text");
-$DB_fields[] = array("name" => "state", "title" => "State", "type" => "state");
-$DB_fields[] = array("name" => "zip", "title" => "Zip", "type" => "text");
-$DB_fields[] = array("name" => "phone", "title" => "Phone", "type" => "text");
-$DB_fields[] = array('name' => "alt_phone", 'title' => "Alternate Phone", 'type' => "text");
-$DB_fields[] = array("name" => "fax", "title" => "Fax", "type" => "text");
-$DB_fields[] = array("name" => "email", "title" => "Email", "type" => "text");
-$DB_fields[] = array("name" => "mail_ok", "title" => "Mail Ok?", "type" => "radio");
-$DB_fields[] = array('name' => "comments", 'title' => "Comments", 'type' => "textarea");
-$DB_fields[] = array('name' => "discover", 'title' => "Discover Big Fore", 'type' => "drop", 'drop' => $discover);
+$DB_fields[] = array( 'name' => "create_date",         'title' => "Create Date",               'type' => "static");
+$DB_fields[] = array( 'name' => "fname",                       'title' => "First Name",                'type' => "text");
+$DB_fields[] = array( 'name' => "lname",                       'title' => "Last Name",                 'type' => "text");
+$DB_fields[] = array( 'name' => "company",             'title' => "Company Name",              'type' => "text");
+$DB_fields[] = array( 'name' => "address",             'title' => "Address",                   'type' => "text");
+$DB_fields[] = array( 'name' => "address2",            'title' => "Address 2",                 'type' => "text");
+$DB_fields[] = array( 'name' => "city",                        'title' => "City",                              'type' => "text");
+$DB_fields[] = array( 'name' => "state",                       'title' => "State",                     'type' => "state");
+$DB_fields[] = array( 'name' => "zip",                         'title' => "Zip",                               'type' => "text");
+$DB_fields[] = array( 'name' => "phone",                       'title' => "Phone",                     'type' => "text");
+$DB_fields[] = array( 'name' => "alt_phone",           'title' => "Alternate Phone",   'type' => "text");
+$DB_fields[] = array( 'name' => "fax",                         'title' => "Fax",                               'type' => "text");
+$DB_fields[] = array( 'name' => "email",                       'title' => "Email",                     'type' => "text");
+$DB_fields[] = array( 'name' => "mail_ok",                     'title' => "Mail Ok?",                  'type' => "radio");
+$DB_fields[] = array( 'name' => "arrival",             'title' => "Arrival",                   'type' => "text");
+$DB_fields[] = array( 'name' => "departure",           'title' => "Departure",                 'type' => "text");
+$DB_fields[] = array( 'name' => "golfers",                     'title' => "Golfers",                   'type' => "text");
+$DB_fields[] = array( 'name' => "nongolfers",          'title' => "Non Golfers",               'type' => "text");
+$DB_fields[] = array( 'name' => "pquote",                      'title' => "From Price Quote",  'type' => "radio");
+$DB_fields[] = array( 'name' => "lodging",                     'title' => "Lodging",                   'type' => "drop",       'drop' => $lodging);
+$DB_fields[] = array( 'name' => "couples",                     'title' => "Couples",                   'type' => "text");
+$DB_fields[] = array( 'name' => "singles",                     'title' => "Singles",                   'type' => "text");
+$DB_fields[] = array( 'name' => "bathrooms",           'title' => "Bathrooms",                 'type' => "text");
+$DB_fields[] = array( 'name' => "rooms",                       'title' => "Rooms",                             'type' => "text");
+$DB_fields[] = array( 'name' => "beds",                        'title' => "Beds",                              'type' => "text");
+$DB_fields[] = array( 'name' => "twinok",                      'title' => "Twin Ok",                   'type' => "radio");
+$DB_fields[] = array( 'name' => "sleepersofaok",       'title' => "Sleeper Sofa Ok",   'type' => "radio");
+$DB_fields[] = array( 'name' => "comments",            'title' => "Comments",                  'type' => "textarea");
+$DB_fields[] = array( 'name' => "discover",            'title' => "Discover Big Fore", 'type' => "drop",       'drop' => $discover);
 $DB_fields[] = array("name" => "contact_type", "title" => "Contact Type", "type" => "drop2", "drop" => $cType);
 // $fields are used for building the query page
 foreach ($DB_fields as $key => $value) {
@@ -509,4 +528,3 @@ $data['bailout'] .= "wish to receive future items of this nature, please reply t
 $data['bailout'] .= "with the word \"CANCEL\" on the subject line. You will then be removed ";
 $data['bailout'] .= "from future mailings.<br>";
 $data['bailout'] .= "<a href=\"mailto:" . OWNER_EMAIL . "?subject=CANCEL\">" . OWNER_EMAIL . "</a><br>";
-?>