Work on ODT generation
This commit is contained in:
parent
c235f9e17a
commit
3fe6220281
@ -210,12 +210,19 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
||||||
//var_dump($listofdir);
|
//var_dump($listofdir);
|
||||||
|
|
||||||
$texte.= '<textarea class="flat" cols="80" name="value1">';
|
$texte.= '<table><tr><td>';
|
||||||
|
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
||||||
$texte.=$conf->global->FACTURE_ADDON_PDF_ODT_PATH;
|
$texte.=$conf->global->FACTURE_ADDON_PDF_ODT_PATH;
|
||||||
$texte.= '</textarea>';
|
$texte.= '</textarea>';
|
||||||
|
$texte.= '</td>';
|
||||||
|
$texte.= '<td align="center"> ';
|
||||||
|
$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
|
||||||
|
$texte.= '</td>';
|
||||||
|
$texte.= '</tr>';
|
||||||
|
$texte.= '</table>';
|
||||||
|
|
||||||
// Scan directories
|
// Scan directories
|
||||||
if (sizeof($listofdir)) $texte.='<br>'.$langs->trans("NumberOfModelFilesFound").': '.sizeof($listoffiles);
|
if (sizeof($listofdir)) $texte.=$langs->trans("NumberOfModelFilesFound").': '.sizeof($listoffiles);
|
||||||
|
|
||||||
$texte.= '</td>';
|
$texte.= '</td>';
|
||||||
|
|
||||||
@ -225,11 +232,11 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
$texte.= '</td>';
|
$texte.= '</td>';
|
||||||
$texte.= '</tr>';
|
$texte.= '</tr>';
|
||||||
|
|
||||||
// Example
|
/*$texte.= '<tr>';
|
||||||
$texte.= '<tr><td align="center">';
|
$texte.= '<td align="center">';
|
||||||
$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
|
$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
|
||||||
$texte.= '</td>';
|
$texte.= '</td>';
|
||||||
$texte.= '</tr>';
|
$texte.= '</tr>';*/
|
||||||
|
|
||||||
$texte.= '</table>';
|
$texte.= '</table>';
|
||||||
$texte.= '</form>';
|
$texte.= '</form>';
|
||||||
|
|||||||
@ -146,12 +146,19 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
||||||
//var_dump($listofdir);
|
//var_dump($listofdir);
|
||||||
|
|
||||||
$texte.= '<textarea class="flat" cols="80" name="value1">';
|
$texte.= '<table><tr><td>';
|
||||||
|
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
||||||
$texte.=$conf->global->COMPANY_ADDON_PDF_ODT_PATH;
|
$texte.=$conf->global->COMPANY_ADDON_PDF_ODT_PATH;
|
||||||
$texte.= '</textarea>';
|
$texte.= '</textarea>';
|
||||||
|
$texte.= '</td>';
|
||||||
|
$texte.= '<td align="center"> ';
|
||||||
|
$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
|
||||||
|
$texte.= '</td>';
|
||||||
|
$texte.= '</tr>';
|
||||||
|
$texte.= '</table>';
|
||||||
|
|
||||||
// Scan directories
|
// Scan directories
|
||||||
if (sizeof($listofdir)) $texte.='<br>'.$langs->trans("NumberOfModelFilesFound").': '.sizeof($listoffiles);
|
if (sizeof($listofdir)) $texte.=$langs->trans("NumberOfModelFilesFound").': '.sizeof($listoffiles);
|
||||||
|
|
||||||
$texte.= '</td>';
|
$texte.= '</td>';
|
||||||
|
|
||||||
@ -161,11 +168,10 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
$texte.= '</td>';
|
$texte.= '</td>';
|
||||||
$texte.= '</tr>';
|
$texte.= '</tr>';
|
||||||
|
|
||||||
// Example
|
/*$texte.= '<tr><td align="center">';
|
||||||
$texte.= '<tr><td align="center">';
|
|
||||||
$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
|
$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
|
||||||
$texte.= '</td>';
|
$texte.= '</td>';
|
||||||
$texte.= '</tr>';
|
$texte.= '</tr>';*/
|
||||||
|
|
||||||
$texte.= '</table>';
|
$texte.= '</table>';
|
||||||
$texte.= '</form>';
|
$texte.= '</form>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user