1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| $note= array ("francais Ecrit" => $francaisE,"francais Oral" => $francais0,"mathématiques" => $maths,"GSI" => $gsi,"Philosophie" => $philo,"Éco/Droit" => $eco_droit,"Mmanagement" => $management,"Eps" => $eps,"Anglais" => $anglais,"Espagnole" => $espagnole,"Histoire/Geo" => $histoire_geo);
$coef =array ( 2, 2, 4, 12, 2, 6, 4, 2, 2, 2, 2 );
?>
<br />
<table border="1">
<tr>
<th>Matiéres</th>
<th>Notes</th>
<th>Coefficients</th>
</tr>
<?
$i = 0;
foreach ($note as $clef => $ele)
{
$co = $coef[$i];
$i++;
echo "<tr><td>" .$clef. "</td><td>" .$ele. "</td><td> " .$co. "</td></tr>";
} |
Partager