forked from extern/egroupware
"fixed typo (in commented code) phpgwpai"
This commit is contained in:
parent
28a9c4b470
commit
841aef5769
@ -452,19 +452,19 @@ class calendar_uiviews extends calendar_ui
|
||||
|
||||
# temporarly disabled, because it collides with the title for the website
|
||||
#
|
||||
# // add navigation for previous and next
|
||||
# // prev. week
|
||||
# $GLOBALS['egw_info']['flags']['app_header'] = html::a_href(html::image('phpgwpai','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
# 'menuaction' => $this->view_menuaction,
|
||||
# 'date' => date('Ymd',$this->first-$days*DAY_s),
|
||||
# )) . ' <b>'.$GLOBALS['egw_info']['flags']['app_header'];
|
||||
# // next week
|
||||
# $GLOBALS['egw_info']['flags']['app_header'] .= '</b> '.html::a_href(html::image('phpgwpai','last',lang('next'),$options=' alt=">>"'),array(
|
||||
# 'menuaction' => $this->view_menuaction,
|
||||
# 'date' => date('Ymd',$this->last+$days*DAY_s),
|
||||
# ));
|
||||
#
|
||||
# $class = $class == 'row_on' ? 'th' : 'row_on';
|
||||
# // add navigation for previous and next
|
||||
# // prev. week
|
||||
# $GLOBALS['egw_info']['flags']['app_header'] = html::a_href(html::image('phpgwapi','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
# 'menuaction' => $this->view_menuaction,
|
||||
# 'date' => date('Ymd',$this->first-$days*DAY_s),
|
||||
# )) . ' <b>'.$GLOBALS['egw_info']['flags']['app_header'];
|
||||
# // next week
|
||||
# $GLOBALS['egw_info']['flags']['app_header'] .= '</b> '.html::a_href(html::image('phpgwapi','last',lang('next'),$options=' alt=">>"'),array(
|
||||
# 'menuaction' => $this->view_menuaction,
|
||||
# 'date' => date('Ymd',$this->last+$days*DAY_s),
|
||||
# ));
|
||||
#
|
||||
# $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";
|
||||
|
||||
$search_params = array(
|
||||
@ -1602,11 +1602,11 @@ class calendar_uiviews extends calendar_ui
|
||||
if ($this->day >= 15) $prev = $t_arr; // we stay in the same month
|
||||
$prev['day'] = $this->day < 15 ? 15 : 1;
|
||||
$half = $this->bo->date2string($prev);
|
||||
$title = html::a_href(html::image('phpgwpai','first',lang('back one month'),$options=' alt="<<"'),array(
|
||||
$title = html::a_href(html::image('phpgwapi','first',lang('back one month'),$options=' alt="<<"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => $full,
|
||||
)) . ' '.
|
||||
html::a_href(html::image('phpgwpai','left',lang('back half a month'),$options=' alt="<"'),array(
|
||||
html::a_href(html::image('phpgwapi','left',lang('back half a month'),$options=' alt="<"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => $half,
|
||||
)) . ' '.$title;
|
||||
@ -1628,11 +1628,11 @@ class calendar_uiviews extends calendar_ui
|
||||
if ($this->day < 15) $next = $t_arr; // we stay in the same month
|
||||
$next['day'] = $this->day < 15 ? 15 : 1;
|
||||
$half = $this->bo->date2string($next);
|
||||
$title .= ' '.html::a_href(html::image('phpgwpai','right',lang('forward half a month'),$options=' alt=">>"'),array(
|
||||
$title .= ' '.html::a_href(html::image('phpgwapi','right',lang('forward half a month'),$options=' alt=">>"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => $half,
|
||||
)). ' '.
|
||||
html::a_href(html::image('phpgwpai','last',lang('forward one month'),$options=' alt=">>"'),array(
|
||||
html::a_href(html::image('phpgwapi','last',lang('forward one month'),$options=' alt=">>"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => $full,
|
||||
));
|
||||
@ -1678,12 +1678,12 @@ class calendar_uiviews extends calendar_ui
|
||||
else
|
||||
{
|
||||
// prev. week
|
||||
$title = html::a_href(html::image('phpgwpai','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
$title = html::a_href(html::image('phpgwapi','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',$t-7*DAY_s),
|
||||
)) . ' <b>'.$title;
|
||||
// next week
|
||||
$title .= '</b> '.html::a_href(html::image('phpgwpai','last',lang('next'),$options=' alt=">>"'),array(
|
||||
$title .= '</b> '.html::a_href(html::image('phpgwapi','last',lang('next'),$options=' alt=">>"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',$t+7*DAY_s),
|
||||
));
|
||||
@ -1737,14 +1737,14 @@ class calendar_uiviews extends calendar_ui
|
||||
{
|
||||
if (!$i) // prev. day only for the first day
|
||||
{
|
||||
$title = html::a_href(html::image('phpgwpai','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
$title = html::a_href(html::image('phpgwapi','first',lang('previous'),$options=' alt="<<"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',$start-DAY_s),
|
||||
)) . ' '.$title;
|
||||
}
|
||||
if ($i == $days-1) // next day only for the last day
|
||||
{
|
||||
$title .= ' '.html::a_href(html::image('phpgwpai','last',lang('next'),$options=' alt=">>"'),array(
|
||||
$title .= ' '.html::a_href(html::image('phpgwapi','last',lang('next'),$options=' alt=">>"'),array(
|
||||
'menuaction' => $this->view_menuaction,
|
||||
'date' => date('Ymd',$start+DAY_s),
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user