summaryrefslogtreecommitdiff
path: root/protected/views/veranstaltung/stages.php
blob: 7c57b2aefa6c1b482a47e18108622dadb2c6cfee (plain)
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
<?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,
		)
); ?>