Changes to accomodate new common preference 'country'.

This commit is contained in:
skeeter 2001-06-22 01:58:08 +00:00
parent 9bf2e8a0ad
commit 3d0f6df1ff

View File

@ -31,7 +31,6 @@
$phpgw->preferences->add('calendar','workdayends'); $phpgw->preferences->add('calendar','workdayends');
$phpgw->preferences->add('calendar','defaultcalendar'); $phpgw->preferences->add('calendar','defaultcalendar');
$phpgw->preferences->add('calendar','defaultfilter'); $phpgw->preferences->add('calendar','defaultfilter');
$phpgw->preferences->add('calendar','locale');
$phpgw->preferences->add('calendar','interval'); $phpgw->preferences->add('calendar','interval');
if ($mainscreen_showevents == True) if ($mainscreen_showevents == True)
{ {
@ -222,9 +221,6 @@
$str = '<input type="checkbox" name="display_minicals" value="True"'.($phpgw_info['user']['preferences']['calendar']['display_minicals'] == 'Y' || $phpgw_info['user']['preferences']['calendar']['display_minicals'] == True?' checked':'').'>'; $str = '<input type="checkbox" name="display_minicals" value="True"'.($phpgw_info['user']['preferences']['calendar']['display_minicals'] == 'Y' || $phpgw_info['user']['preferences']['calendar']['display_minicals'] == True?' checked':'').'>';
display_item(lang('Display mini calendars when printing'),$str); display_item(lang('Display mini calendars when printing'),$str);
$country = CreateObject('phpgwapi.country');
display_item(lang('Select country for including holidays'),$country->form_select($phpgw_info['user']['preferences']['calendar']['locale'],'locale'));
$p->pparse('out','pref'); $p->pparse('out','pref');
$phpgw->common->phpgw_footer(); $phpgw->common->phpgw_footer();
?> ?>