* @copyright 2010 Tela-Botanica * @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL * @version SVN: * @link /doc/ */ /** * Classe renvoyant fragment html constitué à partir d'une liste très succinte des contributions de l'utilisateur * */ class InventoryContributionList extends Cel { function getRessource() { echo ''; } function getElement($uid){ if(!isset($uid[0])) { echo ''; } $requete_contributions = "SELECT * FROM cel_obs ". "WHERE ce_utilisateur = ".Cel::db()->proteger($uid[0])." ". "ORDER BY date_modification DESC LIMIT 0,5"; $resultat_contributions = Cel::db()->requeter($requete_contributions); $resume = ''; if (is_array($resultat_contributions)) { foreach ($resultat_contributions as $ligne) { $ligne['nom_sel'] = htmlspecialchars($ligne['nom_sel']); $ligne['ce_utilisateur'] = htmlspecialchars($ligne['ce_utilisateur']); $ligne['zone_geo'] = htmlspecialchars($ligne['zone_geo']); $ligne['id_zone_geo'] = htmlspecialchars($this->convertirCodeZoneGeoVersDepartement($ligne['ce_zone_geo'])); $ligne['station'] = htmlspecialchars($ligne['station']); $ligne['milieu'] = htmlspecialchars($ligne['milieu']); $ligne['commentaire'] = htmlspecialchars($ligne['commentaire']); $ligne['transmission'] = htmlspecialchars($ligne['transmission']); $resume.= '

'.$ligne['nom_sel'] ." (".$ligne['nom_sel_nn'].") ". 'Location : '. $ligne['zone_geo']." (".$ligne['id_zone_geo']."),". $ligne['station'] . "," . $ligne['milieu'] . "," . $ligne['commentaire'] . "," . $ligne['transmission'] . '

'; } } header("Content-Type: text/html; charset=ISO-8859-1"); print $resume; exit; } } /* +--Fin du code ---------------------------------------------------------------------------------------+ * $Log$ * Revision 1.5 2008-11-13 11:29:12 ddelon * Reecriture gwt-ext * * Revision 1.4 2007-06-06 13:31:16 ddelon * v0.09 * * Revision 1.3 2007-05-22 12:54:09 ddelon * Securisation acces utilisateur * */ ?>