Fix: Generating of reports for action use a good page break. Added page nb in report.

This commit is contained in:
Laurent Destailleur
2008-05-02 19:19:02 +00:00
parent b27af5c1b5
commit 6b2ea02412
4 changed files with 153 additions and 82 deletions

View File

@@ -2553,6 +2553,21 @@ function dol_string_is_good_iso($s)
}
/**
* \brief Return nb of lines of a text
* \param s String to check
* \param maxchar Not yet used
* \return int 0 if bad iso, 1 if good iso
*/
function dol_nboflines($s,$maxchar=0)
{
$arraystring=split("\n",$s);
$nb=sizeof($arraystring);
return $nb;
}
/**
\brief Fonction retournant le nombre de jour fieries samedis et dimanches entre 2 dates entrees en timestamp
\remarks SERVANT AU CALCUL DES JOURS OUVRABLES