openstamanager/plugins/sedi/init.php

14 lines
447 B
PHP
Raw Normal View History

<?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));
2018-07-18 15:20:10 +02:00
$record['lat'] = floatval($record['lat']);
$record['lng'] = floatval($record['lng']);
}