invoice-refund-view.php
3.78 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
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Refund: <?php echo $invoice->getTitle(); ?></title>
</head>
<body class="invoice-refund">
<style type="text/css">
html, body { margin:0px; padding:0;}
.title-link {
color: #F7BD55;
font-size: 12px;
font-weight: bold;
text-align: left;
line-height: 1.75em;
background: #3B0D32;
border: 1px solid #FFF;
border-bottom: 1px solid #999;
cursor: default;
padding: 3px 10px 3px 10px;
margin: 0em;
}
form {
display: block;
margin-right: 20px;
}
table.item-listings tr th { text-align: left; border-bottom: 1px solid #CCC; }
table.item-listings tr td { text-aling: left; border-bottom: 1px solid #CCC; }
table.item-listings tbody tr.odd td { background-color: #F5F5F5; }
table.item-listings tr th,
table.item-listings tr td { padding: 4px 5px; }
table.item-listings thead tr th { padding-bottom: 10px; }
table { border-collapse:collapse; }
.dashboard-section-title { font-weight:bold; color:#3b0d32; }
label.amount {
color: #999;
font-size: 11px;
}
.part-wrapper {
display: block;
width: 750px;
margin-bottom: 0;
}
</style>
<div class="part-wrapper">
<div class="title-link">Refund: <?php echo $invoice->getTitle(); ?></div>
<div style="padding:10px;">
<form id="invoice_refund_form">
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="item-listings">
<thead><tr>
<th>Item Description</th>
<th width="140">Refund?</th>
<th width="140">Cancel Fee?</th>
</tr></thead>
<tbody>
<?php
$i = 0;
foreach ($invoice as $key => $item):
$unq = "keys[{$key}]";
?>
<tr class="<?php echo (++$i & 1 ? 'odd' : 'even'); ?>">
<td><label for="<?php echo $unq; ?>"><?php echo $item->getDescription(); ?></label></td>
<td>
<input type="checkbox" checked="checked" value="1" id="<?php echo $unq; ?>" name="<?php echo $unq; ?>" />
<label for="<?php echo $unq; ?>" class="amount">(-$<?php echo $item->getTotal(true); ?>)</label>
</td>
<td>
<input type="checkbox" checked="checked" value="1" id="force_cancellation_fee" name="force_cancellation_fee" />
<label for="<?php echo $unq; ?>" class="amount">(+<?php echo '$150.00'; ?>)</label>
</td>
</tr>
<?php endforeach; ?>
</tbody></table>
<div style="padding-top:8px; margin-top:25px;">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="400" style="text-align:right;">
<input type="submit" value="Apply Changes" /> <input type="button" value="Cancel Changes" id="refund_cancel_btn" />
</td>
</tr>
</table>
</div>
</form>
</div>
</div>
</body>
</html>