public function loadModel($id)
 {
     $model = ProMasterOutdoorIndoorSpace::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
示例#2
0
                      
                        </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'));
?>
                        <div class="group-4 T_row_checkbox_step2">
                            <div>
                                <?php 
echo $form->checkboxList($model, 'outdoor_indoor_space_json', ProMasterOutdoorIndoorSpace::getDropdownList(), array('separator' => '', 'template' => '<div class="T_checkbox_list_step2">{input}{label}</div>'));
?>
                              
                            </div>
                        </div>
                         <div class="clearfix"></div>
                        <?php 
echo $form->error($model, 'outdoor_indoor_space_json', array('class' => 'class-error'));
?>
                       
                    </div>
                    
                    <div class="in-row clearfix">
                        <?php 
echo $form->labelEx($model, 'furnishing_included_json', array('class' => 'lb'));
?>
示例#3
0
 protected static function parseOutdoor($dom)
 {
     $result = array();
     $list = ProMasterOutdoorIndoorSpace::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);
 }