Subversion Repositories wimsdev

Rev

Rev 14407 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2524 bpr 1
!distribute item $wims_ref_bgcolor,$wims_ref_bgcolor,#DCDCDC,#FCFCF0,\
1108 czzmrn 2
	0,1,3\
3
	into\
4
	table_scolor,table_bgcolor,table_color1,table_color2,\
5
	table_border,table_cellspacing,table_cellpadding
6
 
7
!set wims_incremental=1
10822 bpr 8
 
8053 bpr 9
!! to center the text in the cells
6123 bpr 10
!default table_center=center
9721 bpr 11
!default table_spacer=yes
14407 obado 12
!default table_scroll=yes
9724 bpr 13
 
9721 bpr 14
!if $table_spacer=yes
17170 bpr 15
  !set table_spacer_class=<br class="spacer">
14407 obado 16
!else
17
  !reset table_spacer_class
9721 bpr 18
!endif
14407 obado 19
!if $table_scroll=yes
20
  !set scroll_class=class="table-scroll"
21
!else
22
  !reset scroll_class
23
!endif
8053 bpr 24
 
9721 bpr 25
!set table_header=!nosubst $table_spacer_class\
14407 obado 26
<div $scroll_class>\
12405 guerimand 27
<table class="wimstable $table_class" style="text-align:$table_center;" id="$table_id">
14407 obado 28
!set table_end=!nosubst </table></div>$table_spacer_class
12714 bpr 29
!set table_hdtr=<tr data-sort-method="thead">
1867 bpr 30
!set table_colors=odd,even
31
!set table_tr=!nosubst <tr class="$(table_colors[$wims_incremental%2+1])">
9721 bpr 32
 
14407 obado 33
!reset table_spacer,table_class,table_id,table_scroll