" class="fb"><?php $opw->draw(); ?> </a> </div> </div> <?php $db = Database::getDatabase(); // Downloads $sel = "TO_DAYS(dt)"; $order_totals = $db->getRows("SELECT {$sel} as dtstr, COUNT(*) FROM downloads WHERE DATE_ADD(dt, INTERVAL 30 DAY) > NOW() GROUP BY {$sel} ORDER BY {$sel} ASC"); $opw = new googleChart(implode(',', gimme($order_totals, 'COUNT(*)')), 'bary'); $opw->showGrid = 1; $opw->dimensions = '280x100'; $opw->setLabelsMinMax(4, 'left'); $opw_fb = clone $opw; $opw_fb->dimensions = '640x400'; ?> <div class="block"> <div class="hd"> <h2>Downloads 30 Days</h2> </div> <div class="bd"> <a href="<?php echo $opw_fb->draw(false); ?> " class="fb"><?php $opw->draw(); ?>
$opw = new googleChart(implode(',', gimme($order_totals, 'COUNT(*)')), 'bary'); $opw->showGrid = 1; $opw->dimensions = '280x100'; $opw->setLabelsMinMax(4, 'left'); $opw_fb = clone $opw; $opw_fb->dimensions = '640x400'; // Orders Per Month Per Application $data = array(); foreach ($applications as $app) { $data[$app->name] = $app->ordersPerMonth(); } $opma = new googleChart(); $opma->smartDataLabel($data); $opma->showGrid = 1; $opma->dimensions = '280x100'; $opma->setLabelsMinMax(4, 'left'); $opma_fb = clone $opma; $opma_fb->dimensions = '640x400'; include 'inc/header.inc.php'; ?> <div id="bd"> <div id="yui-main"> <div class="yui-b"><div class="yui-g"> <div class="block tabs spaces"> <div class="hd"> <h2>Orders</h2> <ul> <li class="<?php