[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: calendar/inc class.uialarm.inc.php,1.4.2.1,1.4.
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: calendar/inc class.uialarm.inc.php,1.4.2.1,1.4.2.1.2.1 class.uicalendar.inc.php,1.66.2.55.2.1,1.66.2.55.2.2 class.uiholiday.inc.php,1.3.2.2,1.3.2.2.2.1 class.uiicalendar.inc.php,1.3.2.2,1.3.2.2.2.1 hook_sidebox_menu.inc.php,1.1.2.1,1.1.2.2 |
Date: |
Sat, 19 Apr 2003 17:11:52 -0400 |
Update of /cvsroot/phpgroupware/calendar/inc
In directory subversions:/tmp/cvs-serv18690/inc
Modified Files:
Tag: Version-0_9_16-branch
class.uialarm.inc.php class.uicalendar.inc.php
class.uiholiday.inc.php class.uiicalendar.inc.php
hook_sidebox_menu.inc.php
Log Message:
updated app-header
Index: class.uialarm.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.uialarm.inc.php,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.1.2.1
diff -C2 -r1.4.2.1 -r1.4.2.1.2.1
*** class.uialarm.inc.php 31 Oct 2002 01:57:55 -0000 1.4.2.1
--- class.uialarm.inc.php 19 Apr 2003 21:11:48 -0000 1.4.2.1.2.1
***************
*** 68,74 ****
}
! unset($GLOBALS['phpgw_info']['flags']['noheader']);
! unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
! $GLOBALS['phpgw']->common->phpgw_header();
$this->template =
CreateObject('phpgwapi.Template',$this->template_dir);
--- 68,75 ----
}
! unset($GLOBALS['phpgw_info']['flags']['noheader']);
! unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
! $GLOBALS['phpgw_info']['flags']['app_header'] =
$GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Alarm
Management');
! $GLOBALS['phpgw']->common->phpgw_header();
$this->template =
CreateObject('phpgwapi.Template',$this->template_dir);
***************
*** 77,82 ****
$this->template->set_file(
Array(
! 'alarm' => 'alarm.tpl'
! )
);
$this->template->set_block('alarm','alarm_management','alarm_management');
--- 78,83 ----
$this->template->set_file(
Array(
! 'alarm' => 'alarm.tpl'
! )
);
$this->template->set_block('alarm','alarm_management','alarm_management');
***************
*** 97,115 ****
{
$this->prep_page();
! echo
ExecMethod('calendar.uicalendar.view_event',$this->event);
!
$this->template->set_var('hr_text','<center><b>'.lang('Alarms').'</b></center></br><hr>');
! $this->template->parse('row','hr',True);
$var = Array(
'action_url' =>
$GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.uialarm.form_handler')),
'time_lang' => lang('Time'),
'text_lang' => lang('Text'),
! 'enabled_pict' =>
$GLOBALS['phpgw']->common->image('calendar','enabled.gif'),
'disabled_pict' =>
$GLOBALS['phpgw']->common->image('calendar','disabled.gif')
);
-
$this->output_template_array('row','alarm_headers',$var);
- $this->template->set_var('hr_text','<hr>');
- $this->template->parse('row','hr',True);
if($this->event['alarm'])
--- 98,122 ----
{
$this->prep_page();
! if
(!ExecMethod('calendar.uicalendar.view_event',$this->event))
! {
! echo '<center>'.lang('You do not have
permission to read this record!').'</center>';
! $GLOBALS['phpgw']->common->phpgw_exit(True);
! }
! echo "<br>\n";
!
$GLOBALS['phpgw']->template->set_var('th_bg',$this->theme['th_bg']);
!
$GLOBALS['phpgw']->template->set_var('hr_text',lang('Alarms').':');
! $GLOBALS['phpgw']->template->fp('row','hr',True);
!
$GLOBALS['phpgw']->template->pfp('phpgw_body','view_event');
!
$var = Array(
+ 'tr_color' =>
$this->theme['th_bg'],
'action_url' =>
$GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.uialarm.form_handler')),
'time_lang' => lang('Time'),
'text_lang' => lang('Text'),
! 'enabled_pict' =>
$GLOBALS['phpgw']->common->image('calendar','enabled.gif'),
'disabled_pict' =>
$GLOBALS['phpgw']->common->image('calendar','disabled.gif')
);
$this->output_template_array('row','alarm_headers',$var);
if($this->event['alarm'])
***************
*** 128,134 ****
}
}
- $this->template->set_var('hr_text','<hr>');
- $this->template->parse('row','hr',True);
-
echo $this->template->fp('out','alarm_management');
}
--- 135,138 ----
Index: class.uicalendar.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.uicalendar.inc.php,v
retrieving revision 1.66.2.55.2.1
retrieving revision 1.66.2.55.2.2
diff -C2 -r1.66.2.55.2.1 -r1.66.2.55.2.2
*** class.uicalendar.inc.php 12 Apr 2003 19:08:59 -0000 1.66.2.55.2.1
--- class.uicalendar.inc.php 19 Apr 2003 21:11:48 -0000 1.66.2.55.2.2
***************
*** 309,313 ****
}
! function printer_friendly($body)
{
if($this->bo->printer_friendly)
--- 309,313 ----
}
! function printer_friendly($body,$app_header='')
{
[...1176 lines suppressed...]
if ($this->bo->return_to)
{
***************
*** 4073,4080 ****
);
$p->set_var($var);
! $extra_buttons .= ($event['id']>0?'<br>':'') .
$p->fp('out','form_button');
}
! $p->set_var('extra_buttons',$extra_buttons);
!
$p->pparse('out','edit_entry');
}
--- 4081,4087 ----
);
$p->set_var($var);
! $cancel_button = $p->fp('out','form_button');
}
! $p->set_var('cancel_button',$cancel_button);
$p->pparse('out','edit_entry');
}
Index: class.uiholiday.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.uiholiday.inc.php,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.2.2.1
diff -C2 -r1.3.2.2 -r1.3.2.2.2.1
*** class.uiholiday.inc.php 27 Feb 2003 19:14:03 -0000 1.3.2.2
--- class.uiholiday.inc.php 19 Apr 2003 21:11:49 -0000 1.3.2.2.2.1
***************
*** 42,47 ****
$this->base_url = $this->bo->base_url;
$this->template_dir =
$GLOBALS['phpgw']->common->get_tpl_dir('calendar');
-
$this->sb = CreateObject('phpgwapi.sbox');
}
--- 42,48 ----
$this->base_url = $this->bo->base_url;
$this->template_dir =
$GLOBALS['phpgw']->common->get_tpl_dir('calendar');
$this->sb = CreateObject('phpgwapi.sbox');
+
+ $GLOBALS['phpgw_info']['flags']['app_header'] =
$GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Holiday
Management');
}
***************
*** 53,57 ****
$GLOBALS['phpgw']->common->phpgw_header();
! $p =
CreateObject('phpgwapi.Template',$this->template_dir);
$p->set_file(Array('locales'=>'locales.tpl'));
$p->set_block('locales','list','list');
--- 54,58 ----
$GLOBALS['phpgw']->common->phpgw_header();
! $p = &$GLOBALS['phpgw']->template;
$p->set_file(Array('locales'=>'locales.tpl'));
$p->set_block('locales','list','list');
***************
*** 149,153 ****
$var = Array(
! 'th_bg' =>
$phpgw_info['theme']['th_bg'],
'left_next_matchs' =>
$GLOBALS['phpgw']->nextmatchs->left('/index.php',$this->bo->start,$this->bo->total,'&menuaction=calendar.uiholiday.edit_locale&locale='.$this->bo->locales[0].'&year='.$this->bo->year),
'right_next_matchs' =>
$GLOBALS['phpgw']->nextmatchs->right('/index.php',$this->bo->start,$this->bo->total,'&menuaction=calendar.uiholiday.edit_locale&locale='.$this->bo->locales[0].'&year='.$this->bo->year),
--- 150,154 ----
$var = Array(
! 'th_bg' =>
$GLOBALS['phpgw_info']['theme']['th_bg'],
'left_next_matchs' =>
$GLOBALS['phpgw']->nextmatchs->left('/index.php',$this->bo->start,$this->bo->total,'&menuaction=calendar.uiholiday.edit_locale&locale='.$this->bo->locales[0].'&year='.$this->bo->year),
'right_next_matchs' =>
$GLOBALS['phpgw']->nextmatchs->right('/index.php',$this->bo->start,$this->bo->total,'&menuaction=calendar.uiholiday.edit_locale&locale='.$this->bo->locales[0].'&year='.$this->bo->year),
***************
*** 235,241 ****
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
$GLOBALS['phpgw']->common->phpgw_header();
! $t =
CreateObject('phpgwapi.Template',$this->template_dir);
$t->set_file(Array('holiday'=>'holiday.tpl','form_button'=>'form_button_script.tpl'));
$t->set_block('holiday','form','form');
--- 236,243 ----
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
+ $GLOBALS['phpgw_info']['flags']['app_header'] =
$GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.($this->bo->id ?
lang('Edit') : lang('Add')).' '.lang('Holiday');
$GLOBALS['phpgw']->common->phpgw_header();
! $t = &$GLOBALS['phpgw']->template;
$t->set_file(Array('holiday'=>'holiday.tpl','form_button'=>'form_button_script.tpl'));
$t->set_block('holiday','form','form');
***************
*** 267,271 ****
// Date
!
$this->display_item($t,lang('Date'),$GLOBALS['phpgw']->common->dateformatorder($this->sb->getYears('holiday[year]',$holiday['occurence']>1900?$holiday['occurence']:0),$this->sb->getMonthText('holiday[month_num]',$holiday['month']),$this->sb->getDays('holiday[mday]',$holiday['day'])));
// Occurence
--- 269,274 ----
// Date
!
$this->display_item($t,lang('Date'),$GLOBALS['phpgw']->common->dateformatorder($this->sb->getYears('holiday[year]',$holiday['occurence']>1900?$holiday['occurence']:0),$this->sb->getMonthText('holiday[month_num]',$holiday['month']),$this->sb->getDays('holiday[mday]',$holiday['day'])).
! ' '.lang('Set a Year only for one-time /
non-regular holidays.'));
// Occurence
***************
*** 301,306 ****
}
$dow_html = '<select
name="holiday[dow]">'."\n".$out.'</select>'."\n";
!
$this->display_item($t,lang('Occurence'),$occurence_html.' '.$dow_html);
! $this->display_item($t,lang('Observance Rule'),'<input
type="checkbox" name="holiday[observance_rule]"
value="True"'.($holiday['observance_rule']?' checked':'').'>');
$t->set_var('lang_add',lang('Save'));
--- 304,311 ----
}
$dow_html = '<select
name="holiday[dow]">'."\n".$out.'</select>'."\n";
!
$this->display_item($t,lang('Occurence'),$occurence_html.' '.$dow_html.
! ' '.lang('You can either set a Year or a
Occurence, not both !!!'));
! $this->display_item($t,lang('Observance Rule'),'<input
type="checkbox" name="holiday[observance_rule]"
value="True"'.($holiday['observance_rule']?' checked':'').'>'.
! ' '.lang('If checked holidays falling on a
weekend, are taken on the monday after.'));
$t->set_var('lang_add',lang('Save'));
***************
*** 311,315 ****
$link_params = Array(
'menuaction' =>
'calendar.uiholiday.edit_locale',
! 'year' => $this->bo->year,
'locale' =>
$this->bo->locales[0]
);
--- 316,320 ----
$link_params = Array(
'menuaction' =>
'calendar.uiholiday.edit_locale',
! 'year' =>
$this->bo->year,
'locale' =>
$this->bo->locales[0]
);
***************
*** 322,333 ****
}
! $var = Array(
'action_url_button' =>
$GLOBALS['phpgw']->link($this->base_url,$link_params),
'action_text_button' => lang('Cancel'),
'action_confirm_button' => '',
'action_extra_field' => ''
! );
! $t->set_var($var);
$t->parse('cancel_button','form_button');
$t->pparse('out','form');
}
--- 327,358 ----
}
! $t->set_var(Array(
'action_url_button' =>
$GLOBALS['phpgw']->link($this->base_url,$link_params),
'action_text_button' => lang('Cancel'),
'action_confirm_button' => '',
'action_extra_field' => ''
! ));
$t->parse('cancel_button','form_button');
+
+ if ($this->bo->id)
+ {
+ $link_params = Array(
+ 'menuaction' =>
'calendar.uiholiday.delete_holiday',
+ 'year' =>
$this->bo->year,
+ 'locale' =>
$this->bo->locales[0],
+ 'id' => $this->bo->id
+ );
+ $t->set_var(Array(
+ 'action_url_button' =>
$GLOBALS['phpgw']->link($this->base_url,$link_params),
+ 'action_text_button' =>
lang('Delete'),
+ 'action_confirm_button' => '',
+ 'action_extra_field' => ''
+ ));
+ $t->parse('delete_button','form_button');
+ }
+ else
+ {
+ $t->set_var('delete_button',' ');
+ }
$t->pparse('out','form');
}
***************
*** 472,475 ****
--- 497,501 ----
{
$var = Array(
+ 'tr_color' =>
$GLOBALS['phpgw']->nextmatchs->alternate_row_color(),
'field' => $field,
'data' => $data
Index: class.uiicalendar.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.uiicalendar.inc.php,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.2.2.1
diff -C2 -r1.3.2.2 -r1.3.2.2.2.1
*** class.uiicalendar.inc.php 23 Jun 2002 21:24:22 -0000 1.3.2.2
--- class.uiicalendar.inc.php 19 Apr 2003 21:11:49 -0000 1.3.2.2.2.1
***************
*** 31,37 ****
$this->bo = CreateObject('calendar.boicalendar');
$this->template = $GLOBALS['phpgw']->template;
}
-
function print_test($val,$title,$x_pre='')
{
--- 31,37 ----
$this->bo = CreateObject('calendar.boicalendar');
$this->template = $GLOBALS['phpgw']->template;
+ $GLOBALS['phpgw_info']['flags']['app_header'] =
lang('Calendar - [iv]Cal Importer');
}
function print_test($val,$title,$x_pre='')
{
***************
*** 192,196 ****
$var = Array(
! 'vcal_header' => '<p> <b>' .
lang('Calendar - [iv]Cal Importer') . '</b><hr><p>',
'ical_lang' => lang('(i/v)Cal'),
'action_url' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.boicalendar.import'),
--- 192,196 ----
$var = Array(
! 'vcal_header' => '<p>',
'ical_lang' => lang('(i/v)Cal'),
'action_url' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.boicalendar.import'),
Index: hook_sidebox_menu.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/Attic/hook_sidebox_menu.inc.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** hook_sidebox_menu.inc.php 17 Apr 2003 12:28:45 -0000 1.1.2.1
--- hook_sidebox_menu.inc.php 19 Apr 2003 21:11:49 -0000 1.1.2.2
***************
*** 36,53 ****
'Daily Matrix
View'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.matrixselect')
);
-
-
display_sidebox($appname,$menu_title,$file);
! $menu_title = lang('Preferences');
! $file = Array(
!
'Preferences'=>$GLOBALS['phpgw']->link('/preferences/preferences.php','appname=calendar'),
! 'Grant
Access'=>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app=calendar'),
! 'Edit Categories'
=>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=calendar&cats_level=True&global_cats=True'),
!
'Import'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiicalendar.import')
! );
!
! display_sidebox($appname,$menu_title,$file);
!
if ($GLOBALS['phpgw_info']['user']['apps']['admin'])
{
--- 36,53 ----
'Daily Matrix
View'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.matrixselect')
);
display_sidebox($appname,$menu_title,$file);
! if ($GLOBALS['phpgw_info']['user']['apps']['preferences'])
! {
! $menu_title = lang('Preferences');
! $file = Array(
!
'Preferences'=>$GLOBALS['phpgw']->link('/preferences/preferences.php','appname=calendar'),
! 'Grant
Access'=>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app=calendar'),
! 'Edit Categories'
=>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=calendar&cats_level=True&global_cats=True'),
!
'Import'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiicalendar.import')
! );
! display_sidebox($appname,$menu_title,$file);
! }
!
if ($GLOBALS['phpgw_info']['user']['apps']['admin'])
{
***************
*** 58,64 ****
'Global Categories'
=>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index&appname=calendar'),
);
-
display_sidebox($appname,$menu_title,$file);
-
}
}
--- 58,62 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: calendar/inc class.uialarm.inc.php,1.4.2.1,1.4.2.1.2.1 class.uicalendar.inc.php,1.66.2.55.2.1,1.66.2.55.2.2 class.uiholiday.inc.php,1.3.2.2,1.3.2.2.2.1 class.uiicalendar.inc.php,1.3.2.2,1.3.2.2.2.1 hook_sidebox_menu.inc.php,1.1.2.1,1.1.2.2,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: calendar/setup phpgw_de.lang,1.12.2.13.2.1,1.12.2.13.2.2 phpgw_en.lang,1.13.2.20.2.1,1.13.2.20.2.2
- Next by Date:
[Phpgroupware-cvs] CVS: calendar/templates/default alarm.tpl,1.1,1.1.4.1 edit.tpl,1.13.2.1,1.13.2.1.2.1 head.tpl,1.4,1.4.4.1 holiday.tpl,1.1,1.1.6.1 locales.tpl,1.2.4.1,1.2.4.1.2.1 matrix_query.tpl,1.5,1.5.6.1 overlap.tpl,1.2,1.2.6.1 search.tpl,1.2,1.2.6.1 view.tpl,1.6,1.6.4.1 year.tpl,1.1,1.1.4.1
- Previous by thread:
[Phpgroupware-cvs] CVS: calendar/setup phpgw_de.lang,1.12.2.13.2.1,1.12.2.13.2.2 phpgw_en.lang,1.13.2.20.2.1,1.13.2.20.2.2
- Next by thread:
[Phpgroupware-cvs] CVS: calendar/templates/default alarm.tpl,1.1,1.1.4.1 edit.tpl,1.13.2.1,1.13.2.1.2.1 head.tpl,1.4,1.4.4.1 holiday.tpl,1.1,1.1.6.1 locales.tpl,1.2.4.1,1.2.4.1.2.1 matrix_query.tpl,1.5,1.5.6.1 overlap.tpl,1.2,1.2.6.1 search.tpl,1.2,1.2.6.1 view.tpl,1.6,1.6.4.1 year.tpl,1.1,1.1.4.1
- Index(es):