protected\modules\formdesigner\models\HFormEditor.php(310)
- Код: Выделить всё
298
299 break;
300
301 case FormDesigner::TYPE_REFERENCE:
302 echo CHtml::activeDropDownList($model, $row['field'], CMap::mergeArray(array("" => Yii::t('common', 'Please select')), FormDesigner::getListByCategoryID($row->reference_id)), array('class' => 'span3'));
303 break;
304
305
306 case FormDesigner::TYPE_MULTY:
307 $refs = $model->references[$row->reference_id]['values'];
308
309 echo '<div class="apartment-description-multy"><ul class="no-disk">';
310 foreach ($refs as $id => $ref) {
311 echo '<li>';
312 echo CHtml::checkBox('category['.$row->reference_id.']['.$id.']', (isset($model->references) && isset($model->references[$row->reference_id]['values'][$id]['selected'])) ?
313 $model->references[$row->reference_id]['values'][$id]['selected'] : 0, array('class'=>'s-categorybox'));
314 echo ' '.CHtml::label($ref['title'], 'category_'.$row->reference_id.'_'.$id);
315 echo '</li>';
316 }
317 echo '</ul></div>';
318 break;
319 }
320 echo '</div>';
321 }
322 }
Stack Trace\protected\modules\apartments\views\backend\__form_general.php(8): HFormEditor::renderFormRows(array(FormDesigner, FormDesigner, FormDesigner, FormDesigner, ...), Apartment, CustomForm, null)
- Код: Выделить всё
03 <?php
04
05 echo CHtml::hiddenField('is_update', 0);
06
07 $rows = HFormEditor::getGeneralFields();
08 HFormEditor::renderFormRows($rows, $model, $form, $seasonalPricesModel);
09
10 echo '<br/>';
11
12 if ($model->type == Apartment::TYPE_CHANGE) {
13 echo '<div class="clear"> </div>';