mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix wrong image for calendar week,month view navigators, and style them
This commit is contained in:
parent
fdd747fe35
commit
ef7c211edc
@ -685,13 +685,13 @@ class calendar_uiviews extends calendar_ui
|
||||
$content .= $this->timeGridWidget($this->tagWholeDayOnTop($week),$weeks == 2 ? 30 : 60,200,'',$title,0,$week_start+WEEK_s >= $this->last);
|
||||
}
|
||||
|
||||
$navHeader = '<div class="calendar_week_view_navHeader" style="width:auto; margin:0 auto; text-align:center;">'
|
||||
.html::a_href(html::image('phpgwapi','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
$navHeader = '<div class="calendar_calMonth">'
|
||||
.html::a_href(html::image('phpgwapi','left',lang('previous'),$options=' alt="<<"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',strtotime("-".$weekNavH, $weeks? $this->first: $this->bo->date2ts($this->date))),
|
||||
)). '<b>'.$navHeader;
|
||||
)). '  '.$navHeader;
|
||||
|
||||
$navHeader = $navHeader.'</b>'.html::a_href(html::image('phpgwapi','last',lang('next'),$options=' alt=">>"'),array(
|
||||
$navHeader = $navHeader.'  '.html::a_href(html::image('phpgwapi','right',lang('next'),$options=' alt=">>"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',strtotime("+".$weekNavH, $weeks? $this->first: $this->bo->date2ts($this->date))),
|
||||
)).'</div>';
|
||||
@ -851,12 +851,13 @@ class calendar_uiviews extends calendar_ui
|
||||
# $class = $class == 'row_on' ? 'th' : 'row_on';
|
||||
//echo "<p>weekdaystarts='".$this->cal_prefs['weekdaystarts']."', get_weekday_start($this->year,$this->month,$this->day)=".date('l Y-m-d',$wd_start).", first=".date('l Y-m-d',$this->first)."</p>\n";
|
||||
|
||||
$navHeader = '<div class="calendar_week_view_navHeader" style="width:auto; margin:0 auto; text-align:center;">' .html::a_href(html::image('phpgwapi','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
$navHeader = '<div class="calendar_calWeek">'
|
||||
.html::a_href(html::image('phpgwapi','left',lang('previous'),$options=' alt="<<"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',$this->first-$days*DAY_s),
|
||||
)). '<b>'.$navHeader;
|
||||
)). '  '.$navHeader;
|
||||
|
||||
$navHeader = $navHeader.'</b>'.html::a_href(html::image('phpgwapi','last',lang('next'),$options=' alt=">>"'),array(
|
||||
$navHeader = $navHeader.'  '.html::a_href(html::image('phpgwapi','right',lang('next'),$options=' alt=">>"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',$this->last+$days*DAY_s),
|
||||
)).'</div>';
|
||||
|
@ -51,6 +51,19 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
||||
.calendar_calToday{
|
||||
background: #ffffcc;
|
||||
}
|
||||
.calendar_calWeek{
|
||||
background: #ffffcc;
|
||||
width:auto;
|
||||
margin:0 auto;
|
||||
text-align:center;
|
||||
}
|
||||
.calendar_calMonth{
|
||||
background: #ffffcc;
|
||||
width:auto;
|
||||
margin:0 auto;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
/* marks a day in the colum-header as holiday
|
||||
*/
|
||||
.calendar_calHoliday{
|
||||
|
@ -63,6 +63,18 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
||||
.calendar_calToday {
|
||||
background: #ffffcc;
|
||||
}
|
||||
.calendar_calWeek {
|
||||
background: #ffffcc;
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
.calendar_calMonth {
|
||||
background: #ffffcc;
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
/* marks a day in the colum-header as holiday
|
||||
*/
|
||||
.calendar_calHoliday {
|
||||
@ -1236,6 +1248,20 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
||||
.calendar_calToday {
|
||||
background-color: #ffc200;
|
||||
}
|
||||
.calendar_calWeek {
|
||||
background-color: #ffc200;
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
border: 1px solid silver;
|
||||
}
|
||||
.calendar_calMonth {
|
||||
background-color: #ffc200;
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
border: 1px solid silver;
|
||||
}
|
||||
/* marks a day in the colum-header as holiday
|
||||
*/
|
||||
.calendar_calHoliday {
|
||||
|
@ -774,6 +774,22 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
||||
// background: #ffffcc;
|
||||
.background_table_cal_head;
|
||||
}
|
||||
.calendar_calWeek{
|
||||
// background: #ffffcc;
|
||||
.background_table_cal_head;
|
||||
width:auto;
|
||||
margin:0 auto;
|
||||
text-align:center;
|
||||
border: 1px solid silver;
|
||||
}
|
||||
.calendar_calMonth{
|
||||
// background: #ffffcc;
|
||||
.background_table_cal_head;
|
||||
width:auto;
|
||||
margin:0 auto;
|
||||
text-align:center;
|
||||
border: 1px solid silver;
|
||||
}
|
||||
/* marks a day in the colum-header as holiday
|
||||
*/
|
||||
.calendar_calHoliday{
|
||||
|
Loading…
Reference in New Issue
Block a user