2017-08-04 16:28:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
2017-09-18 16:55:19 +02:00
|
|
|
if (isset($id_record)) {
|
2018-12-07 12:50:42 +01:00
|
|
|
$record = $dbo->fetchOne('SELECT *,
|
|
|
|
(SELECT tipo FROM an_anagrafiche WHERE an_anagrafiche.idanagrafica = an_sedi.idanagrafica) AS tipo_anagrafica,
|
|
|
|
(SELECT iso2 FROM an_nazioni WHERE id = id_nazione) AS iso2
|
|
|
|
FROM an_sedi WHERE id='.prepare($id_record));
|
2017-09-18 16:55:19 +02:00
|
|
|
|
2018-07-18 15:20:10 +02:00
|
|
|
$record['lat'] = floatval($record['lat']);
|
|
|
|
$record['lng'] = floatval($record['lng']);
|
2017-09-18 16:55:19 +02:00
|
|
|
}
|