diff options
| author | ccwn <tzur@ccwn.org> | 2012-04-24 18:49:57 +0200 |
|---|---|---|
| committer | ccwn <tzur@ccwn.org> | 2012-04-24 18:49:57 +0200 |
| commit | c98745edd2c7b2f48bc3493c4dd9a061376c4720 (patch) | |
| tree | ca1b559f220ec28c3f263d02a8b832613493471f /protected/views/myAngebot/index.php | |
| parent | 314328f527e8cae759d496f528a1472d7970c137 (diff) | |
- Database setup
- Database schema
- Database dev data
- config for new database setup
- Update in AngebotVerein
- Update in Speis&Trank
- Update in Verein
- Update in Kategorie
Diffstat (limited to 'protected/views/myAngebot/index.php')
| -rw-r--r-- | protected/views/myAngebot/index.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/protected/views/myAngebot/index.php b/protected/views/myAngebot/index.php new file mode 100644 index 0000000..0c7fc43 --- /dev/null +++ b/protected/views/myAngebot/index.php @@ -0,0 +1,30 @@ +<?php +$this->breadcrumbs=array( + 'Speis & Trank', +);?> + + +<h1>Meine Angebote</h1> + +<?php $this->renderPartial('/common/_comparison_text'); ?> + +<?php $this->renderPartial('/common/_advanced_search',array( + 'model'=>$model, +)); ?> + +<?php $this->widget('zii.widgets.grid.CGridView', array( + 'id'=>'angebot-grid', + 'dataProvider'=>$model->search(), + 'filter'=>$model, + 'columns'=>array( + array('header'=>'Angebot', 'value'=>'$data->angebot->name', 'name'=>'angebot_id', 'filter'=>CHtml::listData(Angebot::model()->findAll(), 'id', 'name')), + array('header'=>'Verein', 'value'=>'$data->verein->name'), + array('header'=>'Menge', 'value'=>'Format::number($data->menge, $data->einheit)'), + array('header'=>'Preis', 'value'=>'Format::currency($data->preis)'), + array('header'=>'Öffentlich', + 'value'=>'CHtml::image($data->published ? "images/ok.png" : "images/nok.png", $data->published ? "ok.png" : "nok.png")', 'type'=>'raw'), + array( + 'class'=>'CButtonColumn' + ), + ), +)); ?>
\ No newline at end of file |
