-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.html
More file actions
66 lines (60 loc) · 2.47 KB
/
test2.html
File metadata and controls
66 lines (60 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
// include the transaction fetching script
include './backend/get_transactions.php';
$year = date('ym');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div style='
background: #eeeeee;
max-width: 350px;
margin: 20px auto;
font-family: \"Courier New\", monospace;
background: #cecece;
border: 1px solid #ddd;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
padding: 0 10px;
color: #333;
'>
<p style="text-align: center;">receipt</p>
<div style='
margin: 20px auto;
font-family: \"Courier New\", monospace;
background: #ffffff;
border: 1px solid #ddd;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
padding: 30px;
border-radius: 10px;
color: #333;
'>
<h2 style='margin-top: 0; text-align: center;'>PayMobi RECEIPT</h2>
<hr style='border-top: 2px dashed #ccc;'>
<p><strong>Transaction ID:</strong> <span style='float: right;'>$transactionID</span></p>
<p><strong>Date:</strong> <span style='float: right;'>$date</span></p>
<p><strong>Customer:</strong> <span style='float: right;'>$customer</span></p><!--name of customer-->
<p><strong>Origin:</strong> <span style='float: right;'>$start</span></p>
<p><strong>Destination:</strong> <span style='float: right;'>$end</span></p>
<p><strong>Discount:</strong> <span style='float: right;'>$discountAmount [$discount]</span></p>
<h2 style='font-size: 20px; color:rgb(0, 0, 0);'>Amount: <span style='float: right;'>PHP " . number_format($result, 2) . "</span></h2>
<hr style='border-top: 2px dashed #ccc; margin: 30px 0;'>
<p style='font-size: 12px; color: #999; text-align: center;'><span
style='font-weight: bolder; color: #3a3a3a;'>This served as your E-Receipt. Stay safe on your
journey, Thank You!.</span></p>
</div>
<div style='text-align: center;'>
<p>
<hr>This is a system-generated receipt. Please Do Not Reply!. <br>This is a test email sent from a PHPMailer using Gmail SMTP.
</p>
<p>
@ PayMobi " . date('Y'); "
</p>
</div>
</div>
</body>
</html>