<?php  
    if ($data['type'] != 'section' ) {
        $name = 'WebGuiPermissions['.$data['name'].']';
        if ($data['disabled'] == '1') {
            $htmlOptions = array('disabled'=>'disabled');
        } else {
            $htmlOptions = array();
        }
        echo Chtml::hiddenField($name,'0',$htmlOptions);
        echo CHtml::checkBox($name,$data['hasPermission'],$htmlOptions);
    }
?> 
