Subversion Repositories wimsdev

Rev

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

Rev 12714 Rev 14407
Line 7... Line 7...
7
!set wims_incremental=1
7
!set wims_incremental=1
8
 
8
 
9
!! to center the text in the cells
9
!! to center the text in the cells
10
!default table_center=center
10
!default table_center=center
11
!default table_spacer=yes
11
!default table_spacer=yes
-
 
12
!default table_scroll=yes
12
 
13
 
13
!if $table_spacer=yes
14
!if $table_spacer=yes
14
  !set table_spacer_class=<br class="spacer" />
15
  !set table_spacer_class=<br class="spacer" />
-
 
16
!else
-
 
17
  !reset table_spacer_class
-
 
18
!endif
-
 
19
!if $table_scroll=yes
-
 
20
  !set scroll_class=class="table-scroll"
-
 
21
!else
-
 
22
  !reset scroll_class
15
!endif
23
!endif
16
 
24
 
17
!set table_header=!nosubst $table_spacer_class\
25
!set table_header=!nosubst $table_spacer_class\
-
 
26
<div $scroll_class>\
18
<table class="wimstable $table_class" style="text-align:$table_center;" id="$table_id">
27
<table class="wimstable $table_class" style="text-align:$table_center;" id="$table_id">
19
!set table_end=!nosubst </table>$table_spacer_class
28
!set table_end=!nosubst </table></div>$table_spacer_class
20
!set table_hdtr=<tr data-sort-method="thead">
29
!set table_hdtr=<tr data-sort-method="thead">
21
!set table_colors=odd,even
30
!set table_colors=odd,even
22
!set table_tr=!nosubst <tr class="$(table_colors[$wims_incremental%2+1])">
31
!set table_tr=!nosubst <tr class="$(table_colors[$wims_incremental%2+1])">
23
 
32
 
24
!reset table_spacer,table_class,table_id
33
!reset table_spacer,table_class,table_id,table_scroll