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
|
function patient(id,nom,prenom,ddn) {
this.id = id;
this.nom = nom;
this.prenom = prenom;
this.ddn = ddn;
new Ajax.Updater(
'attente',
'cree_div.php',
{
method: 'post',
parameters: {id: id,nom: nom, prenom: prenom, ddn: ddn},
insertion: Insertion.Bottom,
onComplete: function() {
Sortable.create("attente",{tag:"div",onEnd:function(element){alert(element.id);},dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("iao",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("radio",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("labo",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("med",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("dechoc",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("porte",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("box1",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("box2",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
Sortable.create("trauma",{tag:"div",dropOnEmpty: true,containment:
["attente","iao","radio","labo","med","dechoc","porte","box1","box2","trauma"],constraint:false,only:"lineitem"});
}
}
)
document.getElementById('autocomplete').value = ''; |
Partager