From d8f31d293c9fb467665488c3ac464eb7e4fb4ffd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 22 Nov 2005 16:50:37 +0000 Subject: [PATCH] Ajout fonction log_consult --- htdocs/telephonie/telephonie.client.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/telephonie/telephonie.client.class.php b/htdocs/telephonie/telephonie.client.class.php index 021f487836d..5c3d0405b11 100644 --- a/htdocs/telephonie/telephonie.client.class.php +++ b/htdocs/telephonie/telephonie.client.class.php @@ -40,6 +40,13 @@ class TelephonieClient extends Societe { * * */ + function log_consult($user,$mode) + { + $sql = "INSERT INTO ".MAIN_DB_PREFIX."societe_consult (fk_soc,fk_user,action)"; + $sql .= " VALUES (".$this->id.",".$user->id.",'".$mode."');"; + $this->db->query($sql); + } + function count_comment() { $num_comments = 0;