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