summaryrefslogtreecommitdiff
path: root/protected/views/search
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/search')
-rw-r--r--protected/views/search/index.php10
-rw-r--r--protected/views/search/results.php22
2 files changed, 32 insertions, 0 deletions
diff --git a/protected/views/search/index.php b/protected/views/search/index.php
new file mode 100644
index 0000000..7b457ef
--- /dev/null
+++ b/protected/views/search/index.php
@@ -0,0 +1,10 @@
+<?php
+$this->breadcrumbs=array(
+ 'Search',
+);?>
+<h1><?php echo $this->id . '/' . $this->action->id; ?></h1>
+
+<p>
+ You may change the content of this page by modifying
+ the file <tt><?php echo __FILE__; ?></tt>.
+</p>
diff --git a/protected/views/search/results.php b/protected/views/search/results.php
new file mode 100644
index 0000000..c1d80e2
--- /dev/null
+++ b/protected/views/search/results.php
@@ -0,0 +1,22 @@
+<?php
+$this->breadcrumbs=array(
+ 'Search'=>array('/search'),
+ 'Results',
+);?>
+<h3><?php echo $this->id . '/' . $this->action->id; ?></h3>
+<?php foreach ($results as $mod => $res) {?>
+ <h6><?php echo $mod ?></h6>
+ <?php
+ $dataProvider = new CArrayDataProvider($res);
+ $this->widget('zii.widgets.CListView', array(
+ 'dataProvider'=>$dataProvider,
+ 'itemView'=>'/cms/'.lcfirst($mod).'/_short', // refers to the partial view named '_post'
+ 'sortableAttributes'=>array(
+ 'name',
+ /*'create_time'=>'Post Time',*/
+ ),
+ ));?>
+<?php }?>
+<p>
+ <pre><?php print_r($results)?></pre>
+</p>