<?php $form = $this->beginWidget('CActiveForm', array('id' => 'imagesdetail-form', 'htmlOptions' => array('enctype' => 'multipart/form-data'), 'enableAjaxValidation' => false)); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> <div class="control-group"> <?php echo $form->labelEx($model, 'albumid'); ?> <?php echo $form->dropDownList($model, 'albumid', Albumimages::loadAllData()); ?> <?php echo $form->error($model, 'albumid'); ?> </div> <div class="control-group"> <?php echo $form->labelEx($model, 'name'); ?> <?php echo $form->textField($model, 'name', array('size' => 255, 'maxlength' => 255)); ?> <?php echo $form->error($model, 'name');