'; if (!empty($options['showpanel'])) { $result .= '

'._('Allegati').'

'; } // Visualizzo l'elenco di file giĆ  caricati $rs = $dbo->fetchArray('SELECT * FROM zz_files WHERE id_module='.prepare($options['id_module']).' AND id_record='.prepare($options['id_record'])); if (!empty($rs)) { $result .= ' '; foreach ($rs as $r) { $result .= ' '; } $result .= '
'._('Nome').' '._('Data').' #
'.$r['nome'].' '.\Translator::timestampToLocale($r['created_at']).'

'; } // Form per l'upload di un nuovo file $result .= ' '.$options['label'].'
{[ "type": "text", "placeholder": "'._('Nome').'", "name": "nome_allegato", "required": 1 ]}
{[ "type": "file", "placeholder": "'._('File').'", "name": "blob", "required": 1 ]}
'; $result .= ' '; if (!empty($options['showpanel'])) { $result .= '
'; } return $result; } }