Subversion Repositories wimsdev

Rev

Rev 11654 | Rev 11658 | 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">
7
  <legend>$name_search_engine</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"
29
             /><button class="wims_button icon_button"
30
                       type="submit"><span class="Searching">$N_Search</span></button>
31
      <span class="text_icon browse" style="margin-left:2em;display:inline-block;">
32
        !href module=adm/browse $wims_name_browse
33
      </span>
34
    </div>
7940 obado 35
 
11397 obado 36
    !if $jquery_defined=yes
11654 obado 37
      !if $wims_class==$empty
38
        !set display_filters=active:false,
39
      !endif
40
 
41
      <script>
42
        $$(function(){
43
          $$("#affined_search").accordion({
44
            collapsible: true,$display_filters
45
            heightStyle: "content"
46
          });
47
        } );
48
      </script>
49
    !endif
50
 
51
    <fieldset id="affined_search">
52
      <legend>$name_search_filters</legend>
53
      <div>
54
        <div class="field box halfwidth float_left">
55
          !!-- categories -->
56
          <label for="search_category">$name_search_category</label>
57
          !formselect search_category list $slist prompt $plist
58
        </div>
59
        <div class="field box halfwidth float_left">
60
          !!-- search type -->
61
          <label for="search_and">$name_search_method</label>
62
          !default search_and=no
63
          !formselect search_and list yes,no prompt $name_search_and
64
        </div>
65
        <div class="field box fullwidth">
66
          !!-- language -->
67
          <label for="search_lang">$wims_name_Language</label>
68
          !set L_language=!words2items $wims_site_languages
69
          !for site_lang in $L_language
70
            !set lang_prompt=!append item $(Lang_name_$site_lang) ($site_lang) to $lang_prompt
71
          !next
72
          !formselect search_lang list $L_language prompt $lang_prompt
73
        </div>
74
 
75
        <div class="field box fullwidth">
76
          <strong>$wims_name_level</strong>
77
          !if $jquery_defined=yes
78
            !read adm/search_engine/level_form.phtml
79
          !else
80
            <div class="search_level_list">
81
              !formcheckbox search_level list $listlevel prompt $Listlevel
82
            </div>
83
          !endif
84
        </div>
11655 bpr 85
        !!<div class="field box fullwidth">
11654 obado 86
            !!finally Lang will be add to the searchlevel automatically for the moment
11655 bpr 87
            !!<strong>$name_search_leveltrans</strong>
88
            !!!default search_leveltrans=1
89
            !!!formradio search_leveltrans list 1,0 prompt $wims_name_yes, $wims_name_no
90
            !!<div class="formHelp">$name_search_leveltrans_help</div>
91
        !!</div>
11397 obado 92
      </div>
11654 obado 93
    </fieldset>
11586 bpr 94
    !formend
11384 obado 95
</fieldset>
11390 bpr 96
 
11266 obado 97
!if $jquery_defined=yes
11261 obado 98
  <script type="text/javascript" src="scripts/js/interface/search_engine.js"></script>
99
!endif
6939 obado 100
 
5988 bpr 101
<!-- end adm/search_engine/form.phtml -->
1532 guerimand 102
!set srchl=$search_keywords
11483 bpr 103
!reset search_category search_keywords search_level