542 |
$nbtr=0; |
$nbtr=0; |
543 |
|
|
544 |
// Lien avec calendrier si module activé |
// Lien avec calendrier si module activé |
545 |
if ($conf->webcal->enabled) { |
if ($conf->webcal->enabled) |
546 |
if ($conf->webcal->syncro != 'never') |
{ |
547 |
|
if ($conf->global->PHPWEBCALENDAR_SYNCRO != 'never') |
548 |
{ |
{ |
549 |
$langs->load("other"); |
$langs->load("other"); |
550 |
if (! $user->webcal_login) |
if (! $user->webcal_login) |
558 |
} |
} |
559 |
else |
else |
560 |
{ |
{ |
561 |
if ($conf->webcal->syncro == 'always') |
if ($conf->global->PHPWEBCALENDAR_SYNCRO == 'always') |
562 |
{ |
{ |
563 |
print '<input type="hidden" name="todo_webcal" value="on">'; |
print '<input type="hidden" name="todo_webcal" value="on">'; |
564 |
} |
} |
565 |
else |
else |
566 |
{ |
{ |
567 |
print '<tr><td width="25%" nowrap>'.$langs->trans("AddCalendarEntry").'</td>'; |
print '<tr><td width="25%" nowrap>'.$langs->trans("AddCalendarEntry").'</td>'; |
568 |
print '<td><input type="checkbox" name="todo_webcal"'.(($conf->webcal->syncro=='always' || $conf->webcal->syncro=='yesbydefault')?' checked':'').'></td>'; |
print '<td><input type="checkbox" name="todo_webcal"'.(($conf->global->PHPWEBCALENDAR_SYNCRO=='always' || $conf->global->PHPWEBCALENDAR_SYNCRO=='yesbydefault')?' checked':'').'></td>'; |
569 |
print '</tr>'; |
print '</tr>'; |
570 |
$nbtr++; |
$nbtr++; |
571 |
} |
} |