mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-30 12:57:10 +01:00
orders
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user