<?php
include("funkcje.php");
?>
<html>
<head>
<meta charset="utf-8">
<title>Pętle</title>
<style>
table,td,th
{
margin:auto;
border:2px blue double;
border-collapse:collapse;
}
th,.figura
{
background:#003366;
height:50px;
color:white;
}
</style>
</head>
<body>

<table>
<tr>
<th>Nazwa figury</th>
<th>Rysunek</th>
<th>Przykładowe pole</th>
</tr>
<tr>
<td class="figura">trojkat</td>
<td><img src="1.png" width="50" height="50" ></td>
<td>
<?php echo trojkat(4,7);?>
</td>
</tr>
<tr>
<td class="figura">Prostokat</td>
<td><img src="2.png" width="50" height="50"></td>
<td>
<?php prostokat(6,9);?>
</td>
</tr>
<tr>
<td class="figura">Trapez</td>
<td><img src="3.png" width="50" height="50"></td>
<td>
<?php trapez(6,9,4);?>
</td>
</tr>
<tr>
<td class="figura">Koło</td>
<td><img src="4.png" width="50" height="50"></td>
<td>
<?php kolo(2);?>
</td>
</tr>
</table>

</body>
</html>
