Chuck's update to GLMSearch
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 29 Jul 2014 13:38:48 +0000 (09:38 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 29 Jul 2014 13:38:48 +0000 (09:38 -0400)
templates/template.html

index 1910ea0..781ea3b 100755 (executable)
                                 <img src="{mediaBaseURL:h}assets/logo.png" id="logo">
                             </a>
                             <div id="search">
-                                <form action="#">
-                                    <input type="text" id="searchText">
-                                    <input type="submit" id="searchSubmit">
+                                <form action="{mediaBaseURL:h}index.php" name="search" method="post">
+                                    <input type="hidden" name="GLMSearch" value="true">
+                                    <input type="hidden" name="start" value="0">
+                                    <input type="hidden" name="rows" value="10">
+                                    <input type="text" name="query" id="searchText">
+                                    <input type="submit" value="Search" id="searchSubmit">
                                 </form>
                             </div>
                             <nav class="clearfix  hide-for-small-only">
                                             if ($counter <=4) {
                                         ?>
                                         <a href="{v[href]:h}" class="cEventItem">
-                                        
+
                                         <span class="cEventTitle">{v[header]}</span>
                                         <span class="cEventDate">{v[dates]}</span>
                                         <span class="cEventTimes" flexy:if="v[times]">{v[times]}</span>
                                         </a><!-- /.cEventItem -->
                                         <?php }; ?>
-                                    
+
                                     {end:}
                                     <a href="{baseURLDefined:h}calendars-10/">More Events</a>
                                 </div><!-- /#eventItemWrapper -->