';
// Individuazione delle corrispondenze
$selected = null;
foreach ($fields as $key => $value) {
if (in_array($rows[0][$column], $value['names'])) {
$first_row = 1;
$selected = $key;
break;
}
}
echo '
{[ "type": "select", "label": "'.tr('Campo').'", "name": "fields[]", "values": '.json_encode($select).', "value": "'.$selected.'" ]}
'.tr('#').' |
'.tr('Valore').' |
';
foreach ($rows as $key => $row) {
echo '
'.($key + 1).' |
'.$row[$column].' |
';
}
echo '