Rev 13282 | Rev 13931 | 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> |
||
12539 | obado | 32 | <span style="margin-left:2em;display:inline-block;"> |
33 | !set wims_ref_class=text_icon browse |
||
11654 | obado | 34 | !href module=adm/browse $wims_name_browse |
35 | </span> |
||
36 | </div> |
||
7940 | obado | 37 | |
11397 | obado | 38 | !if $jquery_defined=yes |
11654 | obado | 39 | !if $wims_class==$empty |
11660 | obado | 40 | !set default_filters_state=false |
41 | !else |
||
42 | !set default_filters_state=0 |
||
11654 | obado | 43 | !endif |
44 | |||
45 | <script> |
||
11660 | obado | 46 | jQuery(function($$){ |
47 | // Get in sessionStorage if affined_search was previously uncollapsed |
||
48 | var affined_search_state = sessionStorage.getItem("affined_search_state"); |
||
13282 | obado | 49 | affined_search_state = !affined_search_state ? $default_filters_state : Number(affined_search_state); |
11660 | obado | 50 | // Display all affined search fields in a collapsible way |
11654 | obado | 51 | $$("#affined_search").accordion({ |
11660 | obado | 52 | collapsible: true, |
53 | active: affined_search_state, |
||
54 | heightStyle: "content", |
||
55 | activate : function( event, ui ) { |
||
56 | affined_search_state = $$("#affined_search").accordion("option", "active"); |
||
57 | sessionStorage.setItem("affined_search_state", affined_search_state); |
||
58 | } |
||
11654 | obado | 59 | }); |
60 | } ); |
||
61 | </script> |
||
62 | !endif |
||
63 | |||
64 | <fieldset id="affined_search"> |
||
65 | <legend>$name_search_filters</legend> |
||
66 | <div> |
||
67 | <div class="field box halfwidth float_left"> |
||
68 | !!-- categories --> |
||
69 | <label for="search_category">$name_search_category</label> |
||
70 | !formselect search_category list $slist prompt $plist |
||
71 | </div> |
||
72 | <div class="field box halfwidth float_left"> |
||
73 | !!-- search type --> |
||
74 | <label for="search_and">$name_search_method</label> |
||
75 | !default search_and=no |
||
76 | !formselect search_and list yes,no prompt $name_search_and |
||
77 | </div> |
||
78 | <div class="field box fullwidth"> |
||
79 | !!-- language --> |
||
80 | <label for="search_lang">$wims_name_Language</label> |
||
12539 | obado | 81 | !readproc languages |
11654 | obado | 82 | !set L_language=!words2items $wims_site_languages |
83 | !for site_lang in $L_language |
||
84 | !set lang_prompt=!append item $(Lang_name_$site_lang) ($site_lang) to $lang_prompt |
||
85 | !next |
||
86 | !formselect search_lang list $L_language prompt $lang_prompt |
||
87 | </div> |
||
88 | |||
89 | <div class="field box fullwidth"> |
||
90 | <strong>$wims_name_level</strong> |
||
91 | !if $jquery_defined=yes |
||
92 | !read adm/search_engine/level_form.phtml |
||
93 | !else |
||
94 | <div class="search_level_list"> |
||
95 | !formcheckbox search_level list $listlevel prompt $Listlevel |
||
96 | </div> |
||
97 | !endif |
||
98 | </div> |
||
11655 | bpr | 99 | !!<div class="field box fullwidth"> |
11654 | obado | 100 | !!finally Lang will be add to the searchlevel automatically for the moment |
11655 | bpr | 101 | !!<strong>$name_search_leveltrans</strong> |
102 | !!!default search_leveltrans=1 |
||
103 | !!!formradio search_leveltrans list 1,0 prompt $wims_name_yes, $wims_name_no |
||
104 | !!<div class="formHelp">$name_search_leveltrans_help</div> |
||
105 | !!</div> |
||
11397 | obado | 106 | </div> |
11654 | obado | 107 | </fieldset> |
13304 | obado | 108 | !formend |
11384 | obado | 109 | </fieldset> |
13304 | obado | 110 | !if $wims_class!=$empty |
111 | <div class="wimscenter"> |
||
112 | !set wims_ref_class=text_icon glossary |
||
113 | !href module=adm/tool/glossary&gl=0 $wims_name_Glossary |
||
114 | </div> |
||
115 | !endif |
||
11390 | bpr | 116 | |
11266 | obado | 117 | !if $jquery_defined=yes |
11261 | obado | 118 | <script type="text/javascript" src="scripts/js/interface/search_engine.js"></script> |
119 | !endif |
||
6939 | obado | 120 | |
5988 | bpr | 121 | <!-- end adm/search_engine/form.phtml --> |
1532 | guerimand | 122 | !set srchl=$search_keywords |
11483 | bpr | 123 | !reset search_category search_keywords search_level |