Compare commits

...

3 Commits

Author SHA1 Message Date
2157c04381 Fix spacing link ritorno 2026-01-18 20:45:02 +01:00
330feed202 Aggiunta link ritorno alla lista 2026-01-18 20:30:04 +01:00
caed718bc6 Aggiunto messaggio "nessun ordine associato" 2026-01-18 15:20:31 +01:00
2 changed files with 10 additions and 12 deletions

View File

@@ -40,7 +40,6 @@ fclose($file);
echo "<tr><td>" . $utenti[$i]->id . "</td><td><a href=\"ordini.php?id=" . $utenti[$i]->id ."\">" . $utenti[$i]->name . "</a></td><td><a href=\"mailto:" . $utenti[$i]->email ."\">" . $utenti[$i]->email . "</a></tr>";
}
?>
</table>
</body>
</html>

View File

@@ -31,19 +31,18 @@ fclose($file);
<link rel="stylesheet" href="style.css">
</head>
<body>
<table>
<tr>
<th>ID Ordine</th>
<th>Prodotto</th>
<th>Importo</th>
</tr>
<?php
<p><a href="index.php">Torna alla lista</a></p>
<?php
if(count($ordini) == 0){
echo "<p>Nessun ordine associato all'utente</p>";
}
else{
echo "<table><tr><th>ID Ordine</th><th>Prodotto</th><th>Importo</th></tr>";
for($i=0; $i<count($ordini); $i++){
echo "<tr><td>" . $ordini[$i]->id . "</td><td>" . $ordini[$i]->product . "</td><td>" . number_format($ordini[$i]->importo,2,",",".") . "€</td></tr>";
}
?>
</table>
echo "</table>";
}
?>
</body>
</html>