diff options
Diffstat (limited to 'protected/views/veranstaltung')
| -rw-r--r-- | protected/views/veranstaltung/_list_veranstaltungen.php | 1 | ||||
| -rw-r--r-- | protected/views/veranstaltung/now.php | 16 | ||||
| -rw-r--r-- | protected/views/veranstaltung/stage.php | 17 |
3 files changed, 16 insertions, 18 deletions
diff --git a/protected/views/veranstaltung/_list_veranstaltungen.php b/protected/views/veranstaltung/_list_veranstaltungen.php index 95a7c51..0565ce1 100644 --- a/protected/views/veranstaltung/_list_veranstaltungen.php +++ b/protected/views/veranstaltung/_list_veranstaltungen.php @@ -35,6 +35,7 @@ $this->widget('zii.widgets.grid.CGridView', array( ), 'blankDisplay' => "Heute keine Termine bekannt", 'enableSorting' => true, + 'pager'=>array('footer'=>'', 'header'=>''), 'enablePagination' => true, 'showTableOnEmpty' => false, 'hideHeader' => false, diff --git a/protected/views/veranstaltung/now.php b/protected/views/veranstaltung/now.php index c9cf1c3..3421a60 100644 --- a/protected/views/veranstaltung/now.php +++ b/protected/views/veranstaltung/now.php @@ -9,12 +9,26 @@ $this->menu=array( array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), //array('label'=>'Veranstaltung suchen', 'url'=>array('search')), -);?> +); +/* +$buehnen = new CActiveDataProvider('Standort', array( + 'criteria'=>array( + 'condition'=>"type='Bühne'", + + ), +)); +$mymenu = array(); +foreach ($buehnen->getData() as $buehne) { + $mymenu = array_merge( $mymenu , array(array('label' => 'Bühnenprogramm '.$buehne->name, 'url'=>array('stage','id'=>$buehne->id)))); +} +$this->menu = array_merge($this->menu, $mymenu); +*/?> <h3>Veranstaltungen heute um <?php echo date("H:i");?></h3> <?php $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$model->now(), 'itemView'=>'_short_all', // refers to the partial view named '_post' + 'pager'=>array('footer'=>'', 'header'=>''), 'sortableAttributes'=>array( 'name', /*'create_time'=>'Post Time',*/ diff --git a/protected/views/veranstaltung/stage.php b/protected/views/veranstaltung/stage.php index 997823d..ca7d803 100644 --- a/protected/views/veranstaltung/stage.php +++ b/protected/views/veranstaltung/stage.php @@ -27,23 +27,6 @@ foreach ($buehnen->getData() as $buehne) { $this->menu = array_merge($this->menu, $mymenu); ?> <h3>Bühnenprogramm <?php echo $model->name?> </h3> -<?php /* -$freitag=new CActiveDataProvider('Veranstaltung', array( - 'criteria'=>array( - 'condition'=>'standort_id='.$model->id." and dayofweek(startzeit)=6", - ), -)); -$samstag=new CActiveDataProvider('Veranstaltung', array( - 'criteria'=>array( - 'condition'=>'standort_id='.$model->id." and published=1 and dayofweek(startzeit)=7", - ), -)); -$sonntag=new CActiveDataProvider('Veranstaltung', array( - 'criteria'=>array( - 'condition'=>'standort_id='.$model->id." and published=1 and dayofweek(startzeit)=1", - ), -));*/ -?> <h5>Freitag</h5> <?php |
