summaryrefslogtreecommitdiff
path: root/protected/views
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2014-06-18 11:02:38 +0200
committerPatrick Seeger <pseeger@ccwn.org>2014-06-18 11:02:38 +0200
commit5a44c2c532f6375972bc5686b541e860b24590f9 (patch)
tree7554c8ed1eb19ae46dd8750c92aa226adc25a0e6 /protected/views
parent2e3cd85aded2980adb9ff7aedfe138d8c0def309 (diff)
Erster Draft für Bühnenprogramm
Diffstat (limited to 'protected/views')
-rw-r--r--protected/views/veranstaltung/stage.php50
1 files changed, 50 insertions, 0 deletions
diff --git a/protected/views/veranstaltung/stage.php b/protected/views/veranstaltung/stage.php
new file mode 100644
index 0000000..a38d1de
--- /dev/null
+++ b/protected/views/veranstaltung/stage.php
@@ -0,0 +1,50 @@
+<?php
+$this->breadcrumbs=array(
+ 'Veranstaltungen',
+);
+$this->pageTitle = 'Programmpunkte auf der Bühne '.$model->name.' - ' . Yii::app()->name;
+
+$this->menu=array(
+ array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')),
+ //array('label'=>'Veranstaltung suchen', 'url'=>array('search')),
+);?>
+
+<h3>Bühnenprogramm <?php echo $model->name?> </h3>
+<?php
+$freitag=new CActiveDataProvider('Veranstaltung', array(
+ 'criteria'=>array(
+ 'condition'=>'standort_id='.$model->id." and published=1 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",
+ ),
+));
+?>
+<h4>Freitag</h4>
+<?php
+$this->widget('zii.widgets.CListView', array(
+ 'dataProvider'=>$freitag,
+ 'itemView'=>'/veranstaltung/_short',
+
+ ));?>
+<h4>Samstag</h4>
+<?php
+$this->widget('zii.widgets.CListView', array(
+ 'dataProvider'=>$samstag,
+ 'itemView'=>'/veranstaltung/_short',
+
+ ));?>
+<h4>Sonntag</h4>
+<?php
+$this->widget('zii.widgets.CListView', array(
+ 'dataProvider'=>$sonntag,
+ 'itemView'=>'/veranstaltung/_short',
+ ));?>
+