From d62d566bb13ff04c640c9bdae065e059b39ec49b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 3 Aug 2003 16:53:46 +0000 Subject: [PATCH] =?UTF-8?q?Gestion=20des=20actions=20=E0=20faire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/actioncomm.class.php3 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/htdocs/actioncomm.class.php3 b/htdocs/actioncomm.class.php3 index 8732287fe36..470b09d6b03 100644 --- a/htdocs/actioncomm.class.php3 +++ b/htdocs/actioncomm.class.php3 @@ -129,5 +129,23 @@ class ActionComm * * */ + Function update() + { + + $sql = "UPDATE llx_actioncomm "; + $sql .= " SET percent=$this->percent"; + + if ($this->percent == 100) + { + $sql .= ", datea = now()"; + } + + $sql .= " WHERE id=$this->id;"; + + if ($this->db->query($sql) ) + { + return 1; + } + } } ?>