Beispiel #1
0
                        <div class="clearfix"></div>
                        <?php 
echo $form->error($model, 'special_feature_json', array('class' => 'class-error'));
?>
                    </div>
                    
                    
                    
                    <div class="in-row clearfix">
                        <?php 
echo $form->labelEx($model, 'fixtures_fittings_json', array('class' => 'lb'));
?>
                        <div class="group-4 T_row_checkbox_step2">
                            <div>
                                <?php 
echo $form->checkboxList($model, 'fixtures_fittings_json', ProMasterFixturesFittings::getDropdownList(), array('separator' => '', 'template' => '<div class="T_checkbox_list_step2">{input}{label}</div>'));
?>
                              
                            </div>
                      
                        </div>
                        <div class="clearfix"></div>
                        <?php 
echo $form->error($model, 'fixtures_fittings_json', array('class' => 'class-error'));
?>
                    </div>
                    
                    <div class="in-row clearfix">
                        <?php 
echo $form->labelEx($model, 'outdoor_indoor_space_json', array('class' => 'lb'));
?>
 protected static function parseFeature($dom)
 {
     $result = array();
     $list = ProMasterFixturesFittings::getDropdownList();
     foreach ($dom->find('li') as $element) {
         $label = trim($element->plaintext);
         $value = array_search(strtolower($label), array_map('strtolower', $list));
         if ($value) {
             $result[] = $value;
         }
     }
     return json_encode($result);
 }