2
0
forked from Wavyzz/dolibarr

Restore changes after 27 may due to from savannah Crash.

This commit is contained in:
Laurent Destailleur
2009-06-03 23:05:52 +00:00
parent d4a3038240
commit 3c591db844
25 changed files with 428 additions and 251 deletions

View File

@@ -900,9 +900,9 @@ function dol_trunc($string,$size=40,$trunc='right',$stringencoding='')
/**
* \brief Affiche picto propre a une notion/module (fonction g<>n<EFBFBD>rique)
* \param alt Texte sur le alt de l'image
* \param object Objet pour lequel il faut afficher le logo (exemple: user, group, action, bill, contract, propal, product, ...)
* \brief Show a picto according to module/object (generic function)
* \param alt Text of alt on image
* \param object Objet pour lequel il faut afficher le logo (example: user, group, action, bill, contract, propal, product, ...)
* \return string Retourne tag img
*/
function img_object($alt, $object)
@@ -2590,7 +2590,7 @@ function dol_nboflines($s,$maxchar=0)
/**
* \brief Return nb of lines of a formated text with \n and <br>
* \param texte Text
* \param maxlinesize Largeur de ligne en caracteres(ou 0 si pas de limite - defaut)
* \param maxlinesize Largeur de ligne en caracteres (ou 0 si pas de limite - defaut)
* \return int Number of lines
*/
function dol_nboflines_bis($texte,$maxlinesize=0)

View File

@@ -157,14 +157,14 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
$pdf->SetDrawColor(224,224,224);
// On positionne le debut du bas de page selon nbre de lignes de ce bas de page
$nbofligne=dol_nboflines($ligne);
$nbofligne=dol_nboflines_bis($ligne);
//print 'e'.$ligne.'t'.dol_nboflines($ligne);exit;
$posy=$marge_basse + ($nbofligne*3) + ($ligne1?3:0) + ($ligne2?3:0);
if ($ligne) // Free text
{
$pdf->SetXY($marge_gauche,-$posy);
$pdf->MultiCell(190, 3, $ligne, 0, 'L', 0);
$pdf->MultiCell(20000, 3, $ligne, 0, 'L', 0); // Use a large value 20000, to not have automatic wrap. This make user understand, he need to add CR on its text.
$posy-=($nbofligne*3); // 6 of ligne + 3 of MultiCell
}