Fix wrong image for calendar week,month view navigators, and style them

This commit is contained in:
Hadi Nategh 2014-02-25 14:20:27 +00:00
parent fdd747fe35
commit ef7c211edc
4 changed files with 63 additions and 7 deletions

View File

@ -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;
)). ' &nbsp'.$navHeader;
$navHeader = $navHeader.'</b>'.html::a_href(html::image('phpgwapi','last',lang('next'),$options=' alt=">>"'),array(
$navHeader = $navHeader.'&nbsp '.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;
)). ' &nbsp'.$navHeader;
$navHeader = $navHeader.'</b>'.html::a_href(html::image('phpgwapi','last',lang('next'),$options=' alt=">>"'),array(
$navHeader = $navHeader.' &nbsp'.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>';

View File

@ -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{

View File

@ -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 {

View File

@ -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{