50,7 → 50,7 |
|
$this->cel_url_tpl = $this->config['manager']['celUrlTpl']; |
|
if ($_POST != array()) { |
if ($_POST != array()) { //print_r($_POST); |
$this->parametres['projet'] = $_POST['projet']; |
$this->parametres['langue'] = $_POST['langue']; |
if ($mode == 'modification') { |
71,7 → 71,7 |
} else { |
$this->messages[] = "Ce type de service '$methode' n'est pas disponible."; |
} |
|
|
$contenu = ''; |
if (is_null($retour)) { |
$this->messages[] = 'La ressource demandée a retourné une valeur nulle.'; |
102,7 → 102,7 |
$url = $this->cel_url_tpl; |
if ($param != "") $url .= '?'.$param; |
$json = $this->getDao()->consulter($url); |
$retour['donnees']['widget'] = (array) json_decode($json, true); |
$retour['donnees']['widget'] = (array) json_decode($json, true); |
$retour['donnees']['widgetUrlTpl'] = $this->config['manager']['widgetUrlTpl']; |
return $retour; |
} |
128,18 → 128,8 |
return $retour; |
} |
|
private function executerSaisie() { |
$retour = ''; |
if (isset($this->parametres['projet'])) { |
$retour['squelette'] = 'saisie'; |
$url = $this->cel_url_tpl.'?projet='.$this->parametres['projet']; |
$json = $this->getDao()->consulter($url); |
$tableau = (array) json_decode($json, true); |
$retour['donnees']['widget'] = $tableau[0]; |
} |
return $retour; |
} |
|
|
private function executerModification() { |
$retour = ''; |
if (isset($this->parametres['projet'])) { |
152,7 → 142,7 |
$jsontype = $this->getDao()->consulter($urltype); |
$tableautype= (array) json_decode($jsontype, true); |
$retour['donnees']['type'] = $tableautype; |
} |
}//print_r($retour['donnees']); |
return $retour; |
} |
private function traiterParametres() { |
174,7 → 164,7 |
} |
|
private function traiterParametresModif() { |
$parametres_modif = array(); |
$parametres_modif = array(); |
foreach ($_POST as $id => $parametres) { |
if ($parametres != "") { |
$parametres_modif[$id] = $parametres; |