Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 786 → Rev 787

/trunk/services/modules/0.1/eflore/cartes/GeneralFormateur.php
225,9 → 225,11
}
public function formerDate($inventory) {
$date = NULL;
if ($inventory['collection_code'] == 'sophy') {
$date = ', en '.$inventory['date_observation'];
} else {
}
elseif($inventory['date_observation']) {
list($year, $month, $day) = explode ('-',$inventory['date_observation']);
list($day) = explode (' ',$day);
if ($month == '00') {
/trunk/services/modules/0.1/eflore/Cartes.php
148,10 → 148,10
}
// Récupération d'infos générales
// donnees exemple nn = 141; nt = 8522; nom = 'Acer campestre L.'; nom_ss_auteur = 'Acer campestre';
$this->info['nn'] = $this->param['masque.nn'];
$this->info['nt'] = $this->param['masque.nt'];
$this->info['nom'] = $this->param['masque.ns'].' '.$this->param['masque.au'];
$this->info['nom_ss_auteur'] = $this->param['masque.ns'];
$this->info['nn'] = @$this->param['masque.nn'];
$this->info['nt'] = @$this->param['masque.nt'];
$this->info['nom'] = @$this->param['masque.ns'].' '.@$this->param['masque.au'];
$this->info['nom_ss_auteur'] = @$this->param['masque.ns'];
}
private function chargerVille() {
180,7 → 180,7
// Ultime tentative
if (!$utm) {
$requete = "SELECT nom as name, code as insee_code, utm_x as x_utm, utm_y as y_utm, utm_secteur as sector".
" FROM tb_cel.cel_zones_geo WHERE name LIKE ".$this->getBdd()->proteger($inventory['location']);
" FROM tb_cel.cel_zones_geo WHERE nom LIKE ".$this->getBdd()->proteger($inventory['location']);
$utm = $this->getBdd()->recupererTous($requete);
}