-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvoice.php
161 lines (157 loc) · 9.72 KB
/
invoice.php
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>HTML to PDF demo code</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,700,700i,600,600i">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/invoice.css">
</head>
<body>
<main>
<section>
<div class="container" style="padding-top: 100px;">
<div>
<div class="container">
<div class="col-md-12" id="invoice">
<div class="invoice">
<!-- begin invoice-company -->
<div class="invoice-company text-inverse f-w-600">
<span class="pull-right hidden-print">
<a href="javascript:;" onclick="generatePDF()"
class="btn btn-sm btn-white m-b-10 p-l-5"><i
class="fa fa-file t-plus-1 text-danger fa-fw fa-lg"></i> Export as
PDF</a>
<a href="javascript:;" onclick="printContent()"
class="btn btn-sm btn-white m-b-10 p-l-5"><i
class="fa fa-print t-plus-1 fa-fw fa-lg"></i> Print</a>
</span>
<div><img src="img/Logo.jpg" width="50" style="border-radius: 50px;" /><a>Root
Android And Ethical Hacker</a></div>
</div>
<!-- end invoice-company -->
<!-- begin invoice-header -->
<div class="invoice-header">
<div class="row">
<div class="col">
<div class="invoice-from">
<small>from</small>
<address class="m-t-5 m-b-5">
<strong class="text-inverse">Twitter, Inc.</strong><br>
Email: [email protected]
</address>
</div>
</div>
<div class="col">
<div class="invoice-to">
<small>to</small>
<address class="m-t-5 m-b-5">
<strong
class="text-inverse"><?php echo $_POST['NAME'] ?></strong><br>
<?php echo $_POST['EMAIL_ID'] ?>
</address>
</div>
</div>
<div class="col">
<div class="invoice-date">
<strong><small>Invoice </small>
<div class="date text-inverse m-t-5"><span
id="date"><?php echo $_POST['TXNDATE']?></span></div>
</strong>
<div class="invoice-detail">
<span>#<?php echo $_POST['ORDERID'] ?></span><br>
Services Product
</div>
</div>
</div>
</div>
</div>
<!-- end invoice-header -->
<!-- begin invoice-content -->
<div class="invoice-content">
<!-- begin table-responsive -->
<div class="table-responsive">
<table class="table table-invoice">
<thead>
<tr>
<th>TASK DESCRIPTION</th>
<th class="text-right" width="20%">TOTAL AMOUNT</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="text-inverse"><strong>Product</strong>
</span><br>
<small>Something here like description .</small>
</td>
<td class="text-right">₹<?php echo $_POST['TXNAMOUNT'] ?>
</tr>
</tbody>
</table>
</div>
<!-- end table-responsive -->
<!-- begin invoice-price -->
<div class="invoice-price">
<div class="invoice-price-left">
<div class="invoice-price-row">
<div class="sub-price">
<!--small>SUBTOTAL</!--small>
<span class="text-inverse">₹<span id="total_sub"></span></span>
</div>
<div class="sub-price">
<i class="fa fa-plus text-muted"></i>
</div>
<div class="sub-price">
<small>GST (18%)</small>
<span-- class="text-inverse">₹<span id="total_interest"></span></span-->
</div>
</div>
</div>
<div class="invoice-price-right">
<small>TOTAL</small> <span
class="f-w-600">₹<?php echo $_POST['TXNAMOUNT'] ?></span>
</div>
</div>
<!-- end invoice-price -->
</div>
<!-- end invoice-content -->
<!-- begin invoice-note -->
<div class="invoice-note">
* Make all cheques payable to [Your Company Name]<br>
* Payment is due within 30 days<br>
* If you have any questions concerning this invoice, contact [Name, Phone Number,
Email]
</div>
<!-- end invoice-note -->
<!-- begin invoice-footer -->
<div class="invoice-footer">
<p class="text-center m-b-5 f-w-600">
THANK YOU FOR YOUR BUSINESS
</p>
<p class="text-center">
<span class="m-r-10"><i class="fa fa-fw fa-lg fa-globe"></i>
invoice.ethyt.tk</span>
<span class="m-r-10"><i class="fa fa-fw fa-lg fa-phone-volume"></i>
T:012-1234567890</span>
<span class="m-r-10"><i class="fa fa-fw fa-lg fa-envelope"></i>
[email protected]</span>
</p>
</div>
<!-- end invoice-footer -->
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/html2pdf.bundle.min.js"></script>
<script src="js/invoice.js"></script>
</body>
</html>