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 41 42 43 44 45 46 47 48 49 50 51 52
|
function ajoutPane() {
var ac = dijit.byId('actarifAchCtrl');
var apn = new dijit.layout.ContentPane({
title : "Trait. tarif",
id : "cp2ctrl",
name : "cp2ctrl",
style : "background : #c2d8ed;"});
ac.addChild(apn);
//créer span pour tooltip
var divTtp = document.createElement("div");
divTtp.id="divTtp";
divTtp.jsId="divTtp";
divTtp.style.marginTop="30px";
divTtp.style.marginBottom="30px";
divTtp.className="centrage";
divTtp.innerHTML = "<img src='images/_info.png'></img>";
apn.attr('content', divTtp);
var abcStore = new dojo.data.ItemFileReadStore({
url: "tarifAch/listecodeClassement.php?codsoc="+dijit.byId('codsoc').value});
var abcSlt = new dijit.form.Select ({
name : 'abcSlt',
id : 'abcSlt',
style : 'width: 100px; height:20px;',
store : abcStore,
value : "",
onChange : function(){reafficheGrid(this.value, dijit.byId("pcentSlt").attr(value))}
});
var pcentSlt = new dijit.form.Select({
name : 'pcentSlt',
id : 'pcentSlt',
style : 'width: 100px; height:20px;',
onChange : function(){reafficheGrid(this.value, dijit.byId("abcSlt").attr(value))},
options: [{
label: '> 20%',
value: '20'
},{
label: '> 15% ~ 20%',
value: '15'
}]});
apn.domNode.appendChild(abcSlt.domNode);
dojo.create('label', {'for':'abcSlt', 'innerHTML': 'Class. ABC'}, abcSlt.domNode, 'before');
apn.domNode.appendChild(pcentSlt.domNode);
dojo.create('label', {'for':'pcentSlt', 'innerHTML': 'Sélection %'}, pcentSlt.domNode, 'before');
} |
Partager