/[dolibarr]/dolibarr/htdocs/comm/action/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/comm/action/fiche.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.62 by eldy, Sat Oct 1 14:25:34 2005 UTC revision 1.63 by eldy, Sat Oct 1 15:57:05 2005 UTC
# Line 542  function add_row_for_webcal_link() Line 542  function add_row_for_webcal_link()
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)
# Line 557  function add_row_for_webcal_link() Line 558  function add_row_for_webcal_link()
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                  }                  }

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26