1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
create or replace procedure formDomaine is
begin
htp.p('<script language=javascript>
function apply()
{
document.frm.sub.disabled=true;
alert(document.frm.chk.checked);
if(document.frm.chk.checked==true)
{
document.frm.sub.disabled=false;
}
if(document.frm.chk.checked==false)
{
document.frm.sub.enabled=false;
}
}
</script>');
htp.htmlOpen;
htp.header (1,'Site du Projet Tuteuré','CENTER');
htp.bodyOpen;
htp.print('<form name="frm" action="b3bd3.formCategorie",method ="get")>');
htp.print('<center>');
htp.tableOpen('BORDER="2px"');
htp.tableCaption('Domaines','CENTER');
for ligne in (select * from domaine) LOOP
htp.tableRowOpen;
htp.tabledata('<INPUT TYPE="checkbox" name="'||ligne.id_domaine||'" onClick="apply()" value="'||ligne.id_domaine||'">');
htp.tableData(ligne.intitule);
htp.tableRowClose;
end loop;
htp.tableClose;
htp.print('</center>');
htp.print('<center><input type="submit" name="sub" value="Valider" disabled></center>');
htp.formClose;
htp.print('</form>');
htp.bodyClose;
htp.htmlClose;
end; |
Partager