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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
removeAllChild("label");
for(var i = 0, m = liste1.length; i < m; i++)
{
try{
var tr = document.createElement("tr");
tr.setAttribute("class", "tabl_middle");
tr.setAttribute("ondblclick", "newShowModalDialog(\'http://monsite.fr/...\')");
tr.setAttribute("onmousemove", "couleurOn(this, 0, \'"+liste0[i].firstChild.nodeValue+"\', \'"+liste0[i].firstChild.nodeValue+"\')");
tr.setAttribute("onmouseout", "couleurOut(this, 0, \'"+liste0[i].firstChild.nodeValue+"\', \'"+liste0[i].firstChild.nodeValue+"\')");
tr.setAttribute("style", "background-color : "+liste0[i].firstChild.nodeValue);
// Icone Modification
var td = document.createElement("td");
td.setAttribute("class", "t_cellc");
img = document.createElement("img");
img.setAttribute("src", "http://monsite.fr/images/ouvrir_dossier.png");
img.setAttribute("onclick", "newShowModalDialog(\'http://montsite.fr/...\')");
img.setAttribute("class", "imageClic");
td.appendChild(img);
tr.appendChild(td);
// Icone suppression
td = document.createElement("td");
td.setAttribute("class", "t_cellc");
img = document.createElement("img");
img.setAttribute("src", "http://monsite.fr/images/poub.png");
img.setAttribute("onclick", "newShowModalDialog(\'http://montsite.fr/....\')");
img.setAttribute("class", "imageClic");
td.appendChild(img);
tr.appendChild(td);
// Icone statut id_trt
td = document.createElement("td");
td.setAttribute("class", "t_cellc");
img = document.createElement("img");
img.setAttribute("src", "http://montsite.fr/images/valide.png");
img.setAttribute("class", "imageClic");
td.appendChild(img);
tr.appendChild(td);
// Date et Heure évènements
td = document.createElement("td");
td.setAttribute("class", "t_cellc");
td.appendChild(document.createTextNode(liste2[i].firstChild.nodeValue));
tr.appendChild(td);
// Date clôture évènement
td = document.createElement("td");
td.setAttribute("class", "t_cellc");
if(liste3[i].firstChild != null) td.appendChild(document.createTextNode(liste3[i].firstChild.nodeValue));
tr.appendChild(td);
// Type
td = document.createElement("td");
td.setAttribute("class", "t_cell");
td.appendChild(document.createTextNode(liste4[i].firstChild.nodeValue));
tr.appendChild(td);
// Message
td = document.createElement("td");
td.setAttribute("class", "t_cellg");
td.appendChild(document.createTextNode(liste5[i].firstChild.nodeValue));
tr.appendChild(td);
// Lien document
td = document.createElement("td");
td.setAttribute("class", "t_cellg");
a = document.createElement("a");
a.setAttribute("href", liste6[i].firstChild.nodeValue);
a.setAttribute("class", "aide");
a.appendChild(document.createTextNode(liste7[i].firstChild.nodeValue));
td.appendChild(a);
tr.appendChild(td);
document.getElementById("label").appendChild(tr);
}
catch(e)
{
alert(e);
}
} |
Partager