diff options
| -rw-r--r-- | images/div/Altstadt_Nacht.JPG | bin | 0 -> 114284 bytes | |||
| -rw-r--r-- | protected/views/veranstaltung/stages.php | 32 |
2 files changed, 32 insertions, 0 deletions
diff --git a/images/div/Altstadt_Nacht.JPG b/images/div/Altstadt_Nacht.JPG Binary files differnew file mode 100644 index 0000000..aa7798f --- /dev/null +++ b/images/div/Altstadt_Nacht.JPG diff --git a/protected/views/veranstaltung/stages.php b/protected/views/veranstaltung/stages.php new file mode 100644 index 0000000..7c57b2a --- /dev/null +++ b/protected/views/veranstaltung/stages.php @@ -0,0 +1,32 @@ +<?php +$this->breadcrumbs=array( + 'Veranstaltungen', +); +$this->pageTitle = 'Veranstaltungen - ' . Yii::app()->name; + +$this->menu=array( + array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), + //array('label'=>'Veranstaltung suchen', 'url'=>array('search')), +);?> + +<h3>Veranstaltungen</h3> +<?php +$dataProvider=new CActiveDataProvider('Standort', array( + 'criteria'=>array( + 'condition'=>"published=1 AND (type = 'Bühne' OR (type = 'Stand' AND id in (SELECT distinct standort_id FROM veranstaltungen)))", + //'with'=>array('veranstaltungen'), + ), + 'pagination'=>array( + 'pageSize'=>20, + ), +)); + /*$this->widget('zii.widgets.CListView', array( + 'dataProvider'=>$dataProvider, + 'itemView'=>'_short', // refers to the partial view named '_post' + )); + */ + $this->widget('zii.widgets.grid.CGridView', array( + 'id'=>'veranstaltung-grid', + 'dataProvider'=>$dataProvider, + ) +); ?> |
