This commit is contained in:
Janis M
2022-03-29 10:41:54 +02:00
parent 6fc6f1e9be
commit 0caff2b01a
4 changed files with 68 additions and 19 deletions

View File

@@ -12,10 +12,34 @@
<p><b>Vorname:</b> <%= firstname %></p>
<p><b>Nachname:</b> <%= lastname %></p>
<p><b>Benutzername: </b><%= username %></p>
<p><b>E-Mail: </b><%= email.substring(0,email.length/3) %><% for(var i = 0; i < email.length - email.length/4; i++){ %>*<% } %>
</p>
</div>
<div id="order-info">
<h3>Ihre Bestellungen</h3>
<table>
<thead>
<tr>
<th>Bestellnummer</th>
<th>Produktname</th>
<th>Anzahl</th>
<th>Stückpreis</th>
<th>Gesamtpreis</th>
</tr>
</thead>
<tbody>
<% for(var i = 0; i < orders.length; i++){ %>
<tr>
<td><%= orders[i].id %></td>
<td><%= orders[i].name %></td>
<td><%= orders[i].quantity %></td>
<td><%= orders[i].price %></td>
<td><%= orders[i].price * orders[i].quantity%> €</td>
</tr>
<% } %>
</tbody>
</table>
</div>
</body>

View File

@@ -1,6 +1,6 @@
<div class="headerDIV">
<div class="headerDIVLogo" style="cursor:pointer"onclick="window.open('/', '_self')">
<img src="https://bock-drauf.com/wp-content/uploads/2019/09/amazon-logo-1024x576.png">
<div class="headerDIVLogo">
<img style="cursor:pointer"onclick="window.open('/', '_self')" src="https://bock-drauf.com/wp-content/uploads/2019/09/amazon-logo-1024x576.png">
</div><div class="headerDIVSearch">
<input placeholder="Suche" class="vertical-center"></input
><button class="vertical-center"><i class="material-icons">search</i></button>