summaryrefslogtreecommitdiff
path: root/protected/views
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-05-13 16:51:28 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-05-13 16:51:28 +0200
commit94bdb31c204cdae3ca820828d4731f11f6ffeeae (patch)
tree957a63d27379789d808737e6fb8b88ea651d5c1c /protected/views
parenta6cd00ec233d1c7676d75224900ed1543130ac94 (diff)
Suche fast fertig
Diffstat (limited to 'protected/views')
-rw-r--r--protected/views/search/index.php10
-rw-r--r--protected/views/search/results.php22
-rw-r--r--protected/views/standort/view.php9
-rw-r--r--protected/views/verein/_short.php5
4 files changed, 41 insertions, 5 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>
diff --git a/protected/views/standort/view.php b/protected/views/standort/view.php
index 26312a3..0674ce9 100644
--- a/protected/views/standort/view.php
+++ b/protected/views/standort/view.php
@@ -48,7 +48,7 @@ $gMap->enableMarkerClusterer(new EGMapMarkerClusterer());
$gMap->renderMap();
?>
</p>
-<p>
+<h6>Folgende Vereine finden sich <?php echo $model->name?></h6>
<?php
$dataProvider=new CActiveDataProvider('Verein', array(
'criteria'=>array(
@@ -57,11 +57,12 @@ $dataProvider=new CActiveDataProvider('Verein', array(
'pagination'=>array(
'pageSize'=>20,
),
+
));
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'/verein/_short',
-
+ 'sortableAttributes'=>array(
+ 'name'
+ )
));?>
-
-</p> \ No newline at end of file
diff --git a/protected/views/verein/_short.php b/protected/views/verein/_short.php
index e31ed34..0ff6284 100644
--- a/protected/views/verein/_short.php
+++ b/protected/views/verein/_short.php
@@ -1,4 +1,6 @@
+<?php /*
<h6><?php echo CHTML::link($data->name,array("verein/view","id"=>$data->id)); ?></h6>
+ */?>
<?php
if(strlen(strip_tags($data->beschreibung))>300) {
$tmp = str_split(strip_tags($data->beschreibung),297);
@@ -6,6 +8,7 @@ if(strlen(strip_tags($data->beschreibung))>300) {
} else {
$myBeschreibung = strip_tags($data->beschreibung);
}?>
+<?php /*
<p><?php echo CHTML::link(CHTML::decode($myBeschreibung),array("verein/view","id"=>$data->id)); ?></p>
-
+ */?>
<?php echo CHTML::link("<h6>".$data->name."</h6><p>".$myBeschreibung."</p>" ,array("verein/view","id"=>$data->id)); ?> \ No newline at end of file