Subversion Repositories wimsdev

Rev

Rev 11634 | Rev 12824 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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