mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix for bug #416454
This commit is contained in:
parent
c4040201e8
commit
6972306f8f
@ -1263,18 +1263,41 @@ class calendar extends calendar_
|
||||
$phpgw->preferences->save_repository();
|
||||
}
|
||||
|
||||
if($phpgw_info['user']['preferences']['common']['time_format'] == '12')
|
||||
$t_format = $phpgw_info['user']['preferences']['common']['time_format'];
|
||||
$browser = CreateObject('phpgwapi.browser');
|
||||
$browser->browser();
|
||||
$browser_agent = $browser->get_agent();
|
||||
if($browser_agent == 'MOZILLA')
|
||||
{
|
||||
$time_width=15;
|
||||
if($t_format == '12')
|
||||
{
|
||||
$time_width=48;
|
||||
}
|
||||
else
|
||||
{
|
||||
$time_width=26;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$time_width=9;
|
||||
if($t_format == '12')
|
||||
{
|
||||
$time_width=20;
|
||||
}
|
||||
else
|
||||
{
|
||||
$time_width=14;
|
||||
}
|
||||
}
|
||||
$var = Array(
|
||||
'event_width' => (100 - $time_width),
|
||||
'time_width' => $time_width
|
||||
'event_width' => (100 - $time_width),
|
||||
'time_width' => $time_width,
|
||||
'time_bgcolor' => $phpgw_info['theme']['cal_dayview'],
|
||||
'bg_time_image' => $this->phpgwapi_template_dir.'/navbar_filler.jpg',
|
||||
'font_color' => $phpgw_info['theme']['bg_text'],
|
||||
'font' => $phpgw_info['theme']['font']
|
||||
);
|
||||
|
||||
$p->set_var($var);
|
||||
|
||||
$first_hour = (int)$phpgw_info['user']['preferences']['calendar']['workdaystarts'] + 1;
|
||||
@ -1341,15 +1364,7 @@ class calendar extends calendar_
|
||||
$this->last_row = $i;
|
||||
}
|
||||
}
|
||||
$var = Array(
|
||||
'time_bgcolor' => $phpgw_info['theme']['cal_dayview'],
|
||||
'bg_time_image' => $this->phpgwapi_template_dir.'/navbar_filler.jpg',
|
||||
'font_color' => $phpgw_info['theme']['bg_text'],
|
||||
'font' => $phpgw_info['theme']['font']
|
||||
);
|
||||
|
||||
$p->set_var($var);
|
||||
|
||||
if (isset($time[99]) && strlen($time[99]) > 0)
|
||||
{
|
||||
$var = Array(
|
||||
|
@ -17,10 +17,12 @@
|
||||
{
|
||||
width: {time_width}%;
|
||||
background-image: url('{bg_time_image}');
|
||||
background-repeat: repeat;
|
||||
border-width: 1;
|
||||
color: #{font_color};
|
||||
font-family: {font};
|
||||
font-size: 65%;
|
||||
line-height: 110%;
|
||||
line-height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
@ -17,10 +17,12 @@
|
||||
{
|
||||
width: {time_width}%;
|
||||
background-image: url('{bg_time_image}');
|
||||
background-repeat: repeat;
|
||||
border-width: 1;
|
||||
color: #{font_color};
|
||||
font-family: {font};
|
||||
font-size: 65%;
|
||||
line-height: 110%;
|
||||
line-height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user