';
// Individuazione delle corrispondenze
$selected = null;
foreach ($fields as $key => $value) {
//print_r($value);
//echo $rows[0][$column]."
";
if (in_array($rows[0][$column], $value)) {
$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 '