diff --git a/include/projekt.class.php b/include/projekt.class.php index 2b926f483..5ed57915c 100755 --- a/include/projekt.class.php +++ b/include/projekt.class.php @@ -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; } diff --git a/include/projektphase.class.php b/include/projektphase.class.php index bdc8f19e8..f26e3f7a5 100755 --- a/include/projektphase.class.php +++ b/include/projektphase.class.php @@ -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).' '.