Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3978 → Rev 3979

/trunk/widget/modules/photo/squelettes/photo.tpl.html
338,9 → 338,9
<?php echo $item['obs']['nom_sel']; ?>
</a><br />
par
<a class="cel-img-contact"
href="?mode=contact&nn=<?php echo urlencode($item['obs']['nom_sel_nn']); ?>&nom_sci=<?php echo urlencode($item['obs']['nom_sel']); ?>&date=<?php echo urlencode($item['date']); ?>&id_image=<?php echo $item['id_photo_formate']; ?>&auteur=<?php echo $item['utilisateur']['nom_utilisateur']; ?>"
title="Cliquez pour contacter l'auteur de la photo">
<a class="cel-img-contact"
href="<?php echo $item['urlProfil']; ?>"
title="Afficher le profil">
<?php echo $auteur; ?>
</a>
<?php else : ?>
/trunk/widget/modules/photo/squelettes/js/WidgetPhotoPopup.js
263,7 → 263,7
$( '#bloc-infos-img' ).html(
this.afficherLien( this.urlLienEflore, this.obs['nom_sel'] )+
' par '+
'<a class="lien_contact" href="' + lienContact + '" target="_blank" title="Afficher le profil">' + this.auteur + '</a> '+
'<a class="lien_contact" href="' + this.item['urlProfil'] + '" target="_blank" title="Afficher le profil">' + this.auteur + '</a> '+
' le ' + this.date + ' - ' + this.obs['localisation']
);
};
783,20 → 783,7
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
 
//SI l'envoie est réussi on met à jour l'affiichage
// var xhttp2 = new XMLHttpRequest();
// xhttp2.onreadystatechange = function() {
// if (this.readyState == 4 && this.status == 200) {
// lthis.votes = lthis.getVotes(lthis.protocole)
//
// console.log('vote envoyé')
// }
// };
//
// xhttp2.open("GET", url+"?action=update_pf_vote&imageVote=" + lthis.idImage, false);
// xhttp2.setRequestHeader("Content-Type", "application/json");
// xhttp2.send(jsonData);
// location.reload();
console.log('vote envoyé')
}
};
 
/trunk/widget/modules/photo/Photo.php
344,7 → 344,7
}
return $votes;
}
}
 
public function sendVote(){
$data = json_decode(file_get_contents('php://input'), true);
405,7 → 405,6
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
$image['url_photo'] = preg_replace('/,/', "", $image['url_photo']);
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg',$image['url_photo']);
// print_r($item['date_photo']);
return $item;
}