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
|
var apn = new ijit.layout.ContentPane({
title : "Trait. tarif",
id : "cp2ctrl",
name : "cp2ctrl",
style : "background : #c2d8ed;"});
ac.addChild(apn);
if (!bt0){
//créer un bouton
var bt0 = "<button id='valid' style='margin-top:15px' onclick=' " +
"boutonChgetat(this.id, true,\"\"); " +
"majTable400(); affichePdf();'>Modification<br>du tarif</button>";
contenuPane = apn.attr('content');
newContenu = contenuPane + bt0;
apn.attr('content', newContenu);
}
var pcentSelect = new dijit.form.Select({
id : "pcentSlt",
name : "pcentSlt",
width : "30px"});
var pcentOpt = [
{ label: "1", value: 1},
{ label: "2", value: 2}
];
dijit.byId("pcentSlt").addOption(pcentOpt);
//dijit.byId('cp2ctrl').domNode.appendChild(pcentSelect.domNode);
//apn.placeAt(dijit.byId("cp2ctrl").domNode, "last");
var widg = dijit.byId("pcentSlt");
if (widg){
var dnode = widg.domNode;
contenuPane = apn.attr('content');
newContenu = contenuPane + dnode;
apn.attr('content', newContenu);} |
Partager