diff options
Diffstat (limited to 'protected/views/veranstaltung')
| -rw-r--r-- | protected/views/veranstaltung/_search.php | 54 | ||||
| -rw-r--r-- | protected/views/veranstaltung/_short.php | 2 | ||||
| -rw-r--r-- | protected/views/veranstaltung/_view.php | 38 | ||||
| -rw-r--r-- | protected/views/veranstaltung/index.php | 35 | ||||
| -rw-r--r-- | protected/views/veranstaltung/now.php | 18 | ||||
| -rw-r--r-- | protected/views/veranstaltung/view.php | 21 |
6 files changed, 168 insertions, 0 deletions
diff --git a/protected/views/veranstaltung/_search.php b/protected/views/veranstaltung/_search.php new file mode 100644 index 0000000..099603c --- /dev/null +++ b/protected/views/veranstaltung/_search.php @@ -0,0 +1,54 @@ +<div class="wide form"> + +<?php $form=$this->beginWidget('CActiveForm', array( + 'action'=>Yii::app()->createUrl($this->route), + 'method'=>'get', +)); ?> + + <div class="row"> + <?php echo $form->label($model,'id'); ?> + <?php echo $form->textField($model,'id'); ?> + </div> + + <div class="row"> + <?php echo $form->label($model,'verein_id'); ?> + <?php echo $form->dropDownList($model, 'verein_id', CHtml::listData(Verein::model()->findAll(), 'id', 'name'), array("empty"=>"")); ?> + </div> + + <div class="row"> + <?php echo $form->label($model,'titel'); ?> + <?php echo $form->textField($model,'titel',array('size'=>60,'maxlength'=>100)); ?> + </div> + + <div class="row"> + <?php echo $form->label($model,'startzeit'); ?> + <?php echo $form->textField($model,'startzeit'); ?> + </div> + + <div class="row"> + <?php echo $form->label($model,'endzeit'); ?> + <?php echo $form->textField($model,'endzeit'); ?> + </div> + + <div class="row"> + <?php echo $form->label($model,'beschreibung'); ?> + <?php echo $form->textArea($model,'beschreibung',array('rows'=>6, 'cols'=>50)); ?> + </div> + + <div class="row"> + <?php echo $form->label($model,'standort_id'); ?> + <?php echo $form->dropDownList($model, 'standort_id', CHtml::listData(Standort::model()->findAll(array('condition'=>'type="Bühne"')), 'id', 'name'), array("empty"=>"")); ?> + </div> + + <div class="row"> + <?php echo $form->label($model,'published'); ?> + <?php echo $form->checkbox($model,'published'); ?> + </div> + + <div class="row buttons"> + <?php echo CHtml::submitButton('Search'); ?> + </div> + +<?php $this->endWidget(); ?> + +</div><!-- search-form -->
\ No newline at end of file diff --git a/protected/views/veranstaltung/_short.php b/protected/views/veranstaltung/_short.php new file mode 100644 index 0000000..56c474b --- /dev/null +++ b/protected/views/veranstaltung/_short.php @@ -0,0 +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 diff --git a/protected/views/veranstaltung/_view.php b/protected/views/veranstaltung/_view.php new file mode 100644 index 0000000..daa818a --- /dev/null +++ b/protected/views/veranstaltung/_view.php @@ -0,0 +1,38 @@ +<div class="view"> + + <b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b> + <?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('verein_id')); ?>:</b> + <?php echo CHtml::encode($data->verein_id); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('titel')); ?>:</b> + <?php echo CHtml::encode($data->titel); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('startzeit')); ?>:</b> + <?php echo CHtml::encode($data->startzeit); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('endzeit')); ?>:</b> + <?php echo CHtml::encode($data->endzeit); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('beschreibung')); ?>:</b> + <?php echo CHtml::encode($data->beschreibung); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('standort_id')); ?>:</b> + <?php echo CHtml::encode($data->standort_id); ?> + <br /> + + <?php /* + <b><?php echo CHtml::encode($data->getAttributeLabel('published')); ?>:</b> + <?php echo CHtml::encode($data->published); ?> + <br /> + + */ ?> + +</div>
\ No newline at end of file diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php new file mode 100644 index 0000000..13f1dcf --- /dev/null +++ b/protected/views/veranstaltung/index.php @@ -0,0 +1,35 @@ +<?php +$this->breadcrumbs=array( + 'Veranstaltungen', +); + +$this->menu=array( + array('label'=>'Veranstaltung erstellen', 'url'=>array('create')), +);?> + +<h3>Veranstaltungen</h3> + + +<?php $this->widget('zii.widgets.grid.CGridView', array( + 'id'=>'veranstaltung-grid', + 'dataProvider'=>$model->search(), + 'filter'=>$model, + 'columns'=>array( + array('header'=>'Verein', + 'name'=>'verein_id', + 'filter'=>CHtml::listData(Verein::model()->findAll(), 'id', 'name'), + 'value'=>'$data->verein->name'), + 'titel', + array('header'=>'Startzeit', 'value'=>'Format::displayDateTime($data->startzeit)'), + array('header'=>'Endzeit', 'value'=>'Format::displayDateTime($data->endzeit)'), + array('header'=>'Standort', + 'name'=>'standort_id', + 'filter'=>CHtml::listData(Standort::model()->findAll(array('condition'=>'type="Bühne"')), 'id', 'name'), + 'value'=>'($data->standort) ? $data->standort->name : "Kein Standort"'), + 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', + ), + ), +)); ?> diff --git a/protected/views/veranstaltung/now.php b/protected/views/veranstaltung/now.php new file mode 100644 index 0000000..ca5e5dc --- /dev/null +++ b/protected/views/veranstaltung/now.php @@ -0,0 +1,18 @@ +<?php +$this->breadcrumbs=array( + 'Veranstaltungen'=>array('index'),'Jetzt' +); + +$this->menu=array( + array('label'=>'Veranstaltung erstellen', 'url'=>array('create')), +);?> + +<h3>Veranstaltungen heute um <?php echo date("H:i");?></h3> + + +<?php $this->widget('zii.widgets.grid.CGridView', array( + 'id'=>'veranstaltung-grid', + 'dataProvider'=>$model->now() + + +)); ?> diff --git a/protected/views/veranstaltung/view.php b/protected/views/veranstaltung/view.php new file mode 100644 index 0000000..55dbff8 --- /dev/null +++ b/protected/views/veranstaltung/view.php @@ -0,0 +1,21 @@ +<?php +$this->breadcrumbs=array( + 'Veranstaltungen'=>array('index'), + $model->titel, +); + +$this->menu=array( + array('label'=>'Veranstaltungen', 'url'=>array('index')), + ); +?> + +<h3><?php echo $model->titel; ?></h3> +<p>von <?php echo Yii::app()->dateFormatter->format('EEEE hh:mm',$model->startzeit)." Uhr"?> bis <?php +echo Yii::app()->dateFormatter->format('EEEE hh:mm',$model->endzeit)." Uhr"?> +auf der Bühne <?php echo CHtml::link($model->standort->name,array("standort/view","id"=>$model->standort_id))?></p> +<p> +<?php +echo $model->beschreibung; +?> +</p> +<div class="box info"><p>Veranstalter ist der Verein <?php echo CHtml::link($model->verein->name,array("verein/view","id"=>$model->verein_id))?></p><?php echo $model->verein->kontaktdaten?></div>
\ No newline at end of file |
