Subversion Repositories eFlore/Applications.cel

Rev

Rev 3667 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3667 Rev 3730
Line 63... Line 63...
63
			$mode = self::SERVICE_DEFAUT;
63
			$mode = self::SERVICE_DEFAUT;
64
		}
64
		}
Line 65... Line 65...
65
 
65
 
Line 66... Line 66...
66
		$this->cel_url_tpl = $this->config['manager']['celUrlTpl'];
66
		$this->cel_url_tpl = $this->config['manager']['celUrlTpl'];
67
 
67
 
68
		if ( $_POST !== array() ) { //print_r($_POST);
68
		if ( !empty( $_POST ) ) { //print_r($_POST);
Line 69... Line 69...
69
			$this->parametres['projet'] = $_POST['projet'];
69
			$this->parametres['projet'] = $_POST['projet'];
70
			$this->parametres['langue'] = $_POST['langue'];
70
			$this->parametres['langue'] = $_POST['langue'];
71
 
71
 
72
			if ( $mode === 'modification' ) {
72
			if ( $mode === 'modification' ) {
73
				$parametres = $this->traiterParametresModif();
73
				$parametres = $this->traiterParametresModif();
74
				$donnees    = array_merge( $parametres, $this->traiterDonneesFiles() );
74
				$donnees    = array_merge( $parametres, $this->traiterDonneesFiles() );
75
				$json       = $this->getDao()->modifier( $this->cel_url_tpl, $donnees );
-
 
76
			} else {
75
				$json       = $this->getDao()->modifier( $this->cel_url_tpl, $donnees );
77
				$donnees = array_merge( $_POST, $this->traiterDonneesFiles() );
76
			} else {
78
				// var_dump($donnees);
77
				$donnees = array_merge( $_POST, $this->traiterDonneesFiles() );
79
				$json    = $this->getDao()->ajouter( $this->cel_url_tpl, $donnees );
78
				$json    = $this->getDao()->ajouter( $this->cel_url_tpl, $donnees );