diff options
Diffstat (limited to 'protected/views')
| -rw-r--r-- | protected/views/search/results.php | 6 | ||||
| -rw-r--r-- | protected/views/veranstaltung/index.php | 13 | ||||
| -rw-r--r-- | protected/views/veranstaltung/now.php | 2 | ||||
| -rw-r--r-- | protected/views/veranstaltung/view.php | 2 | ||||
| -rw-r--r-- | protected/views/verein/_short.php | 8 | ||||
| -rw-r--r-- | protected/views/verein/index.php | 4 | ||||
| -rw-r--r-- | protected/views/verein/view.php | 6 |
7 files changed, 28 insertions, 13 deletions
diff --git a/protected/views/search/results.php b/protected/views/search/results.php index 05d2b57..e72cc51 100644 --- a/protected/views/search/results.php +++ b/protected/views/search/results.php @@ -5,12 +5,14 @@ $this->breadcrumbs=array( );?> <h3>Suchergebnisse für "<?php echo CHtml::encode($search) ?>"</h3> <?php foreach ($results as $mod => $res) {?> + <?php $dataProvider = new CArrayDataProvider($res); + if($dataProvider->getItemCount()>0) {?> <h5><?php echo $mod ?></h5> <?php - $dataProvider = new CArrayDataProvider($res); $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$dataProvider, 'itemView'=>'/'.lcfirst($mod).'/_short', // refers to the partial view named '_post' ));?> -<?php }?> +<?php } +}?> diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php index e8a5ceb..3703092 100644 --- a/protected/views/veranstaltung/index.php +++ b/protected/views/veranstaltung/index.php @@ -5,13 +5,22 @@ $this->breadcrumbs=array( $this->menu=array( array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), - array('label'=>'Veranstaltung suchen', 'url'=>array('search')), + //array('label'=>'Veranstaltung suchen', 'url'=>array('search')), );?> <h3>Veranstaltungen</h3> -<?php $this->widget('zii.widgets.grid.CGridView', array( +<?php $this->widget('zii.widgets.CListView', array( + 'dataProvider'=>$model->published()->sorted()->search(), + 'itemView'=>'_short_all', // refers to the partial view named '_post' + 'sortableAttributes'=>array( + 'startzeit', 'titel' + /*'create_time'=>'Post Time',*/ + ), + )); + + $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'veranstaltung-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, diff --git a/protected/views/veranstaltung/now.php b/protected/views/veranstaltung/now.php index 12202ba..24354f2 100644 --- a/protected/views/veranstaltung/now.php +++ b/protected/views/veranstaltung/now.php @@ -7,7 +7,7 @@ $this->menu=array( array('label'=>'Alle Veranstaltungen', 'url'=>array('index')), array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), - array('label'=>'Veranstaltung suchen', 'url'=>array('search')), + //array('label'=>'Veranstaltung suchen', 'url'=>array('search')), );?> diff --git a/protected/views/veranstaltung/view.php b/protected/views/veranstaltung/view.php index e942aee..edf3ca2 100644 --- a/protected/views/veranstaltung/view.php +++ b/protected/views/veranstaltung/view.php @@ -7,7 +7,7 @@ $this->breadcrumbs=array( $this->menu=array( array('label'=>'Alle Veranstaltungen', 'url'=>array('index')), array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), - array('label'=>'Veranstaltung suchen', 'url'=>array('search')), + // array('label'=>'Veranstaltung suchen', 'url'=>array('search')), ); ?> diff --git a/protected/views/verein/_short.php b/protected/views/verein/_short.php index c6e42de..c282b6a 100644 --- a/protected/views/verein/_short.php +++ b/protected/views/verein/_short.php @@ -7,8 +7,12 @@ if(strlen(strip_tags($data->beschreibung))>300) { $myBeschreibung = $tmp[0]."..."; } else { $myBeschreibung = strip_tags($data->beschreibung); -}?> +} +if(strlen($myBeschreibung)> 0) { + $myBeschreibung="<p>".$myBeschreibung."</p>"; +} +?> <?php /* <p><?php echo CHTML::link(CHTML::decode($myBeschreibung),array("verein/view","id"=>$data->id)); ?></p> */?> -<?php echo CHTML::link("<h6>".$data->name." (".$data->standort->name.")</h6><p>".$myBeschreibung."</p>" ,array("verein/view","id"=>$data->id)); ?>
\ No newline at end of file +<div class="erg"><?php echo CHTML::link("<h6>".$data->name."</h6><i>".$data->standort->name."</i>".$myBeschreibung ,array("verein/view","id"=>$data->id)); ?></div>
\ No newline at end of file diff --git a/protected/views/verein/index.php b/protected/views/verein/index.php index 1e447a0..bfb20a8 100644 --- a/protected/views/verein/index.php +++ b/protected/views/verein/index.php @@ -2,11 +2,11 @@ $this->breadcrumbs=array( 'Vereine', ); - +/* $this->menu=array( array('label' => 'Verein suchen', 'url' => array('search')), -); +);*/ ?> <h2>Vereine</h2> diff --git a/protected/views/verein/view.php b/protected/views/verein/view.php index eb57968..2e0d0e5 100644 --- a/protected/views/verein/view.php +++ b/protected/views/verein/view.php @@ -36,9 +36,9 @@ $dataProvider=new CActiveDataProvider('AngebotVerein', array( $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$dataProvider, 'itemView'=>'_shortangebotverein', - 'sortableAttributes'=>array( - 'preis','menge', - ), + //'sortableAttributes'=>array( + // 'preis','menge', + //), ));?> <h4>Veranstaltungen</h4> <?php |
