query($sql); $Donations = $DB->to_array(false,MYSQLI_NUM); $DB->query('SELECT FOUND_ROWS()'); list($Results) = $DB->next_record(); if (empty($_GET['search']) && !isset($_GET['page']) && !$DonationTimeline = $Cache->get_value('donation_timeline')) { include(SERVER_ROOT.'/classes/charts.class.php'); $DB->query(" SELECT DATE_FORMAT(Time,'%b \'%y') AS Month, SUM(Amount) FROM donations GROUP BY Month ORDER BY Time DESC LIMIT 1, 18"); $Timeline = array_reverse($DB->to_array()); $Area = new AREA_GRAPH(880, 160, array('Break' => 1)); foreach ($Timeline as $Entry) { list($Label, $Amount) = $Entry; $Area->add($Label, $Amount); } $Area->transparent(); $Area->grid_lines(); $Area->color('3d7930'); $Area->lines(2); $Area->generate(); $DonationTimeline = $Area->url(); $Cache->cache_value('donation_timeline', $DonationTimeline, mktime(0, 0, 0, date('n') + 1, 2)); } View::show_header('Donation log'); if (empty($_GET['search']) && !isset($_GET['page'])) { ?>
User | Amount | Time | |
=Users::format_username($UserID, true, true, true, true)?> | =display_str($Amount)?> =$Currency?> | =display_str($Email)?> | =time_diff($DonationTime)?> |