当前位置: 首页>>代码示例>>PHP>>正文


PHP ActiveRecord::getInfoRecord方法代码示例

本文整理汇总了PHP中ActiveRecord::getInfoRecord方法的典型用法代码示例。如果您正苦于以下问题:PHP ActiveRecord::getInfoRecord方法的具体用法?PHP ActiveRecord::getInfoRecord怎么用?PHP ActiveRecord::getInfoRecord使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ActiveRecord的用法示例。


在下文中一共展示了ActiveRecord::getInfoRecord方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: date

                                        <li class="last">Listed on <?php 
if ($model->status_listing == STATUS_LISTING_ACTIVE) {
    echo date('M d,Y', strtotime($model->date_listed));
}
?>
</li>
                                    </ul>               
                            </div>
                            <div style="float:right; width: 400px;">
                                    <ul class="list-2">
                                        <li class="first" style="color:#E2BE3F;font-weight: bold;"><?php 
echo "S\$" . Yii::app()->format->Price($model->price);
?>
</li>
                                        <li><?php 
echo ActiveRecord::getInfoRecord('ProMasterFloor', $model->floor_area, 'name');
?>
</li>
                                        <li>
                                            <?php 
if (!empty($model->of_bedroom)) {
    echo '<span class="ico-bed">' . $model->of_bedroom . '</span> ';
}
if (!empty($model->of_bathrooms)) {
    echo '<span class="ico-shower">' . $model->of_bathrooms . '</span> ';
}
?>
                                        </li>
                                        <li class="last"><a target='_blank' href="<?php 
echo Yii::app()->createAbsoluteUrl('site/listingdetail', array('slug' => $model->slug));
?>
开发者ID:jasonhai,项目名称:onehome,代码行数:31,代码来源:confrimations.php

示例2: getViewDetailTenure

 public static function getViewDetailTenure($model)
 {
     $res = ActiveRecord::getInfoRecord('ProMasterTenure', $model->tenure, 'name');
     return $res;
 }
开发者ID:jasonhai,项目名称:onehome,代码行数:5,代码来源:Listing.php

示例3: array

<?php

if ($model->type_selling == 'Tenancy') {
    $arrData = array('type_enquiry', array('name' => 'Property Name or Address', 'value' => $model->address), array('name' => 'property_type_id', 'type' => 'html', 'value' => $PropertyTypeList), 'postal_code', array('name' => 'location_id', 'type' => 'raw', 'value' => isset($model->location->name) ? $model->location->name : ''), 'unit', 'tenure', 'floor_area', array('name' => '# of Bedrooms', 'value' => $model->bedrooms), array('name' => '# of bathrooms', 'value' => $model->bathrooms), array('name' => 'type_selling', 'value' => !empty($model->type_selling) ? $model->type_selling : ''), array('name' => 'Tenancy expiry date', 'value' => date('d-m-Y', strtotime($model->tenancy_expiry_datepicker)) . ' - ' . $model->tenancy_expiry_date), array('name' => 'monthly_rental_amount', 'value' => !empty($model->monthly_rental_amount) ? $model->monthly_rental_amount : ''), 'furnished', 'price', 'official_bank_val', array('name' => 'remark', 'type' => 'raw', 'value' => !empty($model->remark) ? $model->remark : ''), 'name', array('name' => 'nric', 'value' => !empty($model->nric) ? $model->nric : ''), 'email', 'phone', array('name' => 'Country', 'value' => ActiveRecord::getInfoRecord('AreaCode', $model->country_id, 'area_name')), array('name' => 'description', 'type' => 'html', 'value' => nl2br(strip_tags($model->description))), 'created_date:dateTime');
} else {
    $arrData = array('type_enquiry', array('name' => 'Property Name or Address', 'value' => $model->address), array('name' => 'property_type_id', 'type' => 'html', 'value' => $PropertyTypeList), 'postal_code', array('name' => 'location_id', 'type' => 'raw', 'value' => isset($model->location->name) ? $model->location->name : ''), 'unit', 'tenure', 'floor_area', array('name' => '# of Bedrooms', 'value' => $model->bedrooms), array('name' => '# of bathrooms', 'value' => $model->bathrooms), array('name' => 'type_selling', 'value' => !empty($model->type_selling) ? $model->type_selling : ''), 'name', array('name' => 'nric', 'value' => !empty($model->nric) ? $model->nric : ''), 'email', 'phone', array('name' => 'Country', 'value' => ActiveRecord::getInfoRecord('AreaCode', $model->country_id, 'area_name')), array('name' => 'description', 'type' => 'html', 'value' => nl2br(strip_tags($model->description))), 'created_date:dateTime');
}
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => $arrData));
开发者ID:jasonhai,项目名称:onehome,代码行数:8,代码来源:_sell.php

示例4: json_decode

<?php

if ($model->rent_type == 'Tenant') {
    $furnishing_include = json_decode($model->furnishing_include, true);
    if (is_array($furnishing_include) && count($furnishing_include) > 0) {
        $arr = CHtml::listData(ProMasterFurnishingIncluded::model()->findAllByAttributes(array("id" => array_unique($furnishing_include))), 'name', 'name');
        $furnishing_include = '- ' . implode('<br>- ', $arr);
    } else {
        $furnishing_include = '';
    }
    $arrayData = array('type_enquiry', 'rent_type', array('name' => 'property_type_id', 'type' => 'html', 'value' => $PropertyTypeList), array('name' => 'location_list_id', 'type' => 'EngageDistrict'), 'price', 'bedrooms', 'floor_size', 'move_in_date', 'of_persons_staying', array('name' => 'remark', 'type' => 'raw', 'value' => !empty($model->remark) ? $model->remark : ''), 'name', 'email', 'occupation', 'phone', array('name' => 'Country', 'value' => ActiveRecord::getInfoRecord('AreaCode', $model->country_id, 'area_name')), array('name' => 'description', 'type' => 'html', 'value' => nl2br(strip_tags($model->description))), 'created_date:dateTime');
} else {
    $arrayData = array('type_enquiry', array('name' => 'Property Name or Address', 'value' => $model->address), 'rent_type', array('name' => 'property_type_id', 'type' => 'html', 'value' => $PropertyTypeList), array('name' => 'location_list_id', 'type' => 'EngageDistrict'), 'postal_code', 'floor_area', 'unit', 'tenure', array('name' => '# of Bedrooms', 'value' => $model->bedrooms), array('name' => '# of bathrooms', 'value' => $model->bathrooms), 'availability', 'furnished', array('name' => 'remark', 'type' => 'raw', 'value' => !empty($model->remark) ? $model->remark : ''), 'name', array('name' => 'nric', 'value' => !empty($model->nric) ? $model->nric : ''), 'email', 'phone', array('name' => 'Country', 'value' => ActiveRecord::getInfoRecord('AreaCode', $model->country_id, 'area_name')), array('name' => 'description', 'type' => 'html', 'value' => nl2br(strip_tags($model->description))), 'created_date:dateTime');
}
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => $arrayData));
开发者ID:jasonhai,项目名称:onehome,代码行数:15,代码来源:_rent.php

示例5: sendMailEnquiryGlobalToAdmin

     * ---------------------------------------------
 */
    public static function sendMailEnquiryGlobalToAdmin($model)
    {
        $aBody = array('{NAME}' => $model->name, '{EMAIL}' => $model->email, '{PHONE}' => $model->phone, '{COUNTRY}' => ActiveRecord::getInfoRecord('AreaCode', $model->country_id, 'area_name'), '{REMARK}' => $model->remark, '{ENQUIRY}' => Yii::app()->controller->renderPartial('application.modules.admin.views.globalEnquiry._enquiry', array('model' => $model), true));
        $aSubject = array('{NAME}' => $model->name, '{EMAIL}' => $model->email);
        CmsEmail::sendmail(EMAIL_ENQUIRY_GLOBAL, $aSubject, $aBody, Yii::app()->params['adminEmail']);
开发者ID:jasonhai,项目名称:onehome,代码行数:7,代码来源:SendEmail.php

示例6: array

<?php

$this->breadcrumbs = array('Company Listing Management' => array('index'), 'view ');
?>
<div class="box-1 space-3">
    <div class="title"><h3>View listing detail</h3></div>
    <div class="content space-5 tempt"> 
        <?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'id' => 'table-company-detail', 'attributes' => array('property_address', 'display_title', 'display_address', array('name' => 'location_id', 'value' => ActiveRecord::getInfoRecord('ProLocation', $model->location_id, 'name')), array('name' => 'property_type', 'value' => ActiveRecord::getInfoRecord('ProPropertyType', $model->property_type, 'name')), array('name' => 'type', 'value' => $model->type == 1 ? 'Sale' : 'Rent'), 'asking_price', 'asking_psf', 'bed_rooms', 'bath_rooms', 'building_name', 'contact_name_no', array('name' => 'Listed By', 'value' => ActiveRecord::getInfoRecord('Users', $model->user_id, 'username')), array('name' => 'dnc_expiry_date', 'value' => date('d-M-Y', strtotime($model->dnc_expiry_date))), array('name' => 'Listed Date', 'value' => date('d-M-Y', strtotime($model->created_date))), array('name' => 'remarks', 'type' => 'html'))));
?>
    </div>
</div>
开发者ID:jasonhai,项目名称:onehome,代码行数:12,代码来源:view.php


注:本文中的ActiveRecord::getInfoRecord方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。