chinese-journal/yii/protected/views/site/dictionaryResult.php

33 lines
585 B
PHP

<?php
$this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Dictionary');
?>
<h1><?=Yii::t('app', 'Dictionary')?></h1>
<p><?=Yii::t('app', 'Result page:')?></p>
<?php
echo str_replace('{n}', $model->resultCount(), Yii::t('app', '{n} records found.'));
echo '<BR>';
if ($model->resultCount() !== 0)
{
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$model->getDataProvider(),
'itemView'=>'_dictionaryResultView',
'template'=>"{items}\n{pager}",
'viewData'=>array( 'request' => $model->request ),
));
}
?>
</div><!-- form -->