/** * This file is part of the Checkbook NYC financial transparency software. * * Copyright (C) 2012, 2013 New York City * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ $title = 'New York City'; $domain = 'Budget'; $agency = _getRequestParamValue('agency'); $expcategory = _getRequestParamValue('expcategory'); if (!empty($expcategory)) { $expName = _checkbook_project_get_name_for_argument('object_class_id', $expcategory); $title = $expName; } else { if (!empty($agency)) { $title = _checkbook_project_get_name_for_argument('agency_id', $agency); } }
<?php /** * This file is part of the Checkbook NYC financial transparency software. * * Copyright (C) 2012, 2013 New York City * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ $refURL = $_GET['refURL']; $title = "New York City"; $agencyId = _getRequestParamValue('agency'); if (isset($agencyId)) { $title = _checkbook_project_get_name_for_argument("agency_id", $agencyId); } $domain = 'Payroll';
static function getRevenueNoRecordsMsg() { $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())) { $smnid = isset($bottomURL) ? RequestUtil::getRequestKeyValueFromURL("smnid", $bottomURL) : RequestUtil::getRequestKeyValueFromURL("smnid", current_path()); $dtsmnid = isset($bottomURL) ? RequestUtil::getRequestKeyValueFromURL("dtsmnid", $bottomURL) : RequestUtil::getRequestKeyValueFromURL("dtsmnid", current_path()); if ($smnid > 0 || $dtsmnid > 0) { if ($dtsmnid > 0) { $title = "There are no records to be displayed."; } else { $bottomURL = $bottomURL ? $bottomURL : current_path(); $last_id = _getLastRequestParamValue($bottomURL); if ($last_id["agency"] > 0) { $title = _checkbook_project_get_name_for_argument("agency_id", RequestUtil::getRequestKeyValueFromURL("agency", $bottomURL)); } elseif ($last_id["revcat"] > 0) { $title = _checkbook_project_get_name_for_argument("revenue_category_id", RequestUtil::getRequestKeyValueFromURL("revcat", $bottomURL)); } elseif (isset($last_id["fundsrccode"])) { $title = _checkbook_project_get_name_for_argument("funding_class_code", RequestUtil::getRequestKeyValueFromURL("fundsrccode", $bottomURL)); } $title = 'There are no records to be displayed for ' . $title . '.'; } } } else { $title = "There are no revenue details."; } return html_entity_decode($title); }