Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 998 → Rev 999

/trunk/widget/modules/vote/squelettes/vote_ajax.tpl.html
1,5 → 1,5
<!-- WIDGET:DEL:VOTE - DEBUT -->
<div data-role="page">
<div id="contenu" data-role="page">
<!-- /navbar -->
<div data-role="header" data-position="fixed">
<div data-role="navbar" >
/trunk/widget/modules/vote/Vote.php
71,6 → 71,19
$this->parametres = $_GET;
}
private function convertirParametresEnChaineRequeteService() {
$requete = '';
$mapping = $this->config['mapping_masque'];
if(!empty($this->parametres)) {
foreach ($this->parametres as $parametre=>$valeur) {
if (isset($mapping[$parametre])) {
$requete .= '&'.$mapping[$parametre].'='.urlencode($valeur);
}
}
}
return $requete;
}
private function convertirParametresEnChaineRequete() {
$requete = str_replace('masque_','masque.',http_build_query($this->parametres));
if(!empty($this->parametres)) {
80,7 → 93,7
}
private function obtenirIdsObservation() {
$ids = json_decode(file_get_contents($this->del_url_service_tpl.'observations?retour.format=widget'.$this->convertirParametresEnChaineRequete()), true);
$ids = json_decode(file_get_contents($this->del_url_service_tpl.'observations?retour.format=widget'.$this->convertirParametresEnChaineRequeteService()), true);
if($this->id_observation == null) {
$this->id_observation = $ids['resultats'][0];
}