示例#1
0
 public function actionFieldClick($id, $field)
 {
     $agent = ProAgent::model()->findByPk($id);
     if (!$agent || !in_array($field, array('phone', 'email'))) {
         throw new CHttpException(403, 'Permission denied.');
     }
     $f = $field . '_click';
     $agent->{$f} += 1;
     $agent->update($f);
     echo $agent->{$f};
 }
示例#2
0
                            </ul>
                            <?php 
    } elseif (Yii::app()->user->role_id == ROLE_TENANT) {
        ?>

                                <ul>
                                    <li><a href="<?php 
        echo Yii::app()->createAbsoluteUrl('member/tenant/property');
        ?>
">Properties</a></li>
                                    <li><a href="<?php 
        echo Yii::app()->createAbsoluteUrl('member/tenant/myprofile');
        ?>
">My Profile</a></li>
                                    <li><a href="<?php 
        echo Yii::app()->createAbsoluteUrl('member/member_profile/submitTestimonials');
        ?>
">Submit Testimonials</a></li>
                                    <li><a href="<?php 
        echo Yii::app()->createAbsoluteUrl('site/logout');
        ?>
">Logout</a></li>
                                </ul>
                            <?php 
    } elseif (Yii::app()->user->role_id == ROLE_AGENT) {
        ?>

                                <ul>
                                    <li><a href="<?php 
        echo Yii::app()->createAbsoluteUrl('member/dashboard');
        ?>
示例#3
0
文件: home.php 项目: jasonhai/onehome
?>
		</div>
		<div role="tabpanel" class="tab-pane" id="bank-tab">
			<?php 
$this->widget('BlankValuationRequestHomeWidget');
?>
		</div>
	</div>
</div>
<?php 
$this->endWidget();
?>

<div class="green-tab property-tab">
	<!-- Nav tabs -->
	<ul class="nav nav-tabs" role="tablist">
		<li role="presentation"><a href="#sale-tab" aria-controls="home" role="tab" data-toggle="tab">For Sale</a>
		</li>
		<li role="presentation" class="active"><a href="#rent-tab" aria-controls="profile" role="tab" data-toggle="tab">For Rent</a>
		</li>
	</ul>
	<!-- Tab panes -->
	<div class="tab-content">
		<div role="tabpanel" class="tab-pane" id="sale-tab">
			<div class="content-header">
				<h2 class="pull-left"><strong>Latest</strong> Properties</h2>
				<a href="<?php 
echo $this->createUrl('page/index', array('slug' => 'for-sale'));
?>
" class="btn btn-alpha pull-right">View All</a>
			</div>