invoice-refund-view.php 3.73 KB
<!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>
    <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;
        }
	</style>
</head>

<body class="invoice-refund">
    <div style="display:block; width:750px; margin-bottom:0px;">
        <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>
                </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();?>)</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>
                            <input name="force_cancellation_fee" id="force_cancellation_fee" value="1" type="checkbox" checked="checked" />
                            <label for="force_cancellation_fee">Apply cancellation fee?</label>
                            <label for="force_cancellation_fee" class="amount">(<?php echo '$150.00'; ?>)</label>
                        </td>
                        <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>