Bonjour,
Je cherche a remplir une liste déroulante d'une page web:
Je voudrais donc remplacer:htp.tablerowopen(calign=>'LEFT',cattributes=>'bgcolor="'||Graphique.color_clair||'"');
..htp.tabledata (Graphique.print('Choix du type d''abonnement',taille=>'-1'));
..htp.tabledata ( htf.formSelectOpen ( cname => 'p_typeabo', cprompt => 'faite un choix: ', nsize => 4)||
....htf.formSelectOption( 'Station', cattributes => ' VALUE="10"') ||
....htf.formSelectOption( 'Localité', cattributes => ' VALUE="20"') ||
..htf.formSelectClose);
htp.tablerowclose;par un select dans une table, je penssait faire quelque chose comme ca:....htf.formSelectOption( 'Station', cattributes => ' VALUE="10"') ||
....htf.formSelectOption( 'Localité', cattributes => ' VALUE="20"') ||
Mais malheureusement on ne peut pas... et je ne trouve pas la solution...htp.tabledata ( htf.formSelectOpen ( cname => 'p_typeabo', cprompt => 'faite un choix: ', nsize => 4)||)
FOR curs IN (SELECT * FROM installations)
LOOP
htp.tabledata (htf.formSelectOption( curs.refinstallation, cattributes => ' VALUE=curs.refinstallation') ||)
END LOOP;
htp.tabledata (htf.formSelectClose);
Quelqun pour m'orienter svp?
Partager