fetchArray('SELECT id FROM co_preventivi WHERE idstato='.prepare($id_record))); if ($preventivi == 0) { $attr = ''; } else { $attr = 'readonly'; echo '