Esempio n. 1
0
 public function actionProperty()
 {
     try {
         $this->pageTitle = 'List of Tenancy - ' . Yii::app()->params['title'];
         $this->layout = 'application.views.layouts.layout_user';
         if (!isset(Yii::app()->user->id)) {
             $this->redirect(Yii::app()->createAbsoluteUrl('/'));
         }
         $model = ProTransactions::getListTenanciesLandlord();
         $engage = ProEngageUs::getListEngage();
         $this->render('property', array('model' => $model, 'engage' => $engage));
     } catch (Exception $exc) {
         throw new CHttpException('404', $exc->getMessage());
     }
 }
Esempio n. 2
0
<?php

$LinkLogout = Yii::app()->createAbsoluteUrl('site/logout');
$LinkSubmitTestimonial = Yii::app()->createAbsoluteUrl('member/member_profile/submitTestimonials');
$LinkEditAccount = '';
if (Yii::app()->user->role_id == ROLE_LANDLORD) {
    // for landlord
    $LinkEditAccount = Yii::app()->createAbsoluteUrl('member/landlord/myprofile');
    $ListOfTenancies = ProTransactions::getListTenanciesLandlord(array('limit' => ProTransactions::LIMIT_PROPERTIES));
    $LinkViewAllTenancies = Yii::app()->createAbsoluteUrl('member/landlord/property');
}
$ListOfProperties = ProEngageUs::getListEngage(array('limit' => ProTransactions::LIMIT_PROPERTIES));
$cmsFormater = new CmsFormatter();
if (Yii::app()->user->role_id == ROLE_TENANT) {
    $LinkEditAccount = Yii::app()->createAbsoluteUrl('member/tenant/myprofile');
    $ListOfTenancies = ProTransactions::getListTenancies(array('limit' => ProTransactions::LIMIT_PROPERTIES));
    $LinkViewAllTenancies = Yii::app()->createAbsoluteUrl('member/tenant/property');
}
$LinkMyshortlist = Yii::app()->createAbsoluteUrl('member/member_profile/myshortlist');
$LinkEngageus = Yii::app()->createAbsoluteUrl('member/member_profile/engageus');
?>

<!--  aside -->
<aside class="sidebar">
    <!-- box -->
    <div class="box-7">
            <div class="user-wrap clearfix">
<!--            <div class="image">
                <img src="img/user.jpg" alt="image" />
            </div>-->
            <div class="content" style="margin-left: 0;">