/** * Copyright: dtbaker 2012 * Licence: Please check CodeCanyon.net for licence details. * More licence clarification available here: http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca * Package Date: 2015-11-25 02:55:20 * IP Address: 67.79.165.254 */ if (module_config::c('dashboard_income_summary', 1) && $this->can_i('view', 'Dashboard Finance Summary')) { $done_js = false; // todo: work out what data this current customer can view. $widgets = array(); $week_count = 1; $result = module_finance::get_dashboard_data(); foreach ($result as $r) { extract($r); ob_start(); if (!$done_js) { $done_js = true; if (get_display_mode() != 'mobile') { ?> <script type="text/javascript"> $(function() { $("#summary-form").dialog({ autoOpen: false, height: 550, width: 750, modal: true, buttons: {