This commit is contained in:
2024-12-05 13:05:35 -05:00
parent 8cd8a68fe9
commit 581cedbd5a
9 changed files with 602 additions and 0 deletions

28
views/simpleowner.ejs~ Normal file
View File

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>Your Tickets</title>
</head>
<body>
<h1>Welcome, <%= username %>!</h1>
<table border="1">
<tr>
<th>Ticket</th>
<th>Owner</th>
<th>Offered To</th>
<th>QRCode</th>
</tr>
<% for (const t in tlist) { %>
<tr>
<td> <%= t %> </td>
<td> <%= tlist[t].owner %> </td>
<td> <%= tlist[t].offered %> </td>
<td> <%= simpledata %> </td>
<td> <%= QRCode.toDataURL("https://abc.com", function(err,url) { if (err) { console.error(err); return; } console.log(url); }); %> </td>
</tr>
<% } %>
<tr>
</tr>
</table>
</body>
</html>