Ajout fonction num_comments

This commit is contained in:
Rodolphe Quiedeville 2006-04-06 12:20:30 +00:00
parent 078085674b
commit 5acf0341b2

View File

@ -97,6 +97,27 @@ class LigneTel {
*
*
*/
function num_comments()
{
$num_comments = 0;
/* Commentaires */
$sql = "SELECT fk_ligne ";
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne_comments";
$sql .= " WHERE fk_ligne = ".$this->id;
$resql = $this->db->query($sql);
if ($resql)
{
$num_comments = $this->db->num_rows($resql);
$this->db->free($resql);
}
return $num_comments;
}
/*
*
*/
function send_mail($user, $commentaire, $statut)
{
/*