Lines 12-17
Link Here
|
12 |
// Prepare array of all column headers, incrementing each index by |
12 |
// Prepare array of all column headers, incrementing each index by |
13 |
// two to accomodate control and title columns |
13 |
// two to accomodate control and title columns |
14 |
var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count %]'[% UNLESS ( loop.last ) %],[% END %][% END %]); |
14 |
var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count %]'[% UNLESS ( loop.last ) %],[% END %][% END %]); |
|
|
15 |
console.log(allColumns); |
15 |
for( x=0; x<allColumns.length; x++ ){ |
16 |
for( x=0; x<allColumns.length; x++ ){ |
16 |
allColumns[x] = Number(allColumns[x]) + 2; |
17 |
allColumns[x] = Number(allColumns[x]) + 2; |
17 |
} |
18 |
} |
Lines 71-77
for( x=0; x<allColumns.length; x++ ){
Link Here
|
71 |
|
72 |
|
72 |
<p id="selections"><strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span> |
73 |
<p id="selections"><strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span> |
73 |
[% FOREACH item_header_loo IN item_header_loop %] |
74 |
[% FOREACH item_header_loo IN item_header_loop %] |
74 |
<span class="selected"><input id="checkheader[% item_header_loo.__counter %]" type="checkbox" checked="checked" /> <label for="checkheader[% loop.count %]">[% item_header_loo.header_value %]</label> </span> |
75 |
<span class="selected"><input id="checkheader[% loop.count %]" type="checkbox" checked="checked" /> <label for="checkheader[% loop.count %]">[% item_header_loo.header_value %]</label> </span> |
75 |
[% END %] |
76 |
[% END %] |
76 |
</p> |
77 |
</p> |
77 |
<table id="itemst"> |
78 |
<table id="itemst"> |
78 |
- |
|
|