Gestion des actions à faire
This commit is contained in:
parent
7cce446aa3
commit
d62d566bb1
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user