echo $form->labelEx($model, 'verprecios'); ?> <?php echo $form->checkBox($model, 'verprecios'); ?> <?php echo $form->error($model, 'verprecios'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'codmon'); ?> <?php $datos = CHTml::listdata(Monedas::model()->FindAll(array("order" => "desmon ASC")), 'codmoneda', 'desmon'); ?> <?php echo $form->DropdownList($model, 'codmon', $datos, array('empty' => '--Seleccione moneda--')); ?> <?php echo $form->error($model, 'codmon'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'novalorado'); ?> <?php echo $form->checkBox($model, 'novalorado');
<table class="table table-bordered" id="tablai"> <thead> <tr> <th>Aporte</th> <th>Moneda</th> <th>Valor</th> <th>Cantidad</th> </tr> </thead> <tbody id="bodya"> <?php if (isset($_SESSION['aporte'])) { for ($i = 1; $i < count($_SESSION['aporte']); $i++) { $aporteA = explode('.', $_SESSION['aporte'][$i]); $moneda = Monedas::model()->find('idMoneda=' . $aporteA[1]); echo '<tr id=a' . $i . '>'; echo '<td>' . $aporteA[0] . '</td>'; echo '<td>' . $moneda->descripcionMoneda . '</td>'; echo '<td>' . $aporteA[2] . '</td>'; echo '<td>' . $aporteA[3] . '</td>'; echo '</tr>'; } } ?> </tbody> </table> </div> </ul>