Add to template for output and add static pages for forms
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 11 Aug 2014 15:50:17 +0000 (11:50 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 11 Aug 2014 15:50:17 +0000 (11:50 -0400)
Testing form output

static/18.phtml [new file with mode: 0644]
static/19.phtml [new file with mode: 0644]
static/20.phtml [new file with mode: 0644]
templates/template.html

diff --git a/static/18.phtml b/static/18.phtml
new file mode 100644 (file)
index 0000000..7411872
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+if ($catid = filter_input(INPUT_GET, 'catid', FILTER_VALIDATE_INT)) {
+       $cf = new Toolkit_Contacts_ENewsSignup(
+               Toolkit_Database::getInstance(),
+               'contact_form',
+               'post',
+               BASE_URL . "index.php?catid=$catid"
+       );
+       $cf->configureForm();
+       $cf->useCaptcha(true);
+       echo $cf->toHtml();
+}
diff --git a/static/19.phtml b/static/19.phtml
new file mode 100644 (file)
index 0000000..705e836
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+if ($catid = filter_input(INPUT_GET, 'catid', FILTER_VALIDATE_INT)) {
+       $cf = new Toolkit_Contacts_ContactUs(
+               Toolkit_Database::getInstance(),
+               'contact_form',
+               'post',
+               BASE_URL . "index.php?catid=$catid"
+       );
+       $cf->configureForm();
+       $cf->useCaptcha(true);
+       echo $cf->toHtml();
+}
diff --git a/static/20.phtml b/static/20.phtml
new file mode 100644 (file)
index 0000000..d6d9670
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+if ($catid = filter_input(INPUT_GET, 'catid', FILTER_VALIDATE_INT)) {
+       $cf = new Toolkit_Contacts_VisitorGuide(
+               Toolkit_Database::getInstance(),
+               'visitor_guide_form',
+               'post',
+               BASE_URL . "index.php?catid=$catid"
+       );
+       $cf->configureForm();
+       $cf->useCaptcha(true);
+       echo $cf->toHtml();
+}
index f8c0a45..8e43d0f 100644 (file)
@@ -1,5 +1,3 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-"http://www.w3.org/TR/html4/strict.dtd">
 <html>
 <head>
 <title>{pageTitle:h}</title>
                                <img id="logo" src="baseurl/assets/logo.png" width="520" height="50">
                        </a>
                </div><!-- /#top -->
-               <ul id="nav">
-                       <li><a href="#">Home</a></li>
-                       <li><a href="#">Services</a></li>
-                       <li><a href="#">Patient Information</a></li>
-                       <li><a href="#">About Us</a></li>
-                       <li><a href="#">Location</a></li>
-                       <li id="lastli"><a href="#">Contact Us</a></li>
-               </ul>
+        {mainNav:h}
                <div id="column">
-                       <div id="subnav"><!-- only if there are subpages -->
-                               <h2>Services</h2>
-                               <ul>
-                                       <li><a href="#">Navigation Name</a></li>
-                                       <li><a href="#">Halloisann hu</a></li>
-                                       <li><a href="#">Lorem Ipsum</a></li>
-                                       <li><a href="#">Navigator Tools</a></li>
-                                       <li><a href="#">Nav</a></li>
-                                       <li><a href="#">Navigation Name</a></li>
-                                       <li><a href="#">Halloisann hu</a></li>
-                                       <li><a href="#">Lorem Ipsum</a></li>
-                                       <li><a href="#">Navigator Tools</a></li>
-                    <li></li>
-                               </ul>
+                       <div id="subnav">
+                {subNav:h}
                        </div><!-- /#subnav -->
                </div><!-- /#column -->
                <div id="main">
                        <div id="toolbox">
-                               <div id="category">
-                                       <h1>Page Header</h1>
-                                       <div class="imageright">
-                                               <img src="baseurl/assets/toolboxTMP.gif" width="325" height="218" alt="toolboxTMP (26K)">
-                                               <div class="imagecaption">This is the imagecaption</div>
-                                       </div><!-- /..imageright -->
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                               </div><!-- /#category -->
-                               <div class="listing">
-                                       <h2>Header</h2>
-                                       <div class="imageleft">
-                                               <img src="baseurl/assets/toolboxTMP.gif" width="325" height="218" alt="toolboxTMP (26K)">
-                                               <div class="imagecaption">This is the imagecaption</div>
-                                       </div><!-- /..imageleft -->
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                               </div><!-- /.listin\g -->       
-                               <div class="listing">
-                                       <h2>Header</h2>
-                                       <div class="imageright">
-                                               <img src="baseurl/assets/toolboxTMP.gif" width="325" height="218" alt="toolboxTMP (26K)">
-                                               <div class="imagecaption">This is the imagecaption</div>
-                                       </div><!-- /..imageright -->
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                                       <p>Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access. </p>
-                               </div><!-- /.listin\g -->       
+                               {toolboxContent:h}
                        </div><!-- /#toolbox -->
                </div><!-- /#main -->
                <div id="footer">
@@ -84,7 +34,7 @@
                        <li id="aAAD">AAD</li>
                        <li id="aABD">ABD</li>
                        <li id="aACMS">ACMS</li>
-                       <li id="aASDS">ASDS</li>        
+                       <li id="aASDS">ASDS</li>
                </ul>
                <div id="copyright">
                        Copyright&copy;<?php echo date('Y');?> {siteName:h} - Produced by <a href="http://www.gaslightmedia.com">Gaslight Media</a>, All Rights Reserved.