Add set_comment function
This commit is contained in:
parent
076891fb92
commit
7fe028133c
@ -314,6 +314,33 @@ class Don
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* Classé comme payé, le don a été recu
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
Function set_commentaire($rowid, $commentaire='')
|
||||||
|
{
|
||||||
|
$sql = "UPDATE llx_don SET note = '$commentaire'";
|
||||||
|
|
||||||
|
$sql .= " WHERE rowid = $rowid ;";
|
||||||
|
|
||||||
|
if ( $this->db->query( $sql) )
|
||||||
|
{
|
||||||
|
if ( $this->db->affected_rows() )
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "Err : ".$this->db->error();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Classé comme encaissé
|
* Classé comme encaissé
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user