Subversion Repositories Applications.gtt

Rev

Rev 75 | Rev 82 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 75 Rev 80
Line 45... Line 45...
45
		if (isset($_POST['btn_projet_modifier'])) {
45
		if (isset($_POST['btn_projet_modifier'])) {
46
			// Récupération des données du projet à modifier
46
			// Récupération des données du projet à modifier
47
			$Projet = new Projet();
47
			$Projet = new Projet();
48
			$Projet->consulter(Projet::GP_ID, $_POST['prsu_id'], true);
48
			$Projet->consulter(Projet::GP_ID, $_POST['prsu_id'], true);
49
			$aso_admin_projet['Projet'] = $Projet;
49
			$aso_admin_projet['Projet'] = $Projet;
50
			print_r($Projet);
-
 
51
			// Récupération des catégories
50
			// Récupération des catégories
52
			$ProjetCategorie = new ProjetCategorie();
51
			$ProjetCategorie = new ProjetCategorie();
53
			$aso_admin_projet['categories'] = $ProjetCategorie->consulter(ProjetCategorie::GPC_TOUS);
52
			$aso_admin_projet['categories'] = $ProjetCategorie->consulter(ProjetCategorie::GPC_TOUS);
Line 54... Line 53...
54
 
53
 
Line 69... Line 68...
69
		}
68
		}
70
    }
69
    }
Line 71... Line 70...
71
 
70
 
72
	public function executerValiderModifier()
71
	public function executerValiderModifier()
73
	{
72
	{
74
		if (isset($_POST['btn_projet_annuler'])) {
-
 
75
			// Action suivante
-
 
76
    		$this->setSuivant('__defaut__');
-
 
77
    	} else if (isset($_POST['btn_projet_modifier'])) {
73
		if (isset($_POST['btn_projet_modifier'])) {
78
			$Projet = new Projet();
74
			$Projet = new Projet();
79
			//$Projet->setIdCategorie($_POST['caaj_id_categorie']);
75
			//$Projet->setIdCategorie($_POST['caaj_id_categorie']);
80
			$Projet->setIdProjet($_POST['praj_id_projet']);
76
			$Projet->setIdProjet($_POST['praj_id_projet']);
81
			$Projet->setCeCategorie($_POST['praj_ce_categorie']);
77
			$Projet->setCeCategorie($_POST['praj_ce_categorie']);
Line 84... Line 80...
84
			$Projet->setDateDebut($_POST['praj_date_debut']);
80
			$Projet->setDateDebut($_POST['praj_date_debut']);
85
			$Projet->setDureePrevue($_POST['praj_duree_prevue']);
81
			$Projet->setDureePrevue($_POST['praj_duree_prevue']);
86
			$Projet->setAvancement($_POST['praj_avancement']);
82
			$Projet->setAvancement($_POST['praj_avancement']);
87
	    	$Projet->modifier();
83
	    	$Projet->modifier();
88
		}
84
		}
-
 
85
		// Action suivante
-
 
86
	    $this->setSuivant('__defaut__');
89
	}
87
	}
Line 90... Line 88...
90
	
88
	
91
    public function executerValiderAjouter()
89
    public function executerValiderAjouter()
92
    {
90
    {