{[ "type": "text", "label": "", "name": "nome", "required": 1, "value": "$nome$" ]}
{[ "type": "text", "label": "", "name": "colore", "class": "colorpicker text-center", "value": "$colore$", "extra": "maxlength='7'", "icon-after": "
" ]}
{[ "type": "textarea", "label": "", "name": "nota", "value": "$nota$" ]}


fetchArray('SELECT `mg_articoli`.`id`, `mg_articoli`.`codice`, `mg_articoli`.`barcode`, `mg_articoli`.`deleted_at` FROM `mg_articoli` WHERE `id_categoria`='.prepare($id_record).' OR `id_sottocategoria`='.prepare($id_record).' OR `id_sottocategoria` IN (SELECT id FROM `mg_categorie` WHERE `parent`='.prepare($id_record).')'); if (!empty($elementi)) { echo '

'.tr('Articoli collegati: _NUM_', [ '_NUM_' => count($elementi), ]).'

'; } else { echo ' '.tr('Elimina').' '; }