*** empty log message ***

This commit is contained in:
Rodolphe Quiedeville 2002-05-23 17:14:44 +00:00
parent d0406838c3
commit 4407054abe
2 changed files with 27 additions and 4 deletions

View File

@ -104,7 +104,7 @@ if ( $db->query($sql) ) {
$var=!$var;
print "<TR $bc[$var]>";
print "<TD>[<a href=\"$PHP_SELF?socidp=$objp->idp\">Filtre</a>]</TD>\n";
print "<TD><a href=\"../index.php3?socid=$objp->idp\">$objp->nom</a></TD>\n";
print "<TD><a href=\"../fiche.php3?socid=$objp->idp\">$objp->nom</a></TD>\n";
print "<TD><a href=\"fiche.php3?id=$objp->projectid\">$objp->ref</a></TD>\n";
print "<TD><a href=\"fiche.php3?id=$objp->projectid\">$objp->title</a></TD>\n";
print "<td>&nbsp;</td>";

View File

@ -27,6 +27,7 @@ class Fichinter {
var $author;
var $ref;
var $date;
var $duree;
var $note;
@ -51,8 +52,8 @@ class Fichinter {
/*
* Insertion dans la base
*/
$sql = "INSERT INTO llx_fichinter (fk_soc, datei, datec, ref, fk_user_author, note) ";
$sql .= " VALUES ($this->socidp, $this->date, now(), '$this->ref', $this->author, '$this->note')";
$sql = "INSERT INTO llx_fichinter (fk_soc, datei, datec, ref, fk_user_author, note, duree) ";
$sql .= " VALUES ($this->socidp, $this->date, now(), '$this->ref', $this->author, '$this->note', $this->duree)";
$sqlok = 0;
if (! $this->db->query($sql) ) {
@ -61,6 +62,27 @@ class Fichinter {
}
return 1;
}
/*
*
*
*
*/
Function update($id) {
/*
* Insertion dans la base
*/
$sql = "UPDATE llx_fichinter SET ";
$sql .= " datei = $this->date,";
$sql .= " note = '$this->note',";
$sql .= " duree = $this->duree";
$sql .= " WHERE rowid = $id";
if (! $this->db->query($sql) ) {
print $this->db->error() . '<b><br>'.$sql;
}
return 1;
}
/*
*
*
@ -68,7 +90,7 @@ class Fichinter {
*/
Function fetch($rowid) {
$sql = "SELECT ref,note,fk_statut,".$this->db->pdate(datei)."as di FROM llx_fichinter WHERE rowid=$rowid;";
$sql = "SELECT ref,note,fk_statut,duree,".$this->db->pdate(datei)."as di FROM llx_fichinter WHERE rowid=$rowid;";
if ($this->db->query($sql) ) {
if ($this->db->num_rows()) {
@ -76,6 +98,7 @@ class Fichinter {
$this->id = $rowid;
$this->date = $obj->di;
$this->duree = $obj->duree;
$this->ref = $obj->ref;
$this->note = $obj->note;
$this->statut = $obj->fk_statut;