function setStatut($strStatut) { include('config/config.inc.php'); $MySQL = new Mysql($cfg['url'], $cfg['user'], $cfg['password'], $cfg['table'],$cfg['lang'],$cfg['verbose']); $MySQL->executionSQL( 'UPDATE projet' .' SET n_statut = '.$strStatut .' WHERE n_projet = '.$this->getNum() .' AND n_client = '.$this->getNumClient() ); $this->numStatut = $strStatut; } function setDateDebut($strJJ, $strMM, $strAAAA) { include('config/config.inc.php'); $MySQL = new Mysql($cfg['url'], $cfg['user'], $cfg['password'], $cfg['table'],$cfg['lang'],$cfg['verbose']); $MySQL->executionSQL( 'UPDATE projet' .' SET date_debut_pr = '.$this->convertionStringToDate($strJJ,$strMM,$strAAAA) .' WHERE n_projet = '.$this->getNum() .' AND n_client = '.$this->getNumClient() ); $this->debutJJ = $strJJ; $this->debutMM = $strMM; $this->debutAAAA = $strAAAA; } function setDateFin($strJJ, $strMM, $strAAAA) { include('config/config.inc.php'); $MySQL = new Mysql($cfg['url'], $cfg['user'], $cfg['password'], $cfg['table'],$cfg['lang'],$cfg['verbose']); $MySQL->executionSQL( 'UPDATE projet' .' SET date_fin_pr = '.$this->convertionStringToDate($strJJ,$strMM,$strAAAA) .' WHERE n_projet = '.$this->getNum() .' AND n_client = '.$this->getNumClient() ); $this->finJJ = $strJJ; $this->finMM = $strMM; $this->finAAAA = $strAAAA; } function setIDPriseEnCharge($strIDPriseEnCharge) { include('config/config.inc.php'); $MySQL = new Mysql($cfg['url'], $cfg['user'], $cfg['password'], $cfg['table'],$cfg['lang'],$cfg['verbose']); $MySQL->executionSQL( 'UPDATE projet' .' SET n_intervenant = '.$strIDPriseEnCharge .' WHERE n_projet = '.$this->getNum() .' AND n_client = '.$this->getNumClient() ); $this->priseEnCharge = $strIDPriseEnCharge; } function setInformations($strNom, $strDescription, $strProcedure, $strDebutJJ, $strDebutMM, $strDebutAAAA, $strFinJJ, $strFinMM, $strFinAAAA, $strIDPriseEnCharge, $strStatut) { $this->setNom($strNom); $this->setDescription($strDescription); $this->setProcedure($strProcedure); $this->setDateDebut($strDebutJJ,$strDebutMM,$strDebutAAAA); //if(($strFinJJ != 0) && ($strFinMM != 0) && ($strFinAAAA != 0)) $this->setDateFin($strFinJJ,$strFinMM,$strFinAAAA); //if($strIDPriseEnCharge != 0) $this->setIDPriseEnCharge($strIDPriseEnCharge); $this->setStatut($strStatut); }