本文整理汇总了PHP中Listing::searchAtIndex方法的典型用法代码示例。如果您正苦于以下问题:PHP Listing::searchAtIndex方法的具体用法?PHP Listing::searchAtIndex怎么用?PHP Listing::searchAtIndex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Listing
的用法示例。
在下文中一共展示了Listing::searchAtIndex方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="title"><h3>Property Search</h3></div>
<div class="content">
<ul class="nav-list">
<li class="<?php
echo $activeForRent;
?>
first"><a href="<?php
echo $forRentUrl;
?>
">For Rent</a></li>
<li class="<?php
echo $activeForSale;
?>
last"><a href="<?php
echo $forSaleUrl;
?>
">For Sale</a></li>
</ul>
</div>
</div>
<?php
$this->widget('PropertySearch');
?>
<?php
$this->widget('AdsBannerMiddleWidget');
$this->endWidget();
?>
<?php
$this->widget('ListingWidget', array('dataProvider' => Listing::searchAtIndex()));
示例2: array
echo CHtml::dropDownList('sortBy', $selectSortBy, Listing::$SORT_BY, array('class' => 'sortBy'));
?>
</div>
<label class="lb">Items per page</label>
<div class="select-2">
<?php
echo CHtml::dropDownList('pageSize', $selectPageSize, Listing::$ITEM_PERPAGE, array('class' => 'pageSize'));
?>
</div>
<div class="pager"><ul></ul></div>
</div>
<?php
$dataProvider = Listing::searchAtIndex();
$widget = $this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'id' => 'listing-grid', 'itemView' => 'list_item', 'viewData' => array('dataProvider' => $dataProvider), 'itemsCssClass' => 'items clearfix', 'ajaxUpdate' => false, 'enablePagination' => true, 'pager' => array('maxButtonCount' => 5, 'header' => false, 'footer' => false, 'prevPageLabel' => 'Previous', 'nextPageLabel' => 'Next', 'lastPageLabel' => '', 'firstPageLabel' => '', 'selectedPageCssClass' => 'active'), 'template' => '{items}{pager}'));
?>
<div class="action-group clearfix">
<label class="lb">Sort By</label>
<div class="select-1">
<?php
echo CHtml::dropDownList('sortBy', $selectSortBy, Listing::$SORT_BY, array('class' => 'sortBy'));
?>
</div>
<label class="lb">Items per page</label>
<div class="select-2">
<?php
echo CHtml::dropDownList('pageSize', $selectPageSize, Listing::$ITEM_PERPAGE, array('class' => 'pageSize'));