Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3163 Rev 3200
Line 102... Line 102...
102
		$this->envoyer($contenu);
102
		$this->envoyer($contenu);
103
	}
103
	}
Line 104... Line 104...
104
 
104
 
105
	
105
	
106
	private function executerSaisie() {
106
	private function executerSaisie() {
107
		$retour = '';
107
		$retour = array();
108
		$retour['squelette'] = 'saisie';
108
		$retour['squelette'] = 'saisie';
109
		$retour['donnees']['general'] = I18n::get('General');
109
		$retour['donnees']['general'] = I18n::get('General');
110
		$retour['donnees']['aide'] = I18n::get('Aide');
110
		$retour['donnees']['aide'] = I18n::get('Aide');
Line 115... Line 115...
115
	}
115
	}
Line 116... Line 116...
116
	
116
	
117
	/* Recherche si le projet existe sinon va chercher les infos de base */
117
	/* Recherche si le projet existe sinon va chercher les infos de base */
118
	private function rechercherProjet() {
118
	private function rechercherProjet() {
119
		// projet avec un squelette défini (et non juste un mot-clé d'observation)
119
		// projet avec un squelette défini (et non juste un mot-clé d'observation)
120
		$estProjetDefini = true; $tab = "";
120
		$estProjetDefini = true; $tab = array();
121
		$url = $this->config['manager']['celUrlTpl'].'?projet='.$this->parametres['projet'].'&langue='.$this->parametres['langue'];
121
		$url = $this->config['manager']['celUrlTpl'].'?projet='.$this->parametres['projet'].'&langue='.$this->parametres['langue'];
122
		$json = $this->getDao()->consulter($url);
122
		$json = $this->getDao()->consulter($url);
123
		if ($json == false) {
123
		if ($json == false) {
124
			$url = $this->config['manager']['celUrlTpl'].'?projet=base&langue='.$this->parametres['langue'];
124
			$url = $this->config['manager']['celUrlTpl'].'?projet=base&langue='.$this->parametres['langue'];
Line 139... Line 139...
139
		return $tableau;
139
		return $tableau;
140
	}
140
	}
Line 141... Line 141...
141
	
141
	
142
	/* Recherche si un projet a des champs de saisie supplémentaire */
142
	/* Recherche si un projet a des champs de saisie supplémentaire */
143
	private function rechercherChampsSupp() {
143
	private function rechercherChampsSupp() {
144
		$retour = "";
144
		$retour = array();
145
		$url = $this->config['manager']['celChpSupTpl'].'groupes?groupe='.$this->parametres['projet'].'&langue='.$this->parametres['langue'];
145
		$url = $this->config['manager']['celChpSupTpl'].'groupes?groupe='.$this->parametres['projet'].'&langue='.$this->parametres['langue'];
146
		$json = $this->getDao()->consulter($url);
146
		$json = $this->getDao()->consulter($url);
147
		$tableau = (array) json_decode($json, true);
147
		$tableau = (array) json_decode($json, true);
148
		if ($tableau != false) {
148
		if ($tableau != false) {