$contactStatus = _getRequestParamValue('contstatus');
$contactStatusLabel = 'Active';
if ($contactStatus == 'R') {
    $contactStatusLabel = 'Registered';
}
$contactCategory = _getRequestParamValue('contcat');
$contactCategoryLabel = 'Expense';
if ($contactCategory == 'revenue') {
    $contactCategoryLabel = 'Revenue';
}
if ($contactCategory == 'all') {
    $contactCategoryLabel = '';
}
$current_url = explode('/', $_SERVER['REQUEST_URI']);
if ($current_url[1] == 'contract' && ($current_url[2] == 'search' || $current_url[2] == 'all') && $current_url[3] == 'transactions') {
    $summaryTitle = "";
} else {
    if (_checkbook_check_is_mwbe_page() || $dashboard) {
        $summaryTitle = RequestUtil::getDashboardTitle() . " ";
    }
}
//Handle Sub Vendor widget to not repeat 'Sub Vendor' in title in certain dashboards
$suppress_widget_title = $dashboard == "ss" && $smnid == 720 || $dashboard == "sp" && $smnid == 720;
//Sub Vendors (M/WBE)
if (!$suppress_widget_title) {
    $summaryTitle .= NodeSummaryUtil::getInitNodeSummaryTitle();
}
$summaryTitle = $summaryTitle != '' ? $summaryTitle : '';
print "<h2 class='contract-title' class='title'>{$summaryTitle} {$contactStatusLabel} {$contactCategoryLabel} Contracts Transactions</h2>";
global $checkbook_breadcrumb_title;
$checkbook_breadcrumb_title = "{$summaryTitle} {$contactStatusLabel} {$contactCategoryLabel} Contracts Transactions";
示例#2
0
 /** Returns Revenue page title and Breadcrumb */
 static function getRevenueBreadcrumbTitle()
 {
     $bottomURL = $_REQUEST['expandBottomContURL'];
     if (isset($bottomURL) && preg_match('/transactions/', $bottomURL) || preg_match('/agency_revenue_by_cross_year_collections_details/', current_path()) || preg_match('/agency_revenue_by_cross_year_collections_details/', $bottomURL) || preg_match('/revenue_category_revenue_by_cross_year_collections_details/', current_path()) || preg_match('/revenue_category_revenue_by_cross_year_collections_details/', $bottomURL) || preg_match('/funding_class_revenue_by_cross_year_collections_details/', current_path()) || preg_match('/funding_class_revenue_by_cross_year_collections_details/', $bottomURL) || preg_match('/revenue_transactions/', current_path())) {
         $dtsmnid = isset($bottomURL) ? RequestUtil::getRequestKeyValueFromURL("dtsmnid", $bottomURL) : RequestUtil::getRequestKeyValueFromURL("dtsmnid", current_path());
         $smnid = isset($bottomURL) ? RequestUtil::getRequestKeyValueFromURL("smnid", $bottomURL) : RequestUtil::getRequestKeyValueFromURL("smnid", current_path());
         if (isset($dtsmnid)) {
             $title = NodeSummaryUtil::getInitNodeSummaryTitle($dtsmnid);
         } else {
             if (isset($smnid)) {
                 $title = NodeSummaryUtil::getInitNodeSummaryTemplateTitle($smnid);
             } else {
                 $title = _get_budget_breadcrumb_title_drilldown() . ' Revenue';
             }
         }
     } else {
         if (!$bottomURL && preg_match('/^revenue\\/transactions/', current_path())) {
             $title = "Revenue Transactions";
         } else {
             $title = _get_budget_breadcrumb_title_drilldown() . ' Revenue';
         }
     }
     return html_entity_decode($title);
 }