1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-29 09:11:11 +01:00
openstamanager/plugins/sedi/init.php
Thomas Zilio 1193d12ad7 Aggiunto codice destinatario in sedi
Bugfix aggiornamento nazioni.
2018-12-07 12:50:42 +01:00

14 lines
447 B
PHP

<?php
include_once __DIR__.'/../../core.php';
if (isset($id_record)) {
$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));
$record['lat'] = floatval($record['lat']);
$record['lng'] = floatval($record['lng']);
}