}) } } $(function(){ $('select.'+resultStepSelectClassName).bind('change',function(){syncResultStep($(this));}); }) </script> <div class="form"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'result-info-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data'))); if (ResultInfo::ACTION_BATCH_OPEN != $actionType) { if (!empty($_GET['step_run'])) { $model->result_step = ResultStepService::handleResultStep($model->result_step); } elseif (!empty($model->id)) { $model->result_step = ResultStepService::getWithResultStep($model->result_step); } } ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->hiddenField($model, 'deleted_file_id', array('value' => '', 'class' => 'deleted_file_id_class')); ?> <?php //lock_version should be the keyword to check if this record has been modified by other action echo $form->hiddenField($model, 'lock_version', array('value' => $model->lock_version)); echo $form->hiddenField($model, 'product_id'); echo $form->hiddenField($model, 'result_step'); echo CHtml::hiddenField('templateTitle');