default theme, make sort-select box a template function
[phpfspot.git] / themes / default / templates / search.tpl
index 549f2dc071acd7a93d9f1d6e716a0457b03e2d38..e12a0992ab7d43382c896576c6d27a04267a9a0c 100644 (file)
       <input type="text" name="searchfor" value="{$searchfor}" size="15" />
      </td>
      <td>
-      <input type="image" src="resources/doit.png" alt="Tag-Search" />
+      <input type="image" src="resources/doit.png" alt="Tag-Search" onclick="click(this);" />
      </td>
     </tr>
     <tr>
      <td>Date:</td>
-     <td><input type="checkbox" name="consider_date" value="Y" onclick="datesearch();">consider date-search
+     <td>
+      { if ! $date_search_enabled }
+       <input type="checkbox" name="consider_date" value="Y" onclick="datesearch();">
+      { else }
+       <input type="checkbox" name="consider_date" value="Y" onclick="datesearch();" checked="checked">
+      { /if }
+      consider date-range
+     </td>
     </tr>
     <tr>
      <td>&nbsp;</td>
@@ -31,7 +38,7 @@
       {$to_date} <a href="javascript:showCalendar('to');" onclick="click(this);"><img src="resources/date.png" id="topic" /></a>
      </td>
      <td>
-      <input type="image" src="resources/doit.png" alt="Tag-Search" />
+      <input type="image" src="resources/doit.png" alt="Tag-Search" onclick="click(this);" />
      </td>
     </tr>
     <tr>
       Sort-Order:
      </td>
      <td>
-      {$sort_field}
+      { sort_select_list }
+     </td>
+     <td>
+      <input type="image" src="resources/doit.png" alt="Tag-Search" onclick="click(this);" />
      </td>
     </tr>
     </form>