framework/zii/widgets/CBaseListView.php
public function renderSummary()
	{
		if(($count=$this->dataProvider->getItemCount())<=0)
			return;

		echo CHtml::openTag($this->summaryTagName, array('class'=>$this->summaryCssClass));
		if($this->enablePagination)
		{
			$pagination=$this->dataProvider->getPagination();
			$total=$this->dataProvider->getTotalItemCount();
			$start=$pagination->currentPage*$pagination->pageSize+1;
			$end=$start+$count-1;
			if($end>$total)
			{
				$end=$total;
				$start=$end-$count+1;
			}
			if(($summaryText=$this->summaryText)===null)
				$summaryText=Yii::t('zii','Displaying {start}-{end} of 1 result.|Displaying {start}-{end} of {count} results.',$total);
			echo strtr($summaryText,array(
				'{start}'=>$start,
				'{end}'=>$end,
				'{count}'=>$total,
				'{page}'=>$pagination->currentPage+1,
				'{pages}'=>$pagination->pageCount,
			));
		}
		else
		{
			if(($summaryText=$this->summaryText)===null)
				$summaryText=Yii::t('zii','Total 1 result.|Total {count} results.',$count);
			echo strtr($summaryText,array(
				'{count}'=>$count,
				'{start}'=>1,
				'{end}'=>$count,
				'{page}'=>1,
				'{pages}'=>1,
			));
		}
		echo CHtml::closeTag($this->summaryTagName);
	}
public function renderSummary()
	{
		if(($count=$this->dataProvider->getItemCount())<=0)
			return;

		echo CHtml::openTag($this->summaryTagName, array('class'=>$this->summaryCssClass));
		if($this->enablePagination)
		{
			$pagination=$this->dataProvider->getPagination();
			$total=$this->dataProvider->getTotalItemCount();
			$start=$pagination->currentPage*$pagination->pageSize+1;
			$end=$start+$count-1;
			if($end>$total)
			{
				$end=$total;
				$start=$end-$count+1;
			}
			if(($summaryText=$this->summaryText)===null)
				$summaryText=Yii::t('zii','Displaying {start}-{end} of 1 result.|Displaying {start}-{end} of {count} results.',$total);
			echo strtr($summaryText,array(
				'{start}'=>$start,
				'{end}'=>$end,
				'{count}'=>$total,
				'{page}'=>$pagination->currentPage+1,
				'{pages}'=>$pagination->pageCount,
			));
		}
		else
		{
			if(($summaryText=$this->summaryText)===null)
				$summaryText=Yii::t('zii','Total 1 result.|Total {count} results.',$count);
			echo strtr($summaryText,array(
				'{count}'=>$count,
				'{start}'=>1,
				'{end}'=>$count,
				'{page}'=>1,
				'{pages}'=>1,
			));
		}
		echo CHtml::closeTag($this->summaryTagName);
	}
public function renderSummary ( ) { if ( ( $ count = $ this -> dataProvider -> getItemCount ( ) ) <= 0 ) return ; echo CHtml :: openTag ( $ this -> summaryTagName , array ( 'class' => $ this -> summaryCssClass ) ) ; if ( $ this -> enablePagination ) { $ pagination = $ this -> dataProvider -> getPagination ( ) ; $ total = $ this -> dataProvider -> getTotalItemCount ( ) ; $ start = $ pagination -> currentPage * $ pagination -> pageSize + 1 ; $ end = $ start + $ count - 1 ; if ( $ end > $ total ) { $ end = $ total ; $ start = $ end - $ count + 1 ; } if ( ( $ summaryText = $ this -> summaryText ) === null ) $ summaryText = Yii :: t ( 'zii' , 'Displaying {start}-{end} of 1 result.|Displaying {start}-{end} of {count} results.' , $ total ) ; echo strtr ( $ summaryText , array ( '{start}' => $ start , '{end}' => $ end , '{count}' => $ total , '{page}' => $ pagination -> currentPage + 1 , '{pages}' => $ pagination -> pageCount , ) ) ; } else { if ( ( $ summaryText = $ this -> summaryText ) === null ) $ summaryText = Yii :: t ( 'zii' , 'Total 1 result.|Total {count} results.' , $ count ) ; echo strtr ( $ summaryText , array ( '{count}' => $ count , '{start}' => 1 , '{end}' => $ count , '{page}' => 1 , '{pages}' => 1 , ) ) ; } echo CHtml :: closeTag ( $ this -> summaryTagName ) ; }
Renders the summary text.
Renders the summary text .