30 require
'../../main.inc.php';
31 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
32 require_once DOL_DOCUMENT_ROOT.
'/core/lib/project.lib.php';
33 require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
34 require_once DOL_DOCUMENT_ROOT.
'/projet/class/task.class.php';
37 $langs->loadLangs(array(
'admin',
'errors',
'other',
'projects'));
43 $value =
GETPOST(
'value',
'alpha');
44 $action =
GETPOST(
'action',
'aZ09');
45 $label =
GETPOST(
'label',
'alpha');
46 $scandir =
GETPOST(
'scan_dir',
'alpha');
54 include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
56 if ($action ==
'updateMask') {
57 $maskconstproject =
GETPOST(
'maskconstproject',
'alpha');
58 $maskproject =
GETPOST(
'maskproject',
'alpha');
60 if ($maskconstproject) {
61 $res =
dolibarr_set_const($db, $maskconstproject, $maskproject,
'chaine', 0,
'', $conf->entity);
75 if ($action ==
'updateMaskTask') {
76 $maskconstmasktask =
GETPOST(
'maskconsttask',
'alpha');
77 $masktaskt =
GETPOST(
'masktask',
'alpha');
79 if ($maskconstmasktask) {
80 $res =
dolibarr_set_const($db, $maskconstmasktask, $masktaskt,
'chaine', 0,
'', $conf->entity);
92 } elseif ($action ==
'specimen') {
93 $modele =
GETPOST(
'module',
'alpha');
96 $project->initAsSpecimen();
99 $file =
''; $classname =
''; $filefound = 0;
100 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
101 foreach ($dirmodels as $reldir) {
102 $file =
dol_buildpath($reldir.
"core/modules/project/doc/pdf_".$modele.
".modules.php", 0);
103 if (file_exists($file)) {
105 $classname =
"pdf_".$modele;
113 $module =
new $classname($db);
115 if ($module->write_file($project, $langs) > 0) {
116 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=project&file=SPECIMEN.pdf");
124 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
126 } elseif ($action ==
'specimentask') {
127 $modele =
GETPOST(
'module',
'alpha');
130 $project->initAsSpecimen();
133 $file =
''; $classname =
''; $filefound = 0;
134 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
135 foreach ($dirmodels as $reldir) {
136 $file =
dol_buildpath($reldir.
"core/modules/project/task/doc/pdf_".$modele.
".modules.php", 0);
137 if (file_exists($file)) {
139 $classname =
"pdf_".$modele;
147 $module =
new $classname($db);
149 if ($module->write_file($project, $langs) > 0) {
150 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=project_task&file=SPECIMEN.pdf");
158 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
160 } elseif ($action ==
'set') {
163 } elseif ($action ==
'settask') {
166 } elseif ($action ==
'del') {
169 if ($conf->global->PROJECT_ADDON_PDF ==
"$value") {
173 } elseif ($action ==
'deltask') {
176 if ($conf->global->PROJECT_TASK_ADDON_PDF ==
"$value") {
180 } elseif ($action ==
'setdoc') {
189 } elseif ($action ==
'setdoctask') {
190 if (
dolibarr_set_const($db,
"PROJECT_TASK_ADDON_PDF", $value,
'chaine', 0,
'', $conf->entity)) {
193 $conf->global->PROJECT_TASK_ADDON_PDF = $value;
201 } elseif ($action ==
'setmod') {
206 } elseif ($action ==
'setmodtask') {
210 dolibarr_set_const($db,
"PROJECT_TASK_ADDON", $value,
'chaine', 0,
'', $conf->entity);
211 } elseif ($action ==
'updateoptions') {
212 if (
GETPOST(
'PROJECT_USE_SEARCH_TO_SELECT')) {
213 $companysearch =
GETPOST(
'activate_PROJECT_USE_SEARCH_TO_SELECT',
'alpha');
214 if (
dolibarr_set_const($db,
"PROJECT_USE_SEARCH_TO_SELECT", $companysearch,
'chaine', 0,
'', $conf->entity)) {
215 $conf->global->PROJECT_USE_SEARCH_TO_SELECT = $companysearch;
218 if (
GETPOST(
'PROJECT_ALLOW_TO_LINK_FROM_OTHER_COMPANY')) {
219 $projectToSelect =
GETPOST(
'projectToSelect',
'alpha');
220 dolibarr_set_const($db,
'PROJECT_ALLOW_TO_LINK_FROM_OTHER_COMPANY', $projectToSelect,
'chaine', 0,
'', $conf->entity);
222 if (
GETPOST(
'PROJECT_TIMESHEET_PREVENT_AFTER_MONTHS')) {
223 $timesheetFreezeDuration =
GETPOST(
'timesheetFreezeDuration',
'alpha');
224 dolibarr_set_const($db,
'PROJECT_TIMESHEET_PREVENT_AFTER_MONTHS', intval($timesheetFreezeDuration),
'chaine', 0,
'', $conf->entity);
226 } elseif (preg_match(
'/^(set|del)_?([A-Z_]+)$/', $action, $reg)) {
228 if (!
dolibarr_set_const($db, $reg[2], ($reg[1] ===
'set' ?
'1' :
'0'),
'chaine', 0,
'', $conf->entity) > 0) {
237 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
239 llxHeader(
"", $langs->trans(
"ProjectsSetup"));
243 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
244 print
load_fiche_titre($langs->trans(
"ProjectsSetup"), $linkback,
'title_setup');
255 print
'<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'">';
256 print
'<input type="hidden" name="token" value="'.newToken().
'">';
257 print
'<input type="hidden" name="action" value="setmainoptions">';
259 print
'<table class="noborder centpercent">';
260 print
'<tr class="liste_titre">';
261 print
"<td>".$langs->trans(
"Parameters").
"</td>\n";
262 print
'<td class="right" width="60">'.$langs->trans(
"Value").
'</td>'.
"\n";
263 print
'<td width="80"> </td></tr>'.
"\n";
265 print
'<tr class="oddeven">';
266 print
'<td width="80%">'.$langs->trans(
"ManageOpportunitiesStatus").
'</td>';
267 print
'<td width="60" class="right">';
269 print
'</td><td class="right">';
274 print
'<tr class="oddeven">';
275 print
'<td width="80%">'.$langs->trans(
"ManageTasks").
'</td>';
276 print
'<td width="60" class="right">';
278 print
'</td><td class="right">';
282 print
'</table></form>';
294 print
'<table class="noborder centpercent">';
295 print
'<tr class="liste_titre">';
296 print
'<td width="100">'.$langs->trans(
"Name").
'</td>';
297 print
'<td>'.$langs->trans(
"Description").
'</td>';
298 print
'<td>'.$langs->trans(
"Example").
'</td>';
299 print
'<td class="center" width="60">'.$langs->trans(
"Activated").
'</td>';
300 print
'<td class="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
305 foreach ($dirmodels as $reldir) {
309 $handle = opendir($dir);
310 if (is_resource($handle)) {
311 while (($file = readdir($handle)) !==
false) {
312 if (preg_match(
'/^(mod_.*)\.php$/i', $file, $reg)) {
314 $classname = substr($file, 4);
316 require_once $dir.$file.
'.php';
321 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
324 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
328 if ($module->isEnabled()) {
329 print
'<tr class="oddeven"><td>'.$module->name.
"</td><td>\n";
330 print $module->info();
334 print
'<td class="nowrap">';
335 $tmp = $module->getExample();
336 if (preg_match(
'/^Error/', $tmp)) {
337 $langs->load(
"errors");
338 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
339 } elseif ($tmp ==
'NotConfigured') {
340 print $langs->trans($tmp);
346 print
'<td class="center">';
347 if ($conf->global->PROJECT_ADDON ==
'mod_'.$classname) {
348 print
img_picto($langs->trans(
"Activated"),
'switch_on');
350 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=setmod&token='.
newToken().
'&value=mod_'.$classname.
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
355 $project->initAsSpecimen();
359 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
360 $nextval = $module->getNextValue($mysoc, $project);
361 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
362 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
364 $htmltooltip .= $nextval.
'<br>';
366 $htmltooltip .= $langs->trans($module->error).
'<br>';
370 print
'<td class="center">';
371 print
$form->textwithpicto(
'', $htmltooltip, 1, 0);
383 print
'</table><br>';
386 if (empty($conf->global->PROJECT_HIDE_TASKS)) {
390 print
'<table class="noborder centpercent">';
391 print
'<tr class="liste_titre">';
392 print
'<td width="100">'.$langs->trans(
"Name").
'</td>';
393 print
'<td>'.$langs->trans(
"Description").
'</td>';
394 print
'<td>'.$langs->trans(
"Example").
'</td>';
395 print
'<td class="center" width="60">'.$langs->trans(
"Activated").
'</td>';
396 print
'<td class="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
401 foreach ($dirmodels as $reldir) {
405 $handle = opendir($dir);
406 if (is_resource($handle)) {
407 while (($file = readdir($handle)) !==
false) {
408 if (preg_match(
'/^(mod_.*)\.php$/i', $file, $reg)) {
410 $classname = substr($file, 4);
412 require_once $dir.$file.
'.php';
417 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
420 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
424 if ($module->isEnabled()) {
425 print
'<tr class="oddeven"><td>'.$module->name.
"</td><td>\n";
426 print $module->info();
430 print
'<td class="nowrap">';
431 $tmp = $module->getExample();
432 if (preg_match(
'/^Error/', $tmp)) {
433 $langs->load(
"errors");
434 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
435 } elseif ($tmp ==
'NotConfigured') {
436 print $langs->trans($tmp);
442 print
'<td class="center">';
443 if ($conf->global->PROJECT_TASK_ADDON ==
'mod_'.$classname) {
444 print
img_picto($langs->trans(
"Activated"),
'switch_on');
446 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=setmodtask&token='.
newToken().
'&value=mod_'.$classname.
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
451 $project->initAsSpecimen();
455 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
456 $nextval = $module->getNextValue($mysoc, $project);
457 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
458 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
460 $htmltooltip .= $nextval.
'<br>';
462 $htmltooltip .= $langs->trans($module->error).
'<br>';
466 print
'<td class="center">';
467 print
$form->textwithpicto(
'', $htmltooltip, 1, 0);
479 print
'</table><br>';
494 $sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
495 $sql .=
" WHERE type = '".$db->escape($type).
"'";
496 $sql .=
" AND entity = ".$conf->entity;
498 $resql = $db->query($sql);
501 $num_rows = $db->num_rows(
$resql);
502 while ($i < $num_rows) {
503 $array = $db->fetch_array(
$resql);
504 array_push($def, $array[0]);
511 print
"<table class=\"noborder\" width=\"100%\">\n";
512 print
"<tr class=\"liste_titre\">\n";
513 print
' <td width="100">'.$langs->trans(
"Name").
"</td>\n";
514 print
" <td>".$langs->trans(
"Description").
"</td>\n";
515 print
'<td class="center" width="60">'.$langs->trans(
"Activated").
"</td>\n";
516 print
'<td class="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
517 print
'<td class="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
518 print
'<td class="center" width="80">'.$langs->trans(
"Preview").
'</td>';
523 foreach ($dirmodels as $reldir) {
524 foreach (array(
'',
'/doc') as $valdir) {
525 $dir =
dol_buildpath($reldir.
"core/modules/project/".$valdir);
528 $handle = opendir($dir);
529 if (is_resource($handle)) {
530 while (($file = readdir($handle)) !==
false) {
536 foreach ($filelist as $file) {
537 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
538 if (file_exists($dir.
'/'.$file)) {
539 $name = substr($file, 4,
dol_strlen($file) - 16);
540 $classname = substr($file, 0,
dol_strlen($file) - 12);
542 require_once $dir.
'/'.$file;
543 $module =
new $classname($db);
545 $modulequalified = 1;
546 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
547 $modulequalified = 0;
549 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
550 $modulequalified = 0;
553 if ($modulequalified) {
554 print
'<tr class="oddeven"><td width="100">';
555 print (empty($module->name) ? $name : $module->name);
557 if (method_exists($module,
'info')) {
558 print $module->info($langs);
560 print $module->description;
565 if (in_array($name, $def)) {
566 print
"<td class=\"center\">\n";
567 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">';
568 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
572 print
"<td class=\"center\">\n";
573 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=set&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
578 print
"<td class=\"center\">";
579 if ($conf->global->PROJECT_ADDON_PDF ==
"$name") {
580 print
img_picto($langs->trans(
"Default"),
'on');
582 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoc&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
587 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
588 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
589 if ($module->type ==
'pdf') {
590 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
592 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
593 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
595 print
'<td class="center">';
596 print
$form->textwithpicto(
'', $htmltooltip, 1, 0);
600 print
'<td class="center">';
601 if ($module->type ==
'pdf') {
602 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'bill').
'</a>';
604 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
618 print
'</table><br>';
622 if (empty($conf->global->PROJECT_HIDE_TASKS)) {
630 $type =
'project_task';
634 $sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
635 $sql .=
" WHERE type = '".$db->escape($type).
"'";
636 $sql .=
" AND entity = ".$conf->entity;
638 $resql = $db->query($sql);
641 $num_rows = $db->num_rows(
$resql);
642 while ($i < $num_rows) {
643 $array = $db->fetch_array(
$resql);
644 array_push($def, $array[0]);
651 print
"<table class=\"noborder\" width=\"100%\">\n";
652 print
"<tr class=\"liste_titre\">\n";
653 print
' <td width="100">'.$langs->trans(
"Name").
"</td>\n";
654 print
" <td>".$langs->trans(
"Description").
"</td>\n";
655 print
'<td class="center" width="60">'.$langs->trans(
"Activated").
"</td>\n";
656 print
'<td class="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
657 print
'<td class="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
658 print
'<td class="center" width="80">'.$langs->trans(
"Preview").
'</td>';
663 foreach ($dirmodels as $reldir) {
664 foreach (array(
'',
'/doc') as $valdir) {
665 $dir =
dol_buildpath($reldir.
"core/modules/project/task/".$valdir);
668 $handle = opendir($dir);
669 if (is_resource($handle)) {
670 while (($file = readdir($handle)) !==
false) {
676 foreach ($filelist as $file) {
677 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
678 if (file_exists($dir.
'/'.$file)) {
679 $name = substr($file, 4,
dol_strlen($file) - 16);
680 $classname = substr($file, 0,
dol_strlen($file) - 12);
682 require_once $dir.
'/'.$file;
683 $module =
new $classname($db);
685 $modulequalified = 1;
686 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
687 $modulequalified = 0;
689 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
690 $modulequalified = 0;
693 if ($modulequalified) {
694 print
'<tr class="oddeven"><td width="100">';
695 print (empty($module->name) ? $name : $module->name);
697 if (method_exists($module,
'info')) {
698 print $module->info($langs);
700 print $module->description;
705 if (in_array($name, $def)) {
706 print
"<td class=\"center\">\n";
707 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=deltask&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">';
708 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
712 print
"<td class=\"center\">\n";
713 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=settask&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
718 print
"<td class=\"center\">";
719 if ($conf->global->PROJECT_TASK_ADDON_PDF ==
"$name") {
720 print
img_picto($langs->trans(
"Default"),
'on');
722 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoctask&token='.
newToken().
'&value='.urlencode($name).
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
727 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
728 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
729 if ($module->type ==
'pdf') {
730 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
732 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
733 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
735 print
'<td class="center">';
736 print
$form->textwithpicto(
'', $htmltooltip, 1, 0);
740 print
'<td class="center">';
741 if ($module->type ==
'pdf') {
742 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimentask&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'bill').
'</a>';
744 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
757 print
'</table><br>';
766 print
'<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'">';
767 print
'<input type="hidden" name="token" value="'.newToken().
'">';
768 print
'<input type="hidden" name="action" value="updateoptions">';
769 print
'<input type="hidden" name="page_y" value="">';
771 print
'<table class="noborder centpercent">';
772 print
'<tr class="liste_titre">';
773 print
"<td>".$langs->trans(
"Parameters").
"</td>\n";
774 print
'<td class="right" width="60">'.$langs->trans(
"Value").
'</td>'.
"\n";
775 print
'<td width="80"> </td></tr>'.
"\n";
777 print
'<tr class="oddeven">';
778 print
'<td width="80%">'.$langs->trans(
"UseSearchToSelectProject").
'</td>';
779 if (!$conf->use_javascript_ajax) {
780 print
'<td class="nowrap right" colspan="2">';
781 print $langs->trans(
"NotAvailableWhenAjaxDisabled");
784 print
'<td width="60" class="right">';
785 $arrval = array(
'0'=>$langs->trans(
"No"),
786 '1'=>$langs->trans(
"Yes").
' ('.$langs->trans(
"NumberOfKeyToSearch", 1).
')',
787 '2'=>$langs->trans(
"Yes").
' ('.$langs->trans(
"NumberOfKeyToSearch", 2).
')',
788 '3'=>$langs->trans(
"Yes").
' ('.$langs->trans(
"NumberOfKeyToSearch", 3).
')',
790 print
$form->selectarray(
"activate_PROJECT_USE_SEARCH_TO_SELECT", $arrval, $conf->global->PROJECT_USE_SEARCH_TO_SELECT);
791 print
'</td><td class="right">';
792 print
'<input type="submit" class="button small reposition" name="PROJECT_USE_SEARCH_TO_SELECT" value="'.$langs->trans(
"Modify").
'">';
797 print
'<tr class="oddeven">';
798 print
'<td>'.$langs->trans(
"AllowToSelectProjectFromOtherCompany").
'</td>';
800 print
'<td class="right" width="60" colspan="2">';
801 print
'<input type="text" id="projectToSelect" name="projectToSelect" value="'.$conf->global->PROJECT_ALLOW_TO_LINK_FROM_OTHER_COMPANY.
'"/> ';
802 print
$form->textwithpicto(
'', $langs->trans(
'AllowToLinkFromOtherCompany'));
803 print
'<input type="submit" class="button small reposition" name="PROJECT_ALLOW_TO_LINK_FROM_OTHER_COMPANY" value="'.$langs->trans(
"Modify").
'">';
807 $key =
'PROJECT_CLASSIFY_CLOSED_WHEN_ALL_TASKS_DONE';
808 echo
'<tr class="oddeven">',
810 $form->textwithpicto($langs->transnoentities($key), $langs->transnoentities($key .
'_help')),
812 '<td class="right" colspan="2">',
817 print
'<tr class="oddeven">';
818 print
'<td>'.$langs->trans(
"TimesheetPreventAfterFollowingMonths").
'</td>';
820 print
'<td class="right" width="60" colspan="2">';
821 print
'<input type="number" class="width50" id="timesheetFreezeDuration" name="timesheetFreezeDuration" min="0" step="1" value="'.$conf->global->PROJECT_TIMESHEET_PREVENT_AFTER_MONTHS.
'"/> ';
822 print
'<input type="submit" class="button small reposition" name="PROJECT_TIMESHEET_PREVENT_AFTER_MONTHS" value="'.$langs->trans(
"Modify").
'">';