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


PHP Listing::FormatNameListingIndexGrid方法代码示例

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


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

示例1: array

<?php

/* @var $model Listing */
$f = Yii::app()->format;
$urlReturn = "http://" . $_SERVER['HTTP_HOST'] . Yii::app()->request->requestUri;
$link = Yii::app()->createAbsoluteUrl('site/login', array('returnUrl' => $urlReturn));
$propUrl = $this->createAbsoluteUrl('site/listingdetail', array('slug' => $model->slug));
$propName = StringHelper::limitStringLength(Listing::FormatNameListingIndexGrid($model, array('not_type' => 1)), 22);
$propAddr = StringHelper::limitStringLength(strip_tags(Listing::FormatShowBuildingOrStreet($model)), 30);
$sp = $model->rUser;
$linkAgent = $this->createUrl('/agent/view', array('slug' => $model->rUser->slug));
// shortlist js
$uId = (int) Yii::app()->user->id;
$rId = (int) Yii::app()->user->role_id;
$roleMember = ROLE_REGISTER_MEMBER;
$url = Yii::app()->createAbsoluteUrl('site/addShortlist');
Yii::app()->clientScript->registerScript('shortlist-add-button', "setupShortList({ \n\tuserId: {$uId},\n\troleId: {$rId},\n\troleMember: {$roleMember},\n\taddShortListUrl: '{$url}'\n});");
// add this button
Yii::app()->clientScript->registerScriptFile("//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-56133df5326f44f0", CClientScript::POS_END, array('async' => 'async'));
?>
<div class="col-sm-6 col-md-4">
	<div class="property-item">
		<div class="image">
			<div class="img-rad">
				<?php 
echo InputHelper::holderImage($model->getDefaultImageUrl(266, 161), 266, 161);
?>
			</div>
			<div class="price">
				<span class="head">
					<span class="tail">
开发者ID:jasonhai,项目名称:onehome,代码行数:31,代码来源:_property-item.php

示例2: echo

    echo $link;
    ?>
" href="javascript:void(0);" data-listing-id="<?php 
    echo $data->id;
    ?>
" class="ico-star shortlist">Shortlist</a></p>
            <?php 
}
?>
			
			<p style="margin-bottom: 10px">&nbsp;<i class="fa fa-eye fa-lg"></i>&nbsp;&nbsp;
				<?php 
echo (int) $data->view_count;
?>
 views</p>
			<div class="addthis_native_toolbox" data-title="<?php 
echo Listing::FormatNameListingIndexGrid($data, array('not_type' => 1));
?>
"
				 accesskey=""data-url="<?php 
echo $this->createAbsoluteUrl('site/listingdetail', array('slug' => $data->slug));
?>
"></div>
        </div>
        <div class="description">
            <h3>
				<a href="<?php 
echo Yii::app()->createAbsoluteUrl('site/listingdetail', array('slug' => $data->slug));
?>
">
                    <?php 
开发者ID:jasonhai,项目名称:onehome,代码行数:31,代码来源:list_item.php


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