Campo nazione in fase di aggiunta sede

This commit is contained in:
Luca 2018-12-19 22:06:09 +01:00
parent 2613ecbdf2
commit c11ba66f8d
2 changed files with 10 additions and 6 deletions

View File

@ -17,6 +17,7 @@ switch ($operazione) {
'cellulare' => post('cellulare'), 'cellulare' => post('cellulare'),
'telefono' => post('telefono'), 'telefono' => post('telefono'),
'email' => post('email'), 'email' => post('email'),
'id_nazione' => !empty(post('id_nazione')) ? post('id_nazione') : null,
'idzona' => post('idzona'), 'idzona' => post('idzona'),
]); ]);
$id_record = $dbo->lastInsertedID(); $id_record = $dbo->lastInsertedID();

View File

@ -36,6 +36,15 @@ echo '
</div> </div>
</div> </div>
<div class="row">
<div class="col-md-6">
{[ "type": "select", "label": "'.tr('Nazione').'", "name": "id_nazione", "values": "query=SELECT `id`, `nome` AS `descrizione` FROM `an_nazioni` ORDER BY `descrizione` ASC", "value": "" ]}
</div>
<div class="col-md-6">
{[ "type": "select", "label": "'.tr('Zona').'", "name": "idzona", "values": "query=SELECT `id`, CONCAT(`nome`, \' - \', `descrizione`) AS `descrizione` FROM `an_zone` ORDER BY `descrizione` ASC" ]}
</div>
</div>
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
{[ "type": "text", "label": "'.tr('Cellulare').'", "name": "cellulare" ]} {[ "type": "text", "label": "'.tr('Cellulare').'", "name": "cellulare" ]}
@ -50,12 +59,6 @@ echo '
</div> </div>
</div> </div>
<div class="row">
<div class="col-md-12">
{[ "type": "select", "label": "'.tr('Zona').'", "name": "idzona", "values": "query=SELECT `id`, CONCAT(`nome`, \' - \', `descrizione`) AS `descrizione` FROM `an_zone` ORDER BY `descrizione` ASC" ]}
</div>
</div>
<!-- PULSANTI --> <!-- PULSANTI -->
<div class="row"> <div class="row">
<div class="col-md-12 text-right"> <div class="col-md-12 text-right">