Subversion Repositories wimsdev

Rev

Rev 14163 | 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
15006 bpr 90
  <div class="wims_emph">
91
  !if $s_category isin P
92
    !set mP=!replace internal wimshome/public_html/modules/ by $ in $module_P
93
    !href module=$mP.$p_lang $(CC_$s_category)
94
  !else
95
    $(CC_$s_category)
96
  !endif
97
  </div>
12821 bpr 98
  !changeto result.$s_category
33 reyssat 99
!endif
7077 obado 100
 
6875 bpr 101
!!arrive here for example if the address of the module has been given in the search_engine
33 reyssat 102
 
6739 bpr 103
!if $Gotcnt=1 and $gotcnt=1
6875 bpr 104
  <div class="RE_found">
12821 bpr 105
  !read result.A
106
  </div>
107
  !exit
6739 bpr 108
!endif
109
 
33 reyssat 110
!if $gottype=search or $gotcnt1=0
11261 obado 111
  !reset tt
112
  !if $test_exist!=$empty
113
    <p>$RE_found2</p>
11634 obado 114
    !if $jquery_defined=yes and $s_category isitemof A,T
11261 obado 115
      <script type="text/javascript">
116
        /*<![CDATA[*/
117
        jQuery(function($$) {
118
            $$("#searchresult").tabs();
119
          });
120
        /*]]>*/
121
      </script>
122
    !endif
123
  !endif
6905 obado 124
 
11634 obado 125
  <div id="searchresult">
12821 bpr 126
  !if $s_category isitemof A,T
127
    !if $s_category=A
128
      !set list_tabs = X,D,T,R,M,S,C,P
129
      !set list_divs = X,D,T,R,M
130
    !endif
131
    !if $s_category=T
132
      !set list_tabs = T,P
133
      !set list_divs = T
134
    !endif
135
    !set gotcntP = $gotcnt1
136
    <ul>
137
    !for cat in $list_tabs
138
      !if $(gotcnt$cat)>0
139
        <li>
140
          <a href="#content_$cat">
141
          $(CC_$cat) ($(gotcnt$cat))</a>
142
        </li>
11634 obado 143
      !endif
12821 bpr 144
    !next
145
    </ul>
146
    !for cat in $list_divs
147
      !if $(gotcnt$cat) >0
148
        <div id="content_$cat">
149
          <p class="wims_emph">$(CC_$cat)</p>
150
        !read result.A $cat
151
        </div> <!-- end C_$cat -->
11634 obado 152
      !endif
12821 bpr 153
    !next
11634 obado 154
  !else
155
    !! tt is used in lang/names.$lang
156
    !if $s_category notin CS
157
      !set tt=<p class="wims_emph">$(CC_$s_category)</p>
6739 bpr 158
    !endif
11634 obado 159
    <p class="wims_emph">$(CC_$s_category)</p>
160
    !read result.A $s_category
161
  !endif
6905 obado 162
 
11634 obado 163
  !if $Gotcnt=0
164
    !read result.A
6570 bpr 165
  !endif
33 reyssat 166
 
12824 bpr 167
  !if $gotcntS > 0
12821 bpr 168
    <div id="content_S">
7077 obado 169
    <p class="wims_emph">$CC_S</p>
170
    !read result.S
12821 bpr 171
    </div> <!-- end C_S -->
12824 bpr 172
  !endif
173
  !if $gotcntC > 0
12821 bpr 174
    <div id="content_C">
7077 obado 175
    <p class="wims_emph">$CC_C</p>
176
    !read result.C
12821 bpr 177
    </div> <!-- end C_C -->
12824 bpr 178
  !endif
6463 bpr 179
 
12821 bpr 180
  !if $s_category isin A,T and $gotcnt1>0
181
    !exchange gotcnt,gotcnt1
182
    !exchange gottype,gottype1
183
    !exchange gotm,gotm1
184
    <div id="content_P">
185
      <p class="wims_emph">$(CC_P)</p>
7077 obado 186
    !read result.P
12821 bpr 187
    </div><!-- end C_P -->
188
  !endif
189
  </div>
33 reyssat 190
!endif