summaryrefslogtreecommitdiff
path: root/protected/views/standort/_buehne.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/standort/_buehne.php')
-rw-r--r--protected/views/standort/_buehne.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/protected/views/standort/_buehne.php b/protected/views/standort/_buehne.php
new file mode 100644
index 0000000..bfaa34a
--- /dev/null
+++ b/protected/views/standort/_buehne.php
@@ -0,0 +1,18 @@
+<h6>Folgende Veranstaltungen finden <?php echo $data->name?> statt</h6>
+<?php
+$dataProvider=new CActiveDataProvider('Veranstaltung', array(
+ 'criteria'=>array(
+ 'condition'=>'standort_id='.$data->id." and published=1",
+ ),
+ 'pagination'=>array(
+ 'pageSize'=>20,
+ ),
+
+));
+$this->widget('zii.widgets.CListView', array(
+ 'dataProvider'=>$dataProvider,
+ 'itemView'=>'/veranstaltung/_short',
+ 'sortableAttributes'=>array(
+ 'name'
+ )
+ ));?> \ No newline at end of file