public function loadModel($id)
 {
     $model = ProMasterSpecialFeatures::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Example #2
0
    }
    ?>
                                                <?php 
}
?>
                                            </ul>
                                        </div>
                                    </div>
                                </div><!-- ico-bg -->

                                <?php 
$model->special_feature_json = json_decode($model->special_feature_json);
$model->fixtures_fittings_json = json_decode($model->fixtures_fittings_json);
$model->outdoor_indoor_space_json = json_decode($model->outdoor_indoor_space_json);
$model->furnishing_included_json = json_decode($model->furnishing_included_json);
$special_feature_json = ProMasterSpecialFeatures::getListOption($model->special_feature_json);
$fixtures_fittings_json = ProMasterFixturesFittings::getListOption($model->fixtures_fittings_json);
$aOutdoorIndoor = MyFormat::getListOption($model->outdoor_indoor_space_json, 'ProMasterOutdoorIndoorSpace');
$aFurnishingIncluded = MyFormat::getListOption($model->furnishing_included_json, 'ProMasterFurnishingIncluded');
?>
                                
                                <?php 
if (count($special_feature_json)) {
    ?>
                                <div class="ico-bg">
                                    <h3><?php 
    echo $model->getAttributeLabel('special_feature_json');
    ?>
</h3>
                                    <div class="info-list">
                                        <ul class="list-unstyled">
Example #3
0
?>
 
                            <?php 
echo $form->error($model, 'of_bathrooms');
?>
                        </div>
                    </div>
                    
                    <div class="in-row clearfix">
                        <?php 
echo $form->labelEx($model, 'special_feature_json', array('class' => 'lb'));
?>
                        <div class="group-4 T_row_checkbox_step2">
                            <div>
                                <?php 
echo $form->checkboxList($model, 'special_feature_json', ProMasterSpecialFeatures::getDropdownList(), array('separator' => '', 'template' => '<div class="T_checkbox_list_step2">{input}{label}</div>'));
?>
                              
                            </div>

                        </div>
                        <div class="clearfix"></div>
                        <?php 
echo $form->error($model, 'special_feature_json', array('class' => 'class-error'));
?>
                    </div>
                    
                    
                    
                    <div class="in-row clearfix">
                        <?php 
Example #4
0
 protected static function parseSpecialFeature($dom)
 {
     $result = array();
     $list = ProMasterSpecialFeatures::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);
 }
Example #5
0
                <?php 
echo $form->labelEx($model, 'bathrooms', array('label' => '# of bathrooms', 'class' => 'lb'));
?>
                <?php 
echo $form->textField($model, 'bathrooms', array('class' => 'text', 'placeholder' => 'Enter text'));
?>
                <?php 
echo $form->error($model, 'bathrooms');
?>

                <?php 
echo $form->labelEx($model, 'special_features', array('label' => 'Special Features', 'class' => 'lb'));
?>
                <ul class="list-check list-check-2 clearfix">
                    <?php 
echo $form->radioButtonList($model, 'special_features', ProMasterSpecialFeatures::getListData('enquiry'), array('separator' => '  '));
?>
                </ul>

                <div class="in-row clearfix">
                    <label class="lb">Enquiry</label>
                    <?php 
echo $form->textField($model, 'name', array('class' => 'text', 'placeholder' => 'Name'));
?>
                    <?php 
echo $form->error($model, 'name');
?>
                </div>

                <div class="in-row clearfix">
                    <?php