public function loadModel($id)
 {
     $model = ProMasterFurnished::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
 
	</div>
	<div class="form-group">
		<?php 
echo $form->labelEx($model, 'of_bathrooms_from', array('class' => 'control-label', 'label' => '# of Bathrooms'));
?>
		<?php 
echo $form->textField($model, 'of_bathrooms_from', array('class' => 'form-control', 'placeholder' => ''));
?>
		<?php 
echo $form->error($model, 'of_bathrooms_from');
?>
 
	</div>
	<div class="form-group checklist">
		<?php 
echo $form->labelEx($model, 'type_selling', array('class' => 'control-label'));
?>
			<?php 
echo $form->radioButtonlist($model, 'type_selling', array('Tenancy' => 'Tenancy', 'Vacant possession' => 'Vacant possession', 'Both' => 'Both'), array('separator' => '', 'container' => 'span', 'template' => '<span class="radio-inline">{input}{label}</span>', 'uncheckValue' => null));
?>
                       
		<?php 
echo $form->error($model, 'type_selling');
?>
 
	</div>
    
	<div class="clearfix" style="display: none;" id="tenancy-content-bankrequest">
		<div class="form-group">
			<?php 
 public static function getInforFurnishedBYId($id, $field = 'name')
 {
     $model = ProMasterFurnished::model()->findByPk($id);
     if ($model) {
         return $model->{$field};
     }
 }
Exemple #4
0
echo $form->error($model, 'availability');
?>
                <div class="availability_date display_none">
                <?php 
Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
$this->widget('CJuiDateTimePicker', array('language' => 'en-GB', 'model' => $model, 'attribute' => 'tenancy_expiry_datepicker', 'mode' => 'date', 'options' => array('dateFormat' => 'd-M-yy', 'regional' => 'en_us', 'changeMonth' => true, 'changeYear' => true, 'showOn' => 'button', 'buttonImage' => Yii::app()->theme->baseUrl . '/img/ico-calendar.png', 'buttonImageOnly' => true, 'yearRange' => '1900'), 'htmlOptions' => array('readonly' => 'true', 'id' => 'anhdung_fix_datepicker', 'style' => 'width:195px;', 'class' => 'text w-6')));
?>
                </div>
            </div>

            <div class="anhdung_Landlord">
                <?php 
echo $form->labelEx($model, 'furnished', array('class' => 'lb'));
?>
                <?php 
echo $form->dropDownList($model, 'furnished', ProMasterFurnished::getListData('enquiry'), array('empty' => 'All Furnished'));
?>
                <?php 
echo $form->error($model, 'furnished');
?>
                   
            </div>

        <!--</div>-->
        
        <!--<div id="renttype2" class="rent-content-tenant" style="display:none;">-->

            <div class="anhdung_Tenant">
                <?php 
echo $form->labelEx($model, 'price', array('label' => 'Price', 'class' => 'lb'));
?>
Exemple #5
0
echo $data->rUser->name_for_slug;
?>
</a> - 
				<strong>Call 
				<?php 
$this->widget('ShortTextWidget', array('text' => Yii::app()->format->formatFullPhone($data->rUser), 'urlOnCLick' => $this->createUrl('/agent/fieldClick', array('id' => $data->rUser->id, 'field' => 'phone'))));
?>
</strong>
			</p>
            <p class="type"><?php 
echo Listing::FormatListedDate($data);
?>
</p>
            <p class="price">S$<?php 
echo $cmsFormater->formatPrice($data->price);
?>
</p>
            <?php 
if ($data->property_type_2 == 42) {
    //property type land
    $sqft = MyFunctionCustom::convertData($data->land_area, 'sqm');
    $sqftcontent = "{$sqft} sqft";
} else {
    $sqft = $data->floor_area;
    $sqm = $data->floor_area;
    if ($data->floor_area_unit == Listing::FLOOR_UNIT_SQM) {
        $sqft = MyFunctionCustom::convertData($data->floor_area, 'sqm');
    }
    if ($data->floor_area_unit == Listing::FLOOR_UNIT_SQFT) {
        $sqm = MyFunctionCustom::convertData($data->floor_area, 'sqft');
    }
Exemple #6
0
<?php

$display_none_s2 = 'display_none';
$display_none_s3 = 'display_none';
if ($model->listing_type == Listing::FOR_RENT) {
    $display_none_s2 = '';
    $display_none_s3 = '';
}
// ANH DUNG MAR 13, 2015
$TypeFurnished = ProMasterFurnished::TYPE_NORMAL;
if (in_array($model->property_type_2, ProPropertyType::$ARR_TYPE_COMMERCIAL)) {
    $TypeFurnished = ProMasterFurnished::TYPE_INDUSTRIAL;
}
$aOptionFurnished = ProMasterFurnished::getListOption($TypeFurnished);
// ANH DUNG MAR 13, 2015
?>
<!--<div class="main-inner-2 T_custom_Step_2">-->
    <div class="box-1 space-3">
        <div class="title"><h3>Details information</h3></div>
        <div class="form-type content"> 
            <div class="in-row clearfix">
                <div class="col-1">
                    <div class="in-row clearfix">
                         <?php 
echo $form->labelEx($model, 'listing_description', array('class' => 'lb'));
?>
                        <div class="group-4">
                        <?php 
$this->widget('ext.niceditor.nicEditorWidget', array("model" => $model, "attribute" => 'listing_description', "defaultValue" => '', "config" => array("maxHeight" => "200px", "buttonList" => Yii::app()->params['niceditor_v_2']), "width" => "700px", "height" => "200px"));
?>
                            <?php 
 protected static function parseFurnished($value)
 {
     $data = CHtml::listData(ProMasterFurnished::model()->findAll(), 'value', 'name');
     $t = array_search(strtolower($value), array_map('strtolower', $data));
     return $t ?: null;
 }
                        <?php 
echo $form->textField($model, 'monthly_rental_amount', array('class' => 'text number_only'));
?>
                        <?php 
echo $form->error($model, 'monthly_rental_amount');
?>
                    </div>
                </div>
                
                <div class="in-row clearfix">
                    <?php 
echo $form->labelEx($model, 'furnished', array('label' => 'Furnished', 'class' => 'lb'));
?>
                    <div class="group">
                        <?php 
echo $form->dropDownList($model, 'furnished', ProMasterFurnished::getListData('enquiry'), array('class' => 'text'));
?>
                        <?php 
echo $form->error($model, 'furnished');
?>
       
                    </div>
                </div>
                
                <div class="in-row clearfix">
                    <?php 
echo $form->labelEx($model, 'target_price', array('class' => 'lb'));
?>
                    <div class="group">
                        <?php 
echo $form->textField($model, 'target_price', array('class' => 'text number_only'));
Exemple #9
0
?>
                        </div>
                        <?php 
echo $form->error($model, 'min_bathroom');
?>
                        <?php 
echo $form->error($model, 'max_bathroom');
?>
                    </div>

                    <?php 
echo $form->labelEx($model, 'furnished', array('label' => 'Furnished', 'class' => 'lb'));
?>
                    <ul class="list-check list-check-2 clearfix">
                        <?php 
echo $form->radioButtonList($model, 'furnished', ProMasterFurnished::getListData(), array('separator' => '  '));
?>
                    </ul>
                    <?php 
echo $form->error($model, 'furnished');
?>

                    <?php 
echo $form->labelEx($model, 'floor_size', array('label' => 'Floor Size', 'class' => 'lb'));
?>
                    <div class="clearfix">
                        <div class="col-1">
                            <?php 
echo $form->dropDownList($model, 'min_floor_size', ProMasterFloor::getListMinimumFloor("enquiry"), array('empty' => 'Minimum'));
?>
                        </div>