<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()));
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'));