} if (preg_match('/yeartype\\/C/', $_GET['q'])) { $budget_link = l('<span class="nav-title">Budget</span><br> ' . custom_number_formatter_format(0, 1, '$'), '', $options_disabled); $revenue_link = l('<span class="nav-title">Revenue</span><br> ' . custom_number_formatter_format(0, 1, '$'), '', $options_disabled); } $current_dashboard = _getRequestParamValue("dashboard"); // Disable featured dashboatrd for other government entities. if (preg_match('/datasource\\/checkbook_oge/', $_GET['q'])) { $mwbe_amount = 0; $svendor_amount = 0; $mwbe_filters = "<div class='main-nav-drop-down' style='display:none'>\n \t\t</div>\n \t\t"; $svendor_filters = "<div class='main-nav-drop-down' style='display:none'>\n \t\t</div>\n \t\t"; } else { // Get mwbe and subvendor links. $mwbe_active_domain_link = RequestUtil::getDashboardTopNavURL("mwbe"); $svendor_active_domain_link = RequestUtil::getDashboardTopNavURL("subvendor"); $svendor_active_domain_link = preg_replace('/\\/industry\\/[^\\/]*/', '', $svendor_active_domain_link); // calcluate amount for mwbe and subvendors top nav. if (preg_match('/contract/', $_GET['q'])) { /*For M/WBE and Sub Vendors dashboard, need to consider both active & registered expense contracts for highlighting. This will resolve the case where there is active contracts, so user should be able to click on the dashboards. */ /* Active Contracts */ $active_mwbe_amount = $node->data[11]['current_amount_sum']; $active_mwbe_subven_amount = $node->data[13]['current_amount_sum']; $active_subven_amount = $node->data[12]['current_amount_sum']; /* Registered Contracts */ $registered_mwbe_amount = $node->data[6]['current_amount_sum']; $registered_mwbe_subven_amount = $node->data[10]['current_amount_sum']; $registered_subven_amount = $node->data[8]['current_amount_sum']; /* Active & Registered Contracts */ $active_registered_mwbe_amount = $active_mwbe_amount + $registered_mwbe_amount;