See the details here
<?php
foreach ($this->headings as $key=>$label) {
if (substr( $key, 0, strlen('fabrik_')) !== 'fabrik_'){
?>
<label>
<input checked="checked" type="checkbox" value="<?php echo $key?>" class="togglecolumns" />
<?php echo strip_tags($label) ?>
</label><br/>
<?php
}
}?>
<script><!--
window.addEvent('domready', function(){
//check initial state
$$('.togglecolumns').each(function(i){
if(i.getProperty('checked')){
$$('.'+i.value+'_heading').setStyle('display', _);
$$('.fabrik_row___'+i.value).setStyle('display', _);
} else {
$$('.'+i.value+'_heading').setStyle('display', 'none');
$$('.fabrik_row___'+i.value).setStyle('display', 'none');
}
});
$$('.togglecolumns').addEvent('click', function(e){
e = new Event(e);
var i = $(e.target);
if(i.getProperty('checked')){
$$('.'+i.value+'_heading').setStyle('display', '');
$$('.fabrik_row___'+i.value).setStyle('display', '');
} else {
$$('.'+i.value+'_heading').setStyle('display', 'none');
$$('.fabrik_row___'+i.value).setStyle('display', 'none');
}
});
});
--></script>
<script><!--
window.addEvent('domready', function(){
//check initial state
$$('.togglecolumns').each(function(i){
if(i.getProperty('checked')){
$$('.'+i.value).setStyle('display', '');
} else {
$$('.'+i.value).setStyle('display', 'none');
}
});
$$('.togglecolumns').addEvent('click', function(e){
e = new Event(e);
var i = $(e.target);
if(i.getProperty('checked')){
$$('.'+i.value).setStyle('display','');
} else {
$$('.'+i.value).setStyle('display', 'none');
}
});
});
--></script>
<style type="text/css"><!--
.ulcustom {
float: left;
width: 100em; /* change this width according to your template - this results in 4 columns for me */
margin: 0;
padding: 0;
list-style: none;
}
.licustom {
float: left;
width: 16em;
margin: 0;
padding-top:20px;
padding-left:20px;
}
--></style>
<ul class="ulcustom">
<?php
foreach ($this->headings as $key=>$label) {
if (substr( $key, 0, strlen('fabrik_')) !== 'fabrik_'){
?>
<li class="licustom">
<label>
<input type='checkbox' checked="checked" value='<?php echo $key?>' class='togglecolumns' />
<?php echo strip_tags($label) ?>
</label>
</li>
<?php
}
}?>
</ul>