fix spelling in welcome.tpl
[phpfspot.git] / themes / default / templates / search.tpl
index 2030bdcc73e85dec6ba2895a33a35c384cfd7bd1..f983c40b45ea168b4f90887965d47afe491ecb6d 100644 (file)
@@ -7,7 +7,31 @@
  <tr>
   <td>Tag:</td>
   <td>
-   <input type="text" name="searchfor" value="{$searchfor}" size="15" />
+   { if $use_autocomplete }
+   <input type="text" name="searchfor_tag" id="searchfor_tag" value="{$searchfor_tag}" size="15" acdropdown="true" autocomplete_list="url:rpc.php?action=getxmltaglist&amp;search=[S]&amp;length=10" />
+   { literal }
+   <script type="text/javascript">
+      var options = {
+         script: "rpc.php?action=getxmltaglist&",
+         varname: "search",
+         json: false,
+         maxresults: 15
+      };
+      var as = new bsn.AutoSuggest('searchfor_tag', options);
+   </script>
+   { /literal }
+   { else }
+   <input type="text" name="searchfor_tag" value="{$searchfor_tag}" size="15" />
+   { /if }
+  </td>
+  <td>
+   <input type="image" class="submit" src="resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
+  </td>
+ </tr>
+ <tr>
+  <td>Name:</td>
+  <td>
+   <input type="text" name="searchfor_name" value="{$searchfor_name}" size="15" />
   </td>
   <td>
    <input type="image" class="submit" src="resources/doit.png" alt="start search" title="start search" onclick="click(this);" />