diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-05-25 09:13:44 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-05-25 09:13:44 +0200 |
| commit | 9bdc1d98f91181375a6c077052db3c702a27c294 (patch) | |
| tree | 192e01303b6f883375aeb6048c83a7ad1af326fa /protected/views | |
| parent | 73cbf16f510930747aae963a863570c277332187 (diff) | |
2012 Inhalte für die Datenbank, anzeige erstmal auf cms reduziert
Diffstat (limited to 'protected/views')
| -rw-r--r-- | protected/views/veranstaltung/_short.php | 2 | ||||
| -rw-r--r-- | protected/views/veranstaltung/_short_all.php | 5 | ||||
| -rw-r--r-- | protected/views/veranstaltung/index.php | 3 | ||||
| -rw-r--r-- | protected/views/veranstaltung/now.php | 18 | ||||
| -rw-r--r-- | protected/views/veranstaltung/view.php | 4 |
5 files changed, 22 insertions, 10 deletions
diff --git a/protected/views/veranstaltung/_short.php b/protected/views/veranstaltung/_short.php index 56c474b..0aadbf2 100644 --- a/protected/views/veranstaltung/_short.php +++ b/protected/views/veranstaltung/_short.php @@ -1,2 +1,2 @@ <?php -echo CHTML::link("<strong>".$data->titel."</strong> ".Yii::app()->dateFormatter->format('EEEE hh:mm',$data->startzeit)." Uhr bis ".Yii::app()->dateFormatter->format('EEEE hh:mm',$data->endzeit),array("veranstaltung/view","id"=>$data->id)); ?><br />
\ No newline at end of file +echo CHTML::link("<strong>".$data->titel."</strong> ".Yii::app()->dateFormatter->format('EEEE HH:mm',$data->startzeit)." Uhr bis ".Yii::app()->dateFormatter->format('EEEE HH:mm',$data->endzeit),array("veranstaltung/view","id"=>$data->id)); ?><br />
\ No newline at end of file diff --git a/protected/views/veranstaltung/_short_all.php b/protected/views/veranstaltung/_short_all.php new file mode 100644 index 0000000..3464a53 --- /dev/null +++ b/protected/views/veranstaltung/_short_all.php @@ -0,0 +1,5 @@ +<?php +$link ="<strong>".$data->titel."</strong> ".Yii::app()->dateFormatter->format('EEEE HH:mm',$data->startzeit)." Uhr bis ".Yii::app()->dateFormatter->format('EEEE HH:mm',$data->endzeit); +echo CHTML::link($link,array("veranstaltung/view","id"=>$data->id)). +" beim ". CHTML::link($data->verein->name,array("verein/view","id"=>$data->verein_id)) +." (".CHTML::link($data->standort->name,array("standort/view","id"=>$data->standort_id)).")"; ?><br />
\ No newline at end of file diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php index 56708fc..e8a5ceb 100644 --- a/protected/views/veranstaltung/index.php +++ b/protected/views/veranstaltung/index.php @@ -4,7 +4,8 @@ $this->breadcrumbs=array( ); $this->menu=array( - + array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), + array('label'=>'Veranstaltung suchen', 'url'=>array('search')), );?> <h3>Veranstaltungen</h3> diff --git a/protected/views/veranstaltung/now.php b/protected/views/veranstaltung/now.php index 8eb8c64..12202ba 100644 --- a/protected/views/veranstaltung/now.php +++ b/protected/views/veranstaltung/now.php @@ -5,14 +5,18 @@ $this->breadcrumbs=array( $this->menu=array( + array('label'=>'Alle Veranstaltungen', 'url'=>array('index')), + array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), + array('label'=>'Veranstaltung suchen', 'url'=>array('search')), + );?> <h3>Veranstaltungen heute um <?php echo date("H:i");?></h3> - - -<?php $this->widget('zii.widgets.grid.CGridView', array( - 'id'=>'veranstaltung-grid', - 'dataProvider'=>$model->now() - - +<?php $this->widget('zii.widgets.CListView', array( + 'dataProvider'=>$model->now(), + 'itemView'=>'_short_all', // refers to the partial view named '_post' + 'sortableAttributes'=>array( + 'name', + /*'create_time'=>'Post Time',*/ + ), ));?> diff --git a/protected/views/veranstaltung/view.php b/protected/views/veranstaltung/view.php index 55dbff8..e942aee 100644 --- a/protected/views/veranstaltung/view.php +++ b/protected/views/veranstaltung/view.php @@ -5,7 +5,9 @@ $this->breadcrumbs=array( ); $this->menu=array( - array('label'=>'Veranstaltungen', 'url'=>array('index')), + array('label'=>'Alle Veranstaltungen', 'url'=>array('index')), + array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')), + array('label'=>'Veranstaltung suchen', 'url'=>array('search')), ); ?> |
