-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathtemplate.php
167 lines (164 loc) · 4.09 KB
/
template.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
162
163
164
165
166
167
<html>
<head>
<title>Invoice</title>
<style type="text/css">
#page-wrap {
width: 700px;
margin: 0 auto;
}
.center-justified {
text-align: justify;
margin: 0 auto;
width: 30em;
}
table.outline-table {
border: 1px solid;
border-spacing: 0;
}
tr.border-bottom td, td.border-bottom {
border-bottom: 1px solid;
}
tr.border-top td, td.border-top {
border-top: 1px solid;
}
tr.border-right td, td.border-right {
border-right: 1px solid;
}
tr.border-right td:last-child {
border-right: 0px;
}
tr.center td, td.center {
text-align: center;
vertical-align: text-top;
}
td.pad-left {
padding-left: 5px;
}
tr.right-center td, td.right-center {
text-align: right;
padding-right: 50px;
}
tr.right td, td.right {
text-align: right;
}
.grey {
background:grey;
}
</style>
</head>
<body>
<div id="page-wrap">
<table width="100%">
<tbody>
<tr>
<td width="30%">
<img src="http://exotel.in/wp-content/uploads/2013/03/exotel.png"> <!-- your logo here -->
</td>
<td width="70%">
<h2>Tax Invoice</h2><br>
<strong>Date:</strong> <?php echo date('d/M/Y');?><br>
<strong>Billing Cycle:</strong> 01/01/2013 to 01/02/2013<br>
<strong>Invoice Number:</strong> BF123<br>
<strong>Due Date:</strong> 10/01/2013<br>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">
<div class="center-justified">
<strong>Invoice To:</strong> FooBar
<strong>Invoice Amount:</strong> Rs. 11,236
</div>
</td>
</tr>
</tbody>
</table>
<p> </p>
<table width="100%" class="outline-table">
<tbody>
<tr class="border-bottom border-right grey">
<td colspan="3"><strong>Summary</strong></td>
</tr>
<tr class="border-bottom border-right center">
<td width="45%"><strong>Activity</strong></td>
<td width="25%"><strong>Tax</strong></td>
<td width="30%"><strong>Amount (INR)</strong></td>
</tr>
<tr class="border-right">
<td class="pad-left">Summary Line item 1</td>
<td class="center">Tax percent (12.36%)</td>
<td class="right-center">Rs. 11,236</td>
</tr>
<tr class="border-right">
<td class="pad-left"> </td>
<td class="right border-top">Subtotal</td>
<td class="right border-top">Rs. 10,000</td>
</tr>
<tr class="border-right">
<td class="pad-left"> </td>
<td class="right border-top">Tax</td>
<td class="right border-top">Rs. 1236</td>
</tr>
<tr class="border-right">
<td class="pad-left"> </td>
<td class="right border-top">Total</td>
<td class="right border-top">Rs. 11,236</td>
</tr>
</tbody>
</table>
<p> </p>
<table width="100%" class="outline-table">
<tbody>
<tr class="border-bottom border-right grey">
<td colspan="3"><strong>Usage Line Item 1</strong></td>
</tr>
<tr class="border-bottom border-right center">
<td width="45%"><strong>Description</strong></td>
<td width="25%"><strong>Date</strong></td>
<td width="30%"><strong>Amount (INR)</strong></td>
</tr>
<tr class="border-right">
<td class="pad-left">Line item 1.1 desc</td>
<td class="center">Usage date</td>
<td class="right-center">Amount</td>
</tr>
</tbody>
</table>
<p> </p>
<table width="100%">
<tbody>
<tr>
<td width="50%">
<div class="center-justified"><strong>To make a payment:</strong><br>
Your payment options<br>
<strong>ST Reg no:</strong> Your service tax number<br>
<strong>Service Category:</strong> Service tax category<br>
<strong>Service category code:</strong> Service tax code<br>
</div>
</td>
<td width="50%">
<div class="center-justified">
<strong>Address</strong><br>
Foo Baar<br>
Dubai<br>
Dubai Main Road<br>
Vivekanandar Street<br>
</td>
</tr>
</tbody>
</table>
<p> </p>
<table>
<tbody>
<tr>
<td>
No human was involved in creating this invoice, so, no signature is needed
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>