本文整理汇总了PHP中RequestUtil::getDashboardTopNavURL方法的典型用法代码示例。如果您正苦于以下问题:PHP RequestUtil::getDashboardTopNavURL方法的具体用法?PHP RequestUtil::getDashboardTopNavURL怎么用?PHP RequestUtil::getDashboardTopNavURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RequestUtil
的用法示例。
在下文中一共展示了RequestUtil::getDashboardTopNavURL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: l
}
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;