-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-table.html
More file actions
111 lines (107 loc) · 3.37 KB
/
single-table.html
File metadata and controls
111 lines (107 loc) · 3.37 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Single Table Example</title>
</head>
<body>
<div id="totals-summary">
<section id="transaction-title">
<h2>Downloading Single Table in Landscape Orientation</h2>
<p>
This report was printed by LOGGED IN USER NAME on CURRENT DATE
</p>
</section>
<section class="totals-report">
<table id="transaction-table" cellspacing="0">
<thead>
<tr>
<th class="table-th">Transaction <br />Type</th>
<th class="table-th">Account <br />Type</th>
<th class="table-th">Number of <br />Records</th>
<th class="table-th">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>SOS</td>
<td>154</td>
<td>0.00</td>
</tr>
<tr>
<td></td>
<td>OH</td>
<td>64</td>
<td>0.00</td>
</tr>
<tr>
<td></td>
<td><b>Total Records:</b></td>
<td><b>218</b></td>
<td><b>0.00</b></td>
</tr>
<tr>
<td>Debits</td>
<td>SOS</td>
<td>3</td>
<td>6,005,283.33</td>
</tr>
<tr>
<td>Debits</td>
<td>OH</td>
<td>0</td>
<td>0.00</td>
</tr>
<tr>
<td></td>
<td><b>Total Debits:</b></td>
<td><b>3</b></td>
<td><b>6,005,283.33</b></td>
</tr>
<tr>
<td>Credits</td>
<td>SOS</td>
<td>14</td>
<td>65,003,973.15</td>
</tr>
<tr>
<td>Credits</td>
<td>OH</td>
<td>0</td>
<td>0.00</td>
</tr>
<tr>
<td></td>
<td><b>Total Credits:</b></td>
<td><b>14</b></td>
<td><b>65,003,973.15</b></td>
</tr>
<tr>
<td colspan="4"></td>
</tr>
<tr>
<td></td>
<td></td>
<td><b>Grand Total:</b></td>
<td><b>58,998,689.82</b></td>
</tr>
</tbody>
</table>
</section>
<input type="button" value="download"
onclick="convertTableToPDF( 'Transaction_Report_AA',
'transaction-title',
['transaction-table'],
[],
'landscape' );" />
</div>
<!-- Adding Javascripts -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.4.1/jspdf.plugin.autotable.min.js"></script>
<script type="text/javascript" src="/jsHTMLtoPDF.js"></script>
</body>
</html>