1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?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'=>'Freitag', 'url'=>array('index','tag'=>'Freitag')),
array('label'=>'Samstag', 'url'=>array('index','tag'=>'Samstag')),
array('label'=>'Sonntag', 'url'=>array('index','tag'=>'Sonntag')),
//array('label'=>'Bühnenprogramm', 'url'=>array('stage')),
//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);
*/
?>
<h2>Veranstaltungen
<?php
$veranstaltung = new Veranstaltung();
$veranstaltung->with('verein')->with('standort');
switch ($tag) {
case 'Freitag':
$veranstaltung->freitag();
echo " am ".$tag;
break;
case 'Samstag':
$veranstaltung->samstag();
echo " am ".$tag;
break;
case 'Sonntag':
$veranstaltung->sonntag();
echo " am ".$tag;
break;
}
?>
</h2>
<?php
$veranstaltung->published()->thisYear()->sorted();
$this->renderPartial('_list_veranstaltungen',array(
'veranstaltungen'=>$veranstaltung
));
?>
|