attribut farbe hinzugefügt

This commit is contained in:
Karl Burkhart
2012-03-26 12:11:36 +00:00
parent 0300c951d5
commit 0c68c681ee
2 changed files with 15 additions and 3 deletions
+8 -2
View File
@@ -43,6 +43,7 @@ class projekt extends basis_db
public $updateamum; // timestamp
public $updatevon; // string
public $budget;
public $farbe;
/**
@@ -77,7 +78,8 @@ class projekt extends basis_db
$this->beginn= $row->beginn;
$this->ende = $row->ende;
$this->oe_kurzbz= $row->oe_kurzbz;
$this->budget= $row->budget;
$this->budget= $row->budget;
$this->farbe= $row->farbe;
return true;
}
@@ -120,6 +122,7 @@ class projekt extends basis_db
$obj->ende = $row->ende;
$obj->oe_kurzbz = $row->oe_kurzbz;
$obj->budget = $row->budget;
$obj->farbe = $row->farbe;
$this->result[] = $obj;
}
@@ -187,7 +190,7 @@ class projekt extends basis_db
{
//Neuen Datensatz einfuegen
$qry='INSERT INTO fue.tbl_projekt (projekt_kurzbz, nummer, titel,beschreibung, beginn, ende, budget, oe_kurzbz) VALUES('.
$qry='INSERT INTO fue.tbl_projekt (projekt_kurzbz, nummer, titel,beschreibung, beginn, ende, budget, farbe, oe_kurzbz) VALUES('.
$this->addslashes($this->projekt_kurzbz).', '.
$this->addslashes($this->nummer).', '.
$this->addslashes($this->titel).', '.
@@ -195,6 +198,7 @@ class projekt extends basis_db
$this->addslashes($this->beginn).', '.
$this->addslashes($this->ende).', '.
$this->addslashes($this->budget).', '.
$this->addslashes($this->farbe).', '.
$this->addslashes($this->oe_kurzbz).');';
}
else
@@ -209,6 +213,7 @@ class projekt extends basis_db
'beginn='.$this->addslashes($this->beginn).', '.
'ende='.$this->addslashes($this->ende).', '.
'budget='.$this->addslashes($this->budget).', '.
'farbe='.$this->addslashes($this->farbe).', '.
'oe_kurzbz='.$this->addslashes($this->oe_kurzbz).' '.
'WHERE projekt_kurzbz='.$this->addslashes($this->projekt_kurzbz).';';
}
@@ -303,6 +308,7 @@ class projekt extends basis_db
$this->ende = $row->ende;
$this->oe_kurzbz= $row->oe_kurzbz;
$this->budget= $row->budget;
$this->farbe= $row->farbe;
return true;
}
+7 -1
View File
@@ -39,6 +39,7 @@ class projektphase extends basis_db
public $start; //date
public $ende; //date
public $personentage; //integer
public $farbe;
public $budget; // numeric
public $insertamum; // timestamp
public $insertvon; // bigint
@@ -85,6 +86,7 @@ class projektphase extends basis_db
$this->start = $row->start;
$this->ende = $row->ende;
$this->personentage = $row->personentage;
$this->farbe = $row->farbe;
$this->budget = $row->budget;
$this->insertamum = $row->insertamum;
$this->insertvon = $row->insertvon;
@@ -140,6 +142,7 @@ class projektphase extends basis_db
$obj->start = $row->start;
$obj->ende = $row->ende;
//$obj->personentage = $row->personentage;
$obj->farbe = $row->farbe;
$obj->budget = $row->budget;
$obj->insertamum = $row->insertamum;
$obj->insertvon = $row->insertvon;
@@ -189,6 +192,7 @@ class projektphase extends basis_db
$obj->start = $row->start;
$obj->ende = $row->ende;
//$obj->personentage = $row->personentage;
$obj->farbe = $row->farbe;
$obj->budget = $row->budget;
$obj->insertamum = $row->insertamum;
$obj->insertvon = $row->insertvon;
@@ -251,7 +255,7 @@ class projektphase extends basis_db
//Neuen Datensatz einfuegen
$qry='BEGIN; INSERT INTO fue.tbl_projektphase (projekt_kurzbz, projektphase_fk, bezeichnung,
beschreibung, start, ende, budget, insertvon, insertamum, updatevon, updateamum, personentage) VALUES ('.
beschreibung, start, ende, budget, insertvon, insertamum, updatevon, updateamum, farbe, personentage) VALUES ('.
$this->addslashes($this->projekt_kurzbz).', '.
$this->addslashes($this->projektphase_fk).', '.
$this->addslashes($this->bezeichnung).', '.
@@ -261,6 +265,7 @@ class projektphase extends basis_db
$this->addslashes($this->budget).', '.
$this->addslashes($this->insertvon).', now(), '.
$this->addslashes($this->updatevon).', now(), '.
$this->addslashes($this->farbe).', '.
$this->addslashes($this->personentage).' );';
}
else
@@ -275,6 +280,7 @@ class projektphase extends basis_db
'start='.$this->addslashes($this->start).', '.
'ende='.$this->addslashes($this->ende).', '.
'budget='.$this->addslashes($this->budget).', '.
'farbe='.$this->addslashes($this->farbe).', '.
'personentage='.$this->addslashes($this->personentage).', '.
'updateamum= now(), '.
'updatevon='.$this->addslashes($this->updatevon).' '.