예제 #1
0
 /**
  * <Create By HThoa>
  * <Edit By Jason>
  * Sep 05, 2014 ANH DUNG edit
  * use at propertyfinal/member/tenant/property
  * <TO show list of tenancies in tenant user>
  */
 public function actionProperty()
 {
     try {
         $this->pageTitle = 'List of Tenancies - ' . Yii::app()->params['title'];
         $this->layout = 'application.views.layouts.layout_user';
         if (!isset(Yii::app()->user->id)) {
             $this->redirect(Yii::app()->createAbsoluteUrl('/'));
         }
         $model = ProTransactions::getListTenancies();
         $this->render('property', array('model' => $model));
     } catch (Exception $exc) {
         throw new CHttpException('404', $exc->getMessage());
     }
 }
예제 #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;">