';
$texttitle = $langs->trans("ListOfDirectories");
$listofdir = explode(',', preg_replace('/[\r\n]+/', ',', $odtPath));
$listoffiles = array();
@@ -155,71 +155,71 @@ class doc_generic_user_odt extends ModelePDFUser
// Scan directories
if (count($listofdir)) {
- $texte .= $langs->trans("NumberOfModelFilesFound").': '.count($listoffiles).'';
+ $out .= $langs->trans("NumberOfModelFilesFound").': '.count($listoffiles).'';
if ($odtChosen) {
// Model for creation
$list = ModelePDFUser::liste_modeles($this->db);
- $texte .= '';
- $texte .= '';
- $texte .= '| '.$langs->trans("DefaultModelPropalCreate").' | ';
- $texte .= '';
- $texte .= $form->selectarray('value2', $list, getDolGlobalString('USER_ADDON_PDF_ODT_DEFAULT'));
- $texte .= " | ";
+ $out .= '';
+ $out .= '';
+ $out .= '| '.$langs->trans("DefaultModelPropalCreate").' | ';
+ $out .= '';
+ $out .= $form->selectarray('value2', $list, getDolGlobalString('USER_ADDON_PDF_ODT_DEFAULT'));
+ $out .= " | ";
- $texte .= '';
- $texte .= '| '.$langs->trans("DefaultModelPropalToBill").' | ';
- $texte .= '';
- $texte .= $form->selectarray('value3', $list, getDolGlobalString('USER_ADDON_PDF_ODT_TOBILL'));
- $texte .= " | ";
- $texte .= '';
+ $out .= ' ';
+ $out .= '| '.$langs->trans("DefaultModelPropalToBill").' | ';
+ $out .= '';
+ $out .= $form->selectarray('value3', $list, getDolGlobalString('USER_ADDON_PDF_ODT_TOBILL'));
+ $out .= " | ";
+ $out .= '';
- $texte .= '| '.$langs->trans("DefaultModelPropalClosed").' | ';
- $texte .= '';
- $texte .= $form->selectarray('value4', $list, getDolGlobalString('USER_ADDON_PDF_ODT_CLOSED'));
- $texte .= " | ";
- $texte .= ' ';
+ $out .= ''.$langs->trans("DefaultModelPropalClosed").' | ';
+ $out .= '';
+ $out .= $form->selectarray('value4', $list, getDolGlobalString('USER_ADDON_PDF_ODT_CLOSED'));
+ $out .= " | ";
+ $out .= ' ';
}
- $texte .= '';
+ $out .= ' ';
+ $out .= ' ';
}
- $texte .= ' ';
- $texte .= $form->textwithpicto($texttitle, $texthelp, 1, 'help', '', 1, 3, $this->name);
- $texte .= '';
+ $out .= ' ';
+ $out .= $form->textwithpicto($texttitle, $texthelp, 1, 'help', '', 1, 3, $this->name);
+ $out .= '';
// Add input to upload a new template file.
- $texte .= '';
- $texte .= ' | ';
+ $out .= '';
- $texte .= '
';
+ $out .= '';
- $texte .= '