当前位置: 首页>>代码示例>>PHP>>正文


PHP RequestUtil::getDashboardTopNavURL方法代码示例

本文整理汇总了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>&nbsp;' . custom_number_formatter_format(0, 1, '$'), '', $options_disabled);
    $revenue_link = l('<span class="nav-title">Revenue</span><br>&nbsp;' . 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;
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_navigation.tpl.php


注:本文中的RequestUtil::getDashboardTopNavURL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。