<?php 
$form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'enableAjaxValidation'=>false,
        //'type'=>'horizontal',
)); ?>

        <table class="items table table-striped table-bordered table-condensed">
            <tr>
                <th style="width: 4%;"></th>
                <th style="width: 14%;text-align:center;">D&iacute;a</th>
                <th style="text-align:center;">Afianzadora</th>
            </tr>               
                
          <?php foreach ($model as $key => $value) { ?>
                <tr>
                    <td>
                        <?php echo $form->checkBox($value, "[$key]dia", array('onClick'=>'validarSeleccion('.$key.')')); ?>
                    </td>
    
                    <td>
                        <b><?php echo $value->nombreDia[$key];?></b>
                    </td>
                    <td>
                        <b><?php echo $form->dropDownList($value,"[$key]id_afianzadora",  
                                    CHtml::listData(Afianzadora::model()->findAll(array('order'=>'descripcion asc')), 'id', 'descripcion'),
                                    array('style'=>'width:100%','prompt' => 'Seleccione ')); ?>
                    </td>
                   
               </tr>
         <?php }?>
          </table>

  
<?php $this->endWidget(); ?>
