Subversion Repositories wimsdev

Rev

Rev 12913 | Rev 15381 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 reyssat 1
!nocache
7077 obado 2
 
7084 bpr 3
!if $test_exist!=$empty
4
  !set gottype=search
5
!endif
6
 
7077 obado 7
!if $s_category isin ADTXRPOS
8
  !read adm/search_engine/search_clear.phtml
9
!endif
10
 
10230 bpr 11
!if $error!=$empty and $(ER_$error)!=
12
  <p class="wims_msg alert">
7077 obado 13
   $(ER_$error)
14
   !read adm/search_engine/search_empty.phtml
15
  </p>
33 reyssat 16
!endif
6740 bpr 17
!set tt=<span class="wims_emph">$(CC_A)</span>
7077 obado 18
 
6741 bpr 19
!if $gottype=search and ($Gotcnt>1 or $gotcnt>1)
12821 bpr 20
  !if $Gotcnt<1
21
    !set Gotcnt=$gotcnt
7044 bpr 22
  !endif
12821 bpr 23
  !if $warning notsametext $empty
24
    !set Gotcntplus=!replace internal , by + in $warning
25
  !endif
26
  !set Gotcnt=$[$Gotcntplus+$Gotcnt]
27
  <div class="RE_found">
14163 bpr 28
    $RE_found
7636 bpr 29
   <p class="wimscenter small">$wims_ref_name?$search_adresse</p>
7044 bpr 30
  !if $warning notsametext $empty
7043 bpr 31
    $RE_warning_more
32
  !endif
12821 bpr 33
  </div>
14163 bpr 34
  !if $sheet_inpreparation=0
35
    <div class="wims_msg info">
36
      $wims_name_warning ! $name_nopreparationsheet
37
    </div>
38
  !endif
33 reyssat 39
!else
12821 bpr 40
  !if $s_keywords!=$empty and $Gotcnt<1
41
    <div class="wims_msg info">
42
    $RE_nomatch.
43
    !if $(rel_$s_category)!=$empty and _tool notin $session
44
      <div class="RE_try">
45
      $RE_try
46
      !for i in $(rel_$s_category)
47
        !href module=home&cmd=reply&search_category=$i&search_keywords=$s_keywords $(CC_$i)
48
        &nbsp;
49
      !next i
50
      !if $has_browse=yes
51
        $wims_name_or
52
        !href module=adm/browse&$browse_parm $N_browsesite
53
      !endif has_browse=yes
54
      </div>
55
    !endif $(rel_$s_category)
56
    </div>
57
  !endif $s_keywords!=$empty and _tool notin $session
58
 
59
  !if $s_category isin ADXOTR and $gotcnt1<1 and $gotcnt>0 and $Gotcnt<1
60
    <p class="RE_pop">
61
    !if $list_start>0
62
      !set wims_ref_title = $RE_prev
63
      !href module=home&cmd=reply&list_start=$[$list_start-$list_batch] &lt;&lt;
7077 obado 64
      &nbsp;
12821 bpr 65
      $RE_pop2.
66
    !else
67
      $RE_pop.
68
    !endif
69
    !if $list_start<$list_cc-$list_batch
70
      &nbsp;
71
      !set wims_ref_title = $RE_next
72
      !href module=home&cmd=reply&list_start=$[$list_start+$list_batch] &gt;&gt;
73
    !endif
74
    </p>
75
    !reset list_start
33 reyssat 76
  !else
12821 bpr 77
    !if $s_category isin ADXOTR and $s_keywords=$empty
78
      <p class="wims_msg info">
79
      $RE_noKeyword.
80
      </p>
81
    !endif
82
    !if $s_keywords!=$empty
83
    <p class="wimscenter small">$wims_ref_name?$search_adresse</p>
84
    !endif
33 reyssat 85
  !endif
7077 obado 86
 
33 reyssat 87
!endif
7077 obado 88
 
6620 bpr 89
!if $s_category isin PLSC
12821 bpr 90
  <div class="wims_emph">$(CC_$s_category)</div>
91
  !changeto result.$s_category
33 reyssat 92
!endif
7077 obado 93
 
6875 bpr 94
!!arrive here for example if the address of the module has been given in the search_engine
33 reyssat 95
 
6739 bpr 96
!if $Gotcnt=1 and $gotcnt=1
6875 bpr 97
  <div class="RE_found">
12821 bpr 98
  !read result.A
99
  </div>
100
  !exit
6739 bpr 101
!endif
102
 
33 reyssat 103
!if $gottype=search or $gotcnt1=0
11261 obado 104
  !reset tt
105
  !if $test_exist!=$empty
106
    <p>$RE_found2</p>
11634 obado 107
    !if $jquery_defined=yes and $s_category isitemof A,T
11261 obado 108
      <script type="text/javascript">
109
        /*<![CDATA[*/
110
        jQuery(function($$) {
111
            $$("#searchresult").tabs();
112
          });
113
        /*]]>*/
114
      </script>
115
    !endif
116
  !endif
6905 obado 117
 
11634 obado 118
  <div id="searchresult">
12821 bpr 119
  !if $s_category isitemof A,T
120
    !if $s_category=A
121
      !set list_tabs = X,D,T,R,M,S,C,P
122
      !set list_divs = X,D,T,R,M
123
    !endif
124
    !if $s_category=T
125
      !set list_tabs = T,P
126
      !set list_divs = T
127
    !endif
128
    !set gotcntP = $gotcnt1
129
    <ul>
130
    !for cat in $list_tabs
131
      !if $(gotcnt$cat)>0
132
        <li>
133
          <a href="#content_$cat">
134
          $(CC_$cat) ($(gotcnt$cat))</a>
135
        </li>
11634 obado 136
      !endif
12821 bpr 137
    !next
138
    </ul>
139
    !for cat in $list_divs
140
      !if $(gotcnt$cat) >0
141
        <div id="content_$cat">
142
          <p class="wims_emph">$(CC_$cat)</p>
143
        !read result.A $cat
144
        </div> <!-- end C_$cat -->
11634 obado 145
      !endif
12821 bpr 146
    !next
11634 obado 147
  !else
148
    !! tt is used in lang/names.$lang
149
    !if $s_category notin CS
150
      !set tt=<p class="wims_emph">$(CC_$s_category)</p>
6739 bpr 151
    !endif
11634 obado 152
    <p class="wims_emph">$(CC_$s_category)</p>
153
    !read result.A $s_category
154
  !endif
6905 obado 155
 
11634 obado 156
  !if $Gotcnt=0
157
    !read result.A
6570 bpr 158
  !endif
33 reyssat 159
 
12824 bpr 160
  !if $gotcntS > 0
12821 bpr 161
    <div id="content_S">
7077 obado 162
    <p class="wims_emph">$CC_S</p>
163
    !read result.S
12821 bpr 164
    </div> <!-- end C_S -->
12824 bpr 165
  !endif
166
  !if $gotcntC > 0
12821 bpr 167
    <div id="content_C">
7077 obado 168
    <p class="wims_emph">$CC_C</p>
169
    !read result.C
12821 bpr 170
    </div> <!-- end C_C -->
12824 bpr 171
  !endif
6463 bpr 172
 
12821 bpr 173
  !if $s_category isin A,T and $gotcnt1>0
174
    !exchange gotcnt,gotcnt1
175
    !exchange gottype,gottype1
176
    !exchange gotm,gotm1
177
    <div id="content_P">
178
      <p class="wims_emph">$(CC_P)</p>
7077 obado 179
    !read result.P
12821 bpr 180
    </div><!-- end C_P -->
181
  !endif
182
  </div>
33 reyssat 183
!endif