1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
tableStart = new String("<table border='1'>");
header = new String("<tr><th>Nom du support</th><th>Encours estimé</th><th>Niveau de risque</th><th>Montant racheté</th></tr>");
tableEnd = new String("</table>");
data = new String("");
tab_nom=row["nom_support"].split(new RegExp("[;]+", "g"));
tab_encours=row["encours_support"].split(new RegExp("[;]+", "g"));
tab_risque=row["risque_support"].split(new RegExp("[;]+", "g"));
tab_montant=row["montant_support"].split(new RegExp("[;]+", "g"));
for (var i = 0; i < tab_nom.length; i++ )
{
data += new String("<tr>");
data += new String("<td>") + new String(tab_nom[i]) + new String("</td>");
data += new String("<td>") + new String(tab_encours[i]) + new String("</td>");
data += new String("<td>") + new String(tab_risque[i]) + new String("</td>");
data += new String("<td>") + new String(tab_montant[i]) + new String("</td>");
data += new String("</tr>");
}
tableau = tableStart + header + data + tableEnd;
tableau; |
Partager