changes
This commit is contained in:
28
views/simpleowner.ejs~
Normal file
28
views/simpleowner.ejs~
Normal 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>
|
||||
Reference in New Issue
Block a user