first real comit
This commit is contained in:
51
app/list/auftrag.php
Normal file
51
app/list/auftrag.php
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
<?php
|
||||
include '../head.php';
|
||||
echo '<p>Hallo Welt</p>';
|
||||
?>
|
||||
<table >
|
||||
<tr>
|
||||
<th>Auftrags Nr.</th>
|
||||
<th>Datum</th>
|
||||
<th>Uhrzeit</th>
|
||||
<th>Preis</th>
|
||||
<th>Funktionen</th>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php
|
||||
include '../connect.php';
|
||||
|
||||
$query="select * from Auftrag";
|
||||
$result=$sql->query($query);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
// output data of each row
|
||||
while($row = $result->fetch_assoc()) {
|
||||
$id=$row["AuftragsNr"];
|
||||
$datum=$row["Datum"];
|
||||
$zeit=$row["Zeit"];
|
||||
$price=$row["GesamtPreis"];
|
||||
|
||||
echo "<tr>
|
||||
<td>$id</td>
|
||||
<td>$datum</td>
|
||||
<td>$zeit</td>
|
||||
<td>$price</td>
|
||||
<td><a href='/view/auftrag.php?id=$id'>Details</a></td>
|
||||
</tr>";
|
||||
|
||||
}
|
||||
} else {
|
||||
echo "<p> 0 results </p>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
<?php
|
||||
include '../tail.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user