if (!$user) { fURL::redirect('/login.php?forward=/members/receipt.php'); } if (isset($_GET['userid']) && $user->isAdmin()) { $user = new User($_GET['userid']); } $hide_copyright = true; $from = new fDate('now - 1 year'); $to = new fDate('now'); if ($_GET['from']) { $from = new fDate($_GET['from']); } if ($_GET['to']) { $to = new fDate($_GET['to']); } $transactions = $user->buildTransactions($from, $to); $minimum = 5; $total_membership = 0; $total_donations = 0; $count = 0; ?> <div id="bd"> <div id="non-menu-content" class="grid_10"> <div style="padding-top: 1em; padding-bottom:2em; float:left; width:100%;"> <div style="float:left">London Hackspace Ltd.<br> 447 Hackney Road<br> London E2 9DY </div> <div style="float:right"> <span style="font-weight: bold; font-size: 2em;padding">Membership Receipt</span>
<?php if ($user->isAdmin()) { ?> <h3>Recent Payments</h3> <table> <thead> <tr> <th>Date</th> <th>Amount</th> <th>FIT ID</th> </tr> </thead> <tbody> <?php foreach ($this_user->buildTransactions() as $transaction) { ?> <tr> <td><?php echo $transaction->getTimestamp(); ?> </td> <td>£<?php echo $transaction->getAmount(); ?> </td> <td><?php echo $transaction->getFitId(); ?> </td> </tr>