-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
160 lines (126 loc) · 5.43 KB
/
index.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<title>Invoice 140 - Customer Name - Date</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/example.js"></script>
<script type="text/javascript">
$( document ).ready( function() {
var todayDate = print_today();
$( '#date' ).html( todayDate );
updateDates();
$( '#invoiceNum, #date, #customer-title' ).blur( function() { updateDates(); });
});
function updateDates() {
var lines = $( '#customer-title' ).val().split( '\n' ),
customerName = lines[0],
invoiceNum = $('#invoiceNum').val(),
originalDate = $( '#date' ).val(),
dateObject = new Date(originalDate),
formattedDate = dateObject.toISOString().substring(0, 10);
document.title = 'Invoice ' + invoiceNum + ' - ' + customerName + ' - ' + formattedDate;
}
</script>
</head>
<body>
<div id="page-wrap">
<textarea id="header">INVOICE</textarea>
<div id="identity">
<textarea id="address">AndrewRMinion Design</textarea>
<div id="logo">
<div id="logoctr">
<a href="javascript:;" id="change-logo" title="Change logo">Change Logo</a>
<a href="javascript:;" id="save-logo" title="Save changes">Save</a>
|
<a href="javascript:;" id="delete-logo" title="Delete logo">Delete Logo</a>
<a href="javascript:;" id="cancel-logo" title="Cancel changes">Cancel</a>
</div>
<div id="logohelp">
<input id="imageloc" type="text" size="50" value="" /><br />
(max width: 540px, max height: 100px)
</div>
<img id="image" src="images/AndrewRMinion-logo.svg" alt="logo" />
</div>
</div>
<div style="clear:both"></div>
<div id="customer">
<textarea id="customer-title">Widget Corp.
c/o Steve Widget
Address
City, State 12345</textarea>
<table id="meta">
<tr>
<td class="meta-head">Invoice #</td>
<td><textarea id="invoiceNum">1360</textarea></td>
</tr>
<tr>
<td class="meta-head">Date</td>
<td><textarea id="date">May 1, 2019</textarea></td>
</tr>
<tr>
<td class="meta-head">Amount Due</td>
<td><div class="due">$875.00</div></td>
</tr>
</table>
</div>
<table id="items">
<tr>
<th>Item</th>
<th>Description</th>
<th>Unit Cost</th>
<th>Quantity</th>
<th>Price</th>
</tr>
<tr class="item-row removable">
<td class="item-name"><div class="delete-wpr"><textarea>Web Updates</textarea><a class="delete" href="javascript:;" title="Remove row">X</a></div></td>
<td class="description"><textarea>Monthly web updates for http://widgetcorp.com (Nov. 1–Nov. 30, 2011)</textarea></td>
<td><textarea class="cost">$650.00</textarea></td>
<td><textarea class="qty">1</textarea></td>
<td><span class="price">$650.00</span></td>
</tr>
<tr class="item-row removable">
<td class="item-name"><div class="delete-wpr"><textarea>SSL Renewals</textarea><a class="delete" href="javascript:;" title="Remove row">X</a></div></td>
<td class="description"><textarea>Yearly renewals of SSL certificates on main domain and several subdomains</textarea></td>
<td><textarea class="cost">$75.00</textarea></td>
<td><textarea class="qty">3</textarea></td>
<td><span class="price">$225.00</span></td>
</tr>
<tr id="hiderow">
<td colspan="5"><a id="addrow" href="javascript:;" title="Add a row">Add a row</a></td>
</tr>
<tr>
<td colspan="2" class="blank"> </td>
<td colspan="2" class="total-line">Subtotal</td>
<td class="total-value"><div id="subtotal">$875.00</div></td>
</tr>
<tr class="removable">
<td colspan="2" class="blank"> </td>
<td colspan="2" class="total-line"><div class="delete-wpr"><a class="delete" href="javascript:;" title="Remove row">X</a></div>Discount</td>
<td class="total-value"><textarea id="discount">$0.00</textarea></td>
</tr>
<tr>
<td colspan="2" class="blank"> </td>
<td colspan="2" class="total-line">Total</td>
<td class="total-value"><div id="total">$875.00</div></td>
</tr>
<tr>
<td colspan="2" class="blank"> </td>
<td colspan="2" class="total-line">Amount Paid</td>
<td class="total-value"><textarea id="paid">$0.00</textarea></td>
</tr>
<tr>
<td colspan="2" class="blank"> </td>
<td colspan="2" class="total-line balance">Balance Due</td>
<td class="total-value balance"><div class="due">$875.00</div></td>
</tr>
</table>
<div id="terms">
<h5>Terms</h5>
<textarea>NET 30 Days. Finance Charge of 1.5% will be made on unpaid balances after 30 days.</textarea>
</div>
</div>
</body>
</html>