adding trip planner
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Jun 2013 19:25:46 +0000 (19:25 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Jun 2013 19:25:46 +0000 (19:25 +0000)
config/application.ini
static/16.phtml [new file with mode: 0644]
static/6.phtml [new file with mode: 0644]

index fccc7f2..3035774 100644 (file)
@@ -87,11 +87,11 @@ memberdb.members.reports_page = Off
 ; The page id in the toolbox that is the members only leads page
 memberdb.members.leads_page = Off
 ; Turn the trip planner module On or Off for the member application
-memberdb.session.list = Off
+memberdb.session.list = On
 ; The page id in the toolbox that holds the output for the trip planner
-memberdb.session.page = Off
+memberdb.session.page = 6
 ; The page id in the toolbox that holds the create account form for the trip planner
-memberdb.session.form = Off
+memberdb.session.form = 16
 ; Turn on the streamsend module to use with our member application
 memberdb.streamsend.application = Off
 
diff --git a/static/16.phtml b/static/16.phtml
new file mode 100644 (file)
index 0000000..d531f32
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+$pp = new Toolkit_Contacts_SaveTripPlanner(
+       Toolkit_Database::getInstance(),
+    'TravelList',
+    'post',
+    BASE_URL .
+    'index.php?catid='.MEMBER_SESSION_FORM
+);
+$pp->configureForm();
+$pp->useCaptcha(true);
+$pp->setGateway($this->pageGateway);
+echo $pp->toHTML();
diff --git a/static/6.phtml b/static/6.phtml
new file mode 100644 (file)
index 0000000..60907df
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+if ($_REQUEST['cPage']) {
+    echo '
+<style type="text/css">
+       #category, .listing { display:none; }
+</style>';
+}
+
+$sController = new Toolkit_Members_TripPlannerList(
+       $this->pageGateway,
+       Toolkit_Database::getInstance()
+);
+$sController->show();