Example #1
0
     if ($mTransCommission->status == STATUS_GEN_RECEIPT) {
         $res = $cmsFormater->formatPrice($mTransCommission->received_commission);
     }
     return $res;
 }
Example #2
0
<?php

$this->breadcrumbs = array('Bank  Evaluation Report' => array('index'), $model->property_name_or_address);
$menus = array(array('label' => 'Bank Evaluation Report', 'url' => array('index')), array('label' => 'Delete', 'url' => array('delete'), 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')));
$this->menu = ControllerActionsName::createMenusRoles($menus, $actions);
$PropertyTypeList = ProPropertyType::FormatViewProperyType($model);
?>

<h1>View Bank Evaluation Report: <?php 
echo $model->property_name_or_address;
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('property_name_or_address', 'postal_code', array('name' => 'unit_from', 'value' => $model->unit_from . " - {$model->unit_to}"), array('name' => 'location_id', 'value' => ProLocation::getNameWithDistrict($model->location_id)), array('name' => 'property_type_id', 'type' => 'html', 'value' => $PropertyTypeList), 'tenure', array('name' => 'furnished', 'value' => $model->furnished ? $model->furnished->name : ""), 'of_bedroom_from', 'of_bathrooms_from', 'type_selling', 'floor_area', array('name' => 'tenancy_expiry_date', 'type' => 'TenancyExpiryDate', 'value' => $model), 'monthly_rental_amount', array('name' => 'target_price', 'type' => 'NumberOnly'), 'remark', 'nric', 'fullname', 'contact_no', 'email', 'target_price:Price')));
Example #3
0
         if ($model->user_id == Yii::app()->user->id) {
             $model->delete();
         }
     }
 }
 /**
  * @Author: ANH DUNG Jul 25, 2014
  * @Todo: build li photo for inventory photo
  * @Param: $model model 
  * @Return: string li
  */
 public function builLiPhoto($model)
 {
     $file_path = ImageProcessing::bindImageByModel($model, 160, 160);
     $pathPhotoBig = ImageProcessing::bindImageByModel($model, -1, -1);
     $link_remove = Yii::app()->createAbsoluteUrl('enquiry/ajaxRemoveFileAll', array('id' => $model->id));
     if (isset($_GET['admin'])) {
         $link_remove = Yii::app()->createAbsoluteUrl('admin/tenancy/inventoryPhoto', array('id' => $model->transaction_id, 'InventoryPhotoId' => $model->id));
     }
     $res = "";
     $res .= "<li>";
     $res .= "<a href='{$pathPhotoBig}' class='FancyPhoto' rel='group'>";