1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00
openstamanager/modules/ddt/variables.php
2018-08-11 15:49:46 +02:00

15 lines
457 B
PHP

<?php
$r = $dbo->fetchOne('SELECT *,
(SELECT email FROM an_anagrafiche WHERE an_anagrafiche.idanagrafica=dt_ddt.idanagrafica) AS email
FROM dt_ddt WHERE id='.prepare($id_record));
// Variabili da sostituire
return [
'email' => $r['email'],
'numero' => empty($r['numero_esterno']) ? $r['numero'] : $r['numero_esterno'],
'note' => $r['note'],
'data' => Translator::dateToLocale($r['data']),
'id_anagrafica' => $r['idanagrafica'],
];