diff --git a/htdocs/admin/societe.php b/htdocs/admin/societe.php index da27b2e40df..794ff74d1eb 100644 --- a/htdocs/admin/societe.php +++ b/htdocs/admin/societe.php @@ -141,7 +141,7 @@ if ($_GET["action"] == 'setdoc') $form=new Form($db); -llxHeader(); +llxHeader('',$langs->trans("CompanySetup"),'EN:Module Third Parties setup|FR:Paramétrage_du_module_Tiers'); $linkback=''.$langs->trans("BackToModuleList").''; print_fiche_titre($langs->trans("CompanySetup"),$linkback,'setup'); @@ -159,7 +159,7 @@ print '
| '.$langs->trans("Name").' | '; +print ''.$langs->trans("Name").' | '; print ''.$langs->trans("Description").' | '; print ''.$langs->trans("Example").' | '; print ''.$langs->trans("Status").' | '; -print ''; +print ' | '; print " | ||||||||||
| '.$modCodeCompta->nom." | \n"; + print ' | '.$modCodeCompta->nom." | \n"; print $modCodeCompta->info($langs); print ' | '; print ''.$modCodeCompta->getExample($langs)." | \n"; @@ -310,11 +310,10 @@ else print '||||||||||||
| '.$langs->trans("Name").' | '; +print ''.$langs->trans("Name").' | '; print ''.$langs->trans("Description").' | '; -print ''.$langs->trans("Activated").' | '; -print ''.$langs->trans("Default").' | '; -print ''.$langs->trans("Infos").' | '; +print ''.$langs->trans("Status").' | '; +print ''.$langs->trans("Infos").' | '; print ""; - if ($conf->global->COMPANY_ADDON_PDF == "$name") - { - print img_picto($langs->trans("Default"),'on'); - } - else - { - print 'scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').''; - } - print ' | '; - // Info $htmltooltip = ''.$langs->trans("Name").': '.$module->name; $htmltooltip.='|
| ';
- $textbis=$langs->trans("ListOfDirectories");
+ $texttitle=$langs->trans("ListOfDirectories");
$listofdir=explode(',',preg_replace('/[\r\n]+/',',',trim($conf->global->COMPANY_ADDON_PDF_ODT_PATH)));
$listoffiles=array();
foreach($listofdir as $key=>$tmpdir)
@@ -99,14 +159,36 @@ class doc_generic_odt extends ModeleThirdPartyDoc
$tmpdir=trim($tmpdir);
$tmpdir=preg_replace('/DOL_DATA_ROOT/',DOL_DATA_ROOT,$tmpdir);
if (! $tmpdir) { unset($listofdir[$key]); continue; }
- if (! is_dir($tmpdir)) $textbis.=img_warning($langs->trans("ErrorDirNotFound",$tmpdir),0);
+ if (! is_dir($tmpdir)) $texttitle.=img_warning($langs->trans("ErrorDirNotFound",$tmpdir),0);
else
{
$tmpfiles=dol_dir_list($tmpdir,'files',0,'\.odt');
if (sizeof($tmpfiles)) $listoffiles=array_merge($listoffiles,$tmpfiles);
}
}
- $texte.= $form->textwithpicto($textbis,$langs->trans("ListOfDirectoriesForModelGenODT"),1,'help');
+ $texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
+ // Add list of substitution keys
+ $texthelp.=' '.$langs->trans("FollowingSubstitutionKeysCanBeUsed").' '; + $dummy=new Societe($db); + $tmparray=$this->get_substitutionarray_mysoc($dummy); + $nb=0; + foreach($tmparray as $key => $val) + { + $texthelp.='{'.$key.'} '; + $nb++; + if ($nb >= 5) { $texthelp.='... '; break; } + } + $tmparray=$this->get_substitutionarray_object($dummy); + $nb=0; + foreach($tmparray as $key => $val) + { + $texthelp.='{'.$key.'} '; + $nb++; + if ($nb >= 5) { $texthelp.='... '; break; } + } + $texthelp.=$langs->trans("FullListOnOnlineDocumentation"); + + $texte.= $form->textwithpicto($texttitle,$texthelp,1,'help'); //var_dump($listofdir); $texte.= ' | |||||||||