Subversion Repositories wimsdev

Rev

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

Rev 11601 Rev 11634
Line 98... Line 98...
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
102
    <p>$RE_found2</p>
102
    <p>$RE_found2</p>
103
    !if $jquery_defined=yes
103
    !if $jquery_defined=yes and $s_category isitemof A,T
104
      <script type="text/javascript">
104
      <script type="text/javascript">
105
        /*<![CDATA[*/
105
        /*<![CDATA[*/
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=A
116
      !if $s_category=A
-
 
117
        !set list_tabs = X,D,T,R,M,S,C,P
-
 
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
116
   <ul>
125
      <ul>
117
   !for cat in X,D,T,R,M,S,C
126
        !for cat in $list_tabs
118
    !if $(gotcnt$cat)>0
127
          !if $(gotcnt$cat)>0
119
      <li>
128
            <li>
120
       <a href="#content_$cat">
129
              <a href="#content_$cat">
121
         $(CC_$cat) ($(gotcnt$cat))</a>
130
              $(CC_$cat) ($(gotcnt$cat))</a>
-
 
131
            </li>
-
 
132
          !endif
-
 
133
        !next
122
       </li>
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
-
 
143
  !else
-
 
144
    !! tt is used in lang/names.$lang
-
 
145
    !if $s_category notin CS
-
 
146
      !set tt=<p class="wims_emph">$(CC_$s_category)</p>
123
    !endif
147
    !endif
124
   !next
-
 
125
   !if $gotcnt1 >0
-
 
126
     <li >
-
 
127
      <a href="#content_P">
-
 
128
      $(CC_P) ($gotcnt1)</a>
-
 
129
      </li>
-
 
130
   !endif
-
 
131
   </ul>
-
 
132
   !for cat in X,D,T,R,M
-
 
133
     !if $(gotcnt$cat) >0
-
 
134
       <div id="content_$cat">
-
 
135
         <p class="wims_emph">$(CC_$cat)</p>
148
    <p class="wims_emph">$(CC_$s_category)</p>
136
         !read result.A $cat
149
    !read result.A $s_category
137
       </div> <!-- end C_$cat -->
-
 
138
     !endif
150
  !endif
139
   !next
-
 
140
 
151
 
141
 !else
152
  !if $Gotcnt=0
142
!! tt is used in lang/names.$lang
-
 
143
  !if $s_category notin CS
153
    !read result.A
144
   !set tt=<p class="wims_emph">$(CC_$s_category)</p>
-
 
145
  !endif
154
  !endif
146
   <p class="wims_emph">$(CC_$s_category)</p>
-
 
147
       !read result.A $s_category
-
 
148
 !endif
-
 
149
 !if $Gotcnt=0
-
 
150
  !read result.A
-
 
151
 !endif
-
 
152
 
155
 
153
 !if $gotcntS > 0
156
 !if $gotcntS > 0
154
  <div id="content_S">
157
  <div id="content_S">
155
    <p class="wims_emph">$CC_S</p>
158
    <p class="wims_emph">$CC_S</p>
156
    !read result.S
159
    !read result.S