| Line 18... |
Line 18... |
| 18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
| 19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
| 20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 22... |
Line 22... |
| 22 |
|
22 |
|
| Line 23... |
Line 23... |
| 23 |
// CVS : $Id: projetControleur.class.php,v 1.29.2.3 2007-04-11 12:28:44 alexandre_tb Exp $
|
23 |
// CVS : $Id: projetControleur.class.php,v 1.29.2.4 2007-04-12 14:07:06 alexandre_tb Exp $
|
| 24 |
|
24 |
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* Application projet
|
26 |
* Application projet
|
| Line 31... |
Line 31... |
| 31 |
//Auteur original :
|
31 |
//Auteur original :
|
| 32 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
32 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
| 33 |
//Autres auteurs :
|
33 |
//Autres auteurs :
|
| 34 |
*@author Aucun
|
34 |
*@author Aucun
|
| 35 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@copyright Tela-Botanica 2000-2004
|
| 36 |
*@version $Revision: 1.29.2.3 $
|
36 |
*@version $Revision: 1.29.2.4 $
|
| 37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
| 38 |
*/
|
38 |
*/
|
| Line 39... |
Line 39... |
| 39 |
|
39 |
|
| 40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 617... |
Line 617... |
| 617 |
*/
|
617 |
*/
|
| 618 |
function nouveauProjetValidation( )
|
618 |
function nouveauProjetValidation( )
|
| 619 |
{
|
619 |
{
|
| 620 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_V) ;
|
620 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_V) ;
|
| 621 |
include_once PROJET_CHEMIN_CLASSES.'HTML_formulaireProjet.class.php' ;
|
621 |
include_once PROJET_CHEMIN_CLASSES.'HTML_formulaireProjet.class.php' ;
|
| - |
|
622 |
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
|
| 622 |
$formulaire_projet = new HTML_formulaireProjet('formulaire_projet', 'post', str_replace ('&', '&', $this->_url->getURL())) ;
|
623 |
$formulaire_projet = new HTML_formulaireProjet('formulaire_projet', 'post', str_replace ('&', '&', $this->_url->getURL())) ;
|
| 623 |
$formulaire_projet->construitFormulaire(projet::getTousLesProjets($this->_db)) ;
|
624 |
$formulaire_projet->construitFormulaire(projet::getTousLesProjets($this->_db)) ;
|
| 624 |
if ($formulaire_projet->validate()) {
|
625 |
if ($formulaire_projet->validate()) {
|
| 625 |
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
|
- |
|
| 626 |
$projet = new projet ($this->_db) ;
|
626 |
$projet = new projet ($this->_db) ;
|
| 627 |
$projet->setCheminRepertoire (PROJET_CHEMIN_FICHIER) ;
|
627 |
$projet->setCheminRepertoire (PROJET_CHEMIN_FICHIER) ;
|
| 628 |
if (!$projet->enregistrerSQL($formulaire_projet->getSubmitValues())) {
|
628 |
if (!$projet->enregistrerSQL($formulaire_projet->getSubmitValues())) {
|
| 629 |
return 'erreur' ;
|
629 |
return 'erreur' ;
|
| 630 |
}
|
630 |
}
|