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

39 lines
637 B
PHP
Raw Permalink Normal View History

2014-12-01 07:22:08 +00:00
<?php
$this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Dictionary');
?>
<h1><?=Yii::t('app', 'Dictionary')?></h1>
<p>
2014-12-05 04:17:44 +00:00
<?php
if ($model->resultExists())
{
echo str_replace('{n}', $model->getDataProvider()->itemCount, Yii::t('dict', '{n} records found.'));
}
else
{
}
?>
2014-12-01 07:22:08 +00:00
</p>
<?php
if ($model->resultExists())
{
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$model->getDataProvider(),
'itemView'=>'_dictionaryResultView',
'template'=>"{items}\n{pager}",
'viewData'=>array( 'request' => $model->request ),
));
}
?>
</div><!-- form -->