summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2014-06-27 17:45:49 +0200
committerPatrick Seeger <pseeger@ccwn.org>2014-06-27 17:45:49 +0200
commitb0bb0b981ebaa1b260e48a6a7c05e7b18407b32d (patch)
treefabc2c6f9d33f841571864a4cdddea466e5f558f
parentef69d6a086670fc0893715999f9fe69dd316486e (diff)
Anzeige der Pager verschönert(mobil)
-rw-r--r--css/astaf/layout.css6
-rw-r--r--protected/views/search/results.php1
-rw-r--r--protected/views/standort/_buehne.php1
-rw-r--r--protected/views/standort/_standort.php1
-rw-r--r--protected/views/veranstaltung/_list_veranstaltungen.php1
-rw-r--r--protected/views/veranstaltung/now.php16
-rw-r--r--protected/views/veranstaltung/stage.php17
-rw-r--r--protected/views/verein/index.php3
8 files changed, 24 insertions, 22 deletions
diff --git a/css/astaf/layout.css b/css/astaf/layout.css
index 36075a6..60cae20 100644
--- a/css/astaf/layout.css
+++ b/css/astaf/layout.css
@@ -164,17 +164,17 @@
text-align: center;
}
.pager ul li {
- line-height: 4em;
+ line-height: 2.5em;
font-size: 2em;
}
ul.yiiPager li.page
{
display: none;
}
- ul.yiiPager li.page.selected
+ /*ul.yiiPager li.page.selected
{
display: inline;
- }
+ }*/
}
\ No newline at end of file
diff --git a/protected/views/search/results.php b/protected/views/search/results.php
index b2af731..fa28297 100644
--- a/protected/views/search/results.php
+++ b/protected/views/search/results.php
@@ -13,6 +13,7 @@ $this->pageTitle = 'Suchergebnisse für ' .CHtml::encode($search). ' - ' . Yii::
<?php
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
+ 'pager'=>array('footer'=>'', 'header'=>''),
'itemView'=>'/'.lcfirst($mod).'/_short', // refers to the partial view named '_post'
));?>
diff --git a/protected/views/standort/_buehne.php b/protected/views/standort/_buehne.php
index 0dc0870..f20e9a9 100644
--- a/protected/views/standort/_buehne.php
+++ b/protected/views/standort/_buehne.php
@@ -13,6 +13,7 @@ $this->widget('zii.widgets.CListView', array(
//'dataProvider'=>$dataProvider,
'dataProvider'=>Veranstaltung::model('Veranstaltung')->published()->thisYear()->parentStage($data->id)->sorted()->search(),
'itemView'=>'/veranstaltung/_short',
+ 'pager'=>array('footer'=>'', 'header'=>''),
'sortableAttributes'=>array(
'name'
)
diff --git a/protected/views/standort/_standort.php b/protected/views/standort/_standort.php
index dd978dc..280a351 100644
--- a/protected/views/standort/_standort.php
+++ b/protected/views/standort/_standort.php
@@ -11,6 +11,7 @@ $dataProvider=new CActiveDataProvider('Verein', array(
));
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
+ 'pager'=>array('footer'=>'', 'header'=>''),
'itemView'=>'/verein/_short',
'sortableAttributes'=>array(
'name'
diff --git a/protected/views/veranstaltung/_list_veranstaltungen.php b/protected/views/veranstaltung/_list_veranstaltungen.php
index 95a7c51..0565ce1 100644
--- a/protected/views/veranstaltung/_list_veranstaltungen.php
+++ b/protected/views/veranstaltung/_list_veranstaltungen.php
@@ -35,6 +35,7 @@ $this->widget('zii.widgets.grid.CGridView', array(
),
'blankDisplay' => "Heute keine Termine bekannt",
'enableSorting' => true,
+ 'pager'=>array('footer'=>'', 'header'=>''),
'enablePagination' => true,
'showTableOnEmpty' => false,
'hideHeader' => false,
diff --git a/protected/views/veranstaltung/now.php b/protected/views/veranstaltung/now.php
index c9cf1c3..3421a60 100644
--- a/protected/views/veranstaltung/now.php
+++ b/protected/views/veranstaltung/now.php
@@ -9,12 +9,26 @@ $this->menu=array(
array('label'=>'Jetzt auf dem Fest', 'url'=>array('now')),
//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);
+*/?>
<h3>Veranstaltungen heute um <?php echo date("H:i");?></h3>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$model->now(),
'itemView'=>'_short_all', // refers to the partial view named '_post'
+ 'pager'=>array('footer'=>'', 'header'=>''),
'sortableAttributes'=>array(
'name',
/*'create_time'=>'Post Time',*/
diff --git a/protected/views/veranstaltung/stage.php b/protected/views/veranstaltung/stage.php
index 997823d..ca7d803 100644
--- a/protected/views/veranstaltung/stage.php
+++ b/protected/views/veranstaltung/stage.php
@@ -27,23 +27,6 @@ foreach ($buehnen->getData() as $buehne) {
$this->menu = array_merge($this->menu, $mymenu);
?>
<h3>Bühnenprogramm <?php echo $model->name?> </h3>
-<?php /*
-$freitag=new CActiveDataProvider('Veranstaltung', array(
- 'criteria'=>array(
- 'condition'=>'standort_id='.$model->id." and dayofweek(startzeit)=6",
- ),
-));
-$samstag=new CActiveDataProvider('Veranstaltung', array(
- 'criteria'=>array(
- 'condition'=>'standort_id='.$model->id." and published=1 and dayofweek(startzeit)=7",
- ),
-));
-$sonntag=new CActiveDataProvider('Veranstaltung', array(
- 'criteria'=>array(
- 'condition'=>'standort_id='.$model->id." and published=1 and dayofweek(startzeit)=1",
- ),
-));*/
-?>
<h5>Freitag</h5>
<?php
diff --git a/protected/views/verein/index.php b/protected/views/verein/index.php
index 3f3a807..54d31c4 100644
--- a/protected/views/verein/index.php
+++ b/protected/views/verein/index.php
@@ -13,7 +13,8 @@ $this->menu=array(
<h2>Vereine</h2>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$model->listPublic(),
- 'itemView'=>'_short', // refers to the partial view named '_post'
+ 'itemView'=>'_short',
+ 'pager'=>array('footer'=>'', 'header'=>''),
/*'sortableAttributes'=>array(
'name',
/*'create_time'=>'Post Time',