Rev 11655 | Rev 11660 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5988 | bpr | 1 | <!-- adm/search_engine/form.phtml --> |
6589 | bpr | 2 | |
6567 | bpr | 3 | !default search_lang=$lang |
5988 | bpr | 4 | !set wims_ref_anchor=#searchform |
5774 | bpr | 5 | |
11384 | obado | 6 | <fieldset class="wims_search_engine" id="searchform"> |
11658 | bpr | 7 | <legend><label for="search_keywords">$name_search_engine</label></legend> |
5988 | bpr | 8 | |
11261 | obado | 9 | !set wims_form_method=post |
10 | !form new |
||
11 | <input type="hidden" name="module" value="home" /> |
||
6589 | bpr | 12 | |
11261 | obado | 13 | !if $wims_accessright!=$empty |
14 | !read adm/search_engine/search_accessright.phtml |
||
15 | !endif |
||
5988 | bpr | 16 | |
11384 | obado | 17 | !set wims_ref_class=wims_button_help float_right |
18 | !href module=adm/light&phtml=search_engine.phtml.$lang $name_search_help |
||
19 | |||
11654 | obado | 20 | <div class="field search_field"> |
21 | <input size="25" |
||
22 | type="search" |
||
23 | name="search_keywords" |
||
24 | value="$search_keywords" |
||
25 | class="wims_home_form multicomplete" |
||
26 | placeholder="$name_keywords_enter" |
||
27 | results="5" |
||
28 | autosave="search_keywords" |
||
11658 | bpr | 29 | id="search_keywords" |
11654 | obado | 30 | /><button class="wims_button icon_button" |
31 | type="submit"><span class="Searching">$N_Search</span></button> |
||
32 | <span class="text_icon browse" style="margin-left:2em;display:inline-block;"> |
||
33 | !href module=adm/browse $wims_name_browse |
||
34 | </span> |
||
35 | </div> |
||
7940 | obado | 36 | |
11397 | obado | 37 | !if $jquery_defined=yes |
11654 | obado | 38 | !if $wims_class==$empty |
39 | !set display_filters=active:false, |
||
40 | !endif |
||
41 | |||
42 | <script> |
||
43 | $$(function(){ |
||
44 | $$("#affined_search").accordion({ |
||
45 | collapsible: true,$display_filters |
||
46 | heightStyle: "content" |
||
47 | }); |
||
48 | } ); |
||
49 | </script> |
||
50 | !endif |
||
51 | |||
52 | <fieldset id="affined_search"> |
||
53 | <legend>$name_search_filters</legend> |
||
54 | <div> |
||
55 | <div class="field box halfwidth float_left"> |
||
56 | !!-- categories --> |
||
57 | <label for="search_category">$name_search_category</label> |
||
58 | !formselect search_category list $slist prompt $plist |
||
59 | </div> |
||
60 | <div class="field box halfwidth float_left"> |
||
61 | !!-- search type --> |
||
62 | <label for="search_and">$name_search_method</label> |
||
63 | !default search_and=no |
||
64 | !formselect search_and list yes,no prompt $name_search_and |
||
65 | </div> |
||
66 | <div class="field box fullwidth"> |
||
67 | !!-- language --> |
||
68 | <label for="search_lang">$wims_name_Language</label> |
||
69 | !set L_language=!words2items $wims_site_languages |
||
70 | !for site_lang in $L_language |
||
71 | !set lang_prompt=!append item $(Lang_name_$site_lang) ($site_lang) to $lang_prompt |
||
72 | !next |
||
73 | !formselect search_lang list $L_language prompt $lang_prompt |
||
74 | </div> |
||
75 | |||
76 | <div class="field box fullwidth"> |
||
77 | <strong>$wims_name_level</strong> |
||
78 | !if $jquery_defined=yes |
||
79 | !read adm/search_engine/level_form.phtml |
||
80 | !else |
||
81 | <div class="search_level_list"> |
||
82 | !formcheckbox search_level list $listlevel prompt $Listlevel |
||
83 | </div> |
||
84 | !endif |
||
85 | </div> |
||
11655 | bpr | 86 | !!<div class="field box fullwidth"> |
11654 | obado | 87 | !!finally Lang will be add to the searchlevel automatically for the moment |
11655 | bpr | 88 | !!<strong>$name_search_leveltrans</strong> |
89 | !!!default search_leveltrans=1 |
||
90 | !!!formradio search_leveltrans list 1,0 prompt $wims_name_yes, $wims_name_no |
||
91 | !!<div class="formHelp">$name_search_leveltrans_help</div> |
||
92 | !!</div> |
||
11397 | obado | 93 | </div> |
11654 | obado | 94 | </fieldset> |
11586 | bpr | 95 | !formend |
11384 | obado | 96 | </fieldset> |
11390 | bpr | 97 | |
11266 | obado | 98 | !if $jquery_defined=yes |
11261 | obado | 99 | <script type="text/javascript" src="scripts/js/interface/search_engine.js"></script> |
100 | !endif |
||
6939 | obado | 101 | |
5988 | bpr | 102 | <!-- end adm/search_engine/form.phtml --> |
1532 | guerimand | 103 | !set srchl=$search_keywords |
11483 | bpr | 104 | !reset search_category search_keywords search_level |