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
| var nouveauElmtForm = document.createElement("FORM");
nouveauElmtForm.setAttribute("target","fiche_patient");
nouveauElmtForm.setAttribute("value","submit");
nouveauElmtForm.setAttribute("action","../../Fenetre_principale/Fiche_patient/fiche_patient.php");
nouveauElmtForm.setAttribute("method","post");
var nouveauElmtTr = document.createElement("TR");
var nouveauElmtNom = document.createElement("TD");
nouveauElmtNom.innerHTML = liste[i].patient.nom;
var nouveauElmtPrenom = document.createElement("TD");
nouveauElmtPrenom.innerHTML = liste[i].patient.prenom;
var nouveauElmtInput = document.createElement("INPUT");
nouveauElmtInput.setAttribute("name","id");
nouveauElmtInput.setAttribute("value",liste[i].patient.id);
nouveauElmtInput.setAttribute("type","hidden");
var nouveauElmtId = document.createElement("TD");
nouveauElmtId.appendChild(nouveauElmtInput);
var tmp = nouveauElmtId.innerHTML;
nouveauElmtId.innerHTML = tmp + liste[i].patient.id;
var nouveauElmtVoir = document.createElement("TD");
var nouveauElmtInput = document.createElement("INPUT");
nouveauElmtInput.setAttribute("name","affich");
nouveauElmtInput.setAttribute("src","../../images/fleche.png");
nouveauElmtInput.setAttribute("value","submit");
nouveauElmtInput.setAttribute("type","image");
nouveauElmtVoir.appendChild(nouveauElmtInput);
nouveauElmtTr.appendChild(nouveauElmtSexe);
nouveauElmtTr.appendChild(nouveauElmtNom);
nouveauElmtTr.appendChild(nouveauElmtPrenom);
nouveauElmtTr.appendChild(nouveauElmtAge);
nouveauElmtTr.appendChild(nouveauElmtId);
nouveauElmtTr.appendChild(nouveauElmtVoir);
_completeListe.appendChild(nouveauElmtTr);
_completeListe.appendChild(nouveauElmtForm); |