-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DHIS2 Reporting Rate chart Reports
- Loading branch information
1 parent
ad56ae4
commit b64d610
Showing
89 changed files
with
15,505 additions
and
3,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
@ini_set("display_errors","1"); | ||
@ini_set("display_startup_errors","1"); | ||
|
||
$requestTable = "DHIS2_Reporting_Rate_Chart"; | ||
$requestPage = "list"; | ||
|
||
require_once("include/dbcommon.php"); | ||
require_once('include/xtempl.php'); | ||
require_once('classes/chartpage.php'); | ||
require_once('classes/searchclause.php'); | ||
add_nocache_headers(); | ||
|
||
require_once("include/dhis2_reporting_rate_chart1_variables.php"); | ||
|
||
if( Security::hasLogin() ) { | ||
if( !Security::processPageSecurity( $strtablename, 'S' ) ) | ||
return; | ||
} | ||
|
||
$pageMode = ChartPage::readChartModeFromRequest(); | ||
$xt = new Xtempl( $pageMode != CHART_SIMPLE ); | ||
|
||
// set params for a RunnerPage constructor | ||
$params = array(); | ||
$params["id"] = postvalue_number("id"); | ||
$params["xt"] = &$xt; | ||
$params["mode"] = $pageMode; | ||
$params["tName"] = $strTableName; | ||
$params["pageType"] = PAGE_CHART; | ||
$params["pageName"] = postvalue("page"); | ||
|
||
$params["masterPageType"] = postvalue("masterpagetype"); | ||
$params["masterTable"] = postvalue("mastertable"); | ||
if( $params["masterTable"] ) | ||
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest(); | ||
|
||
if( $pageMode = CHART_DASHBOARD ) | ||
{ | ||
$params["dashElementName"] = postvalue("dashelement"); | ||
$params["dashTName"] = postvalue("table"); | ||
} | ||
|
||
$pageObject = new ChartPage( $params ); | ||
$pageObject->init(); | ||
|
||
if( $pageObject->processSaveSearch() ) | ||
exit(); | ||
|
||
$pageObject->process(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?php | ||
@ini_set("display_errors","1"); | ||
@ini_set("display_startup_errors","1"); | ||
|
||
require_once("include/dbcommon.php"); | ||
add_nocache_headers(); | ||
|
||
require_once("classes/searchclause.php"); | ||
require_once("include/dhis2_reporting_rate_chart1_variables.php"); | ||
require_once("classes/searchcontrol.php"); | ||
require_once("classes/advancedsearchcontrol.php"); | ||
require_once("classes/panelsearchcontrol.php"); | ||
|
||
|
||
|
||
|
||
require_once('include/xtempl.php'); | ||
require_once('classes/searchpage.php'); | ||
require_once('classes/searchpage_dash.php'); | ||
|
||
$xt = new Xtempl(); | ||
$pageMode = SearchPage::readSearchModeFromRequest(); | ||
|
||
if( $pageMode == SEARCH_LOAD_CONTROL ) | ||
$layoutVersion = postvalue("layoutVersion"); | ||
|
||
|
||
$params = array(); | ||
$params['xt'] = &$xt; | ||
$params['id'] = postvalue_number("id"); | ||
$params['mode'] = $pageMode; | ||
$params['tName'] = $strTableName; | ||
$params["pageName"] = postvalue("page"); | ||
$params['pageType'] = PAGE_SEARCH; | ||
$params['chartName'] = $cname; | ||
$params['reportName'] = $rname; | ||
$params['templatefile'] = $templatefile; | ||
$params['shortTableName'] = 'dhis2_reporting_rate_chart1'; | ||
$params['layoutVersion'] = $layoutVersion; | ||
|
||
$params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id; | ||
$params['ctrlField'] = postvalue('ctrlField'); | ||
|
||
$params['needSettings'] = postvalue('isNeedSettings'); | ||
|
||
if( $pageMode == SEARCH_DASHBOARD ) | ||
{ | ||
$params["dashTName"] = postvalue("table"); | ||
$params["dashElementName"] = postvalue("dashelement"); | ||
} | ||
|
||
// e.g. crosstable params | ||
$params["extraPageParams"] = SearchPage::getExtraPageParams(); | ||
|
||
$params["masterTable"] = postvalue("mastertable"); | ||
if( $params["masterTable"] ) | ||
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest(); | ||
|
||
|
||
$pageObject = new SearchPage($params); | ||
|
||
if( $pageMode == SEARCH_LOAD_CONTROL ) | ||
{ | ||
$pageObject->displaySearchControl(); | ||
return; | ||
} | ||
|
||
$pageObject->init(); | ||
$pageObject->process(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
@ini_set("display_errors","1"); | ||
@ini_set("display_startup_errors","1"); | ||
require_once("include/dbcommon.php"); | ||
require_once('classes/searchclause.php'); | ||
require_once('include/xtempl.php'); | ||
|
||
if( @$_REQUEST["format"] != "excel" && @$_REQUEST["format"] != "word" ) | ||
add_nocache_headers(); | ||
|
||
require_once("include/dhis2_reporting_rate_report1_variables.php"); | ||
|
||
|
||
if( Security::hasLogin() ) { | ||
if( !Security::processPageSecurity( $strTableName, 'P' ) ) | ||
return; | ||
} | ||
|
||
|
||
require_once('classes/reportpage.php'); | ||
require_once('classes/reportprintpage.php'); | ||
|
||
$xt = new Xtempl(); | ||
|
||
// an array of ReportPrintPage constructor params | ||
$params = array(); | ||
$params["id"] = postvalue_number("id"); | ||
$params["xt"] = &$xt; | ||
$params["mode"] = postvalue( "pdfjson" ) ? PRINT_PDFJSON : REPORT_SIMPLE; | ||
$params["tName"] = $strTableName; | ||
$params["pageType"] = PAGE_RPRINT; | ||
$params["pageName"] = postvalue("page"); | ||
|
||
$params["allPagesMode"] = postvalue("all"); | ||
$params["pdfMode"] = postvalue("pdf"); | ||
|
||
$params["format"] = postvalue("format"); | ||
$params["splitByGroups"] = postvalue("records"); | ||
|
||
|
||
//crosstable params | ||
$params["x"] = postvalue("x"); | ||
$params["y"] = postvalue("y"); | ||
$params["dataField"] = postvalue("data"); | ||
$params["operation"] = postvalue("op"); | ||
$params["xType"] = postvalue("xtype"); | ||
$params["yType"] = postvalue("ytype"); | ||
// | ||
|
||
$params["pdfBackgroundImage"] = postvalue("pdfBackgroundImage"); | ||
|
||
$params["masterTable"] = postvalue("mastertable"); | ||
if( $params["masterTable"] ) | ||
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest(); | ||
|
||
|
||
$pageObject = new ReportPrintPage($params); | ||
$pageObject->init(); | ||
|
||
$pageObject->process(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
@ini_set("display_errors","1"); | ||
@ini_set("display_startup_errors","1"); | ||
|
||
$requestTable = "DHIS2_Reporting_Rate_Report"; | ||
$requestPage = "list"; | ||
|
||
require_once("include/dbcommon.php"); | ||
require_once('include/xtempl.php'); | ||
|
||
add_nocache_headers(); | ||
|
||
require_once('classes/reportpage.php'); | ||
require_once('classes/searchclause.php'); | ||
require_once("include/dhis2_reporting_rate_report1_variables.php"); | ||
|
||
if( Security::hasLogin() ) { | ||
if( !Security::processPageSecurity( $strTableName, 'S' ) ) { | ||
return; | ||
} | ||
} | ||
|
||
|
||
$pageMode = ReportPage::readReportModeFromRequest(); | ||
$xt = new Xtempl( $pageMode != REPORT_SIMPLE ); //#9607 1. Temporary fix | ||
|
||
$gSettings = new ProjectSettings( $strTableName ); | ||
//array of params for ReportPage constructor | ||
$params = array(); | ||
$params["id"] = postvalue_number("id"); | ||
$params["xt"] = &$xt; | ||
$params["mode"] = $pageMode; | ||
$params["tName"] = $strTableName; | ||
$params["pageType"] = PAGE_REPORT; | ||
$params["pageName"] = postvalue("page"); | ||
$params["arrRecsPerPage"] = $gSettings->getRecordsPerPageArray(); | ||
$params["arrGroupsPerPage"] = $gSettings->getGroupsPerPageArray(); | ||
$params["requestGoto"] = postvalue_number("goto"); | ||
|
||
//crosstable params | ||
$params["x"] = postvalue("x"); | ||
$params["y"] = postvalue("y"); | ||
$params["dataField"] = postvalue("data"); | ||
$params["operation"] = postvalue("op"); | ||
$params["xType"] = postvalue("xtype"); | ||
$params["yType"] = postvalue("ytype"); | ||
$params["selectedAxis"] = postvalue("axis"); | ||
|
||
if( postvalue("crosstable_refresh") ) | ||
$params["crosstableRefresh"] = true; | ||
|
||
$params["masterPageType"] = postvalue("masterpagetype"); | ||
|
||
$params["masterTable"] = postvalue("mastertable"); | ||
if( $params["masterTable"] ) | ||
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest(); | ||
|
||
|
||
if( $pageMode = REPORT_DASHBOARD ) | ||
{ | ||
$params["dashElementName"] = postvalue("dashelement"); | ||
$params["dashTName"] = postvalue("table"); | ||
} | ||
|
||
$pageObject = new ReportPage( $params ); | ||
$pageObject->init(); | ||
|
||
if( $pageObject->processSaveSearch() ) | ||
exit(); | ||
|
||
$pageObject->process(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?php | ||
@ini_set("display_errors","1"); | ||
@ini_set("display_startup_errors","1"); | ||
|
||
require_once("include/dbcommon.php"); | ||
add_nocache_headers(); | ||
|
||
require_once("classes/searchclause.php"); | ||
require_once("include/dhis2_reporting_rate_report1_variables.php"); | ||
require_once("classes/searchcontrol.php"); | ||
require_once("classes/advancedsearchcontrol.php"); | ||
require_once("classes/panelsearchcontrol.php"); | ||
|
||
|
||
|
||
|
||
require_once('include/xtempl.php'); | ||
require_once('classes/searchpage.php'); | ||
require_once('classes/searchpage_dash.php'); | ||
|
||
$xt = new Xtempl(); | ||
$pageMode = SearchPage::readSearchModeFromRequest(); | ||
|
||
if( $pageMode == SEARCH_LOAD_CONTROL ) | ||
$layoutVersion = postvalue("layoutVersion"); | ||
|
||
|
||
$params = array(); | ||
$params['xt'] = &$xt; | ||
$params['id'] = postvalue_number("id"); | ||
$params['mode'] = $pageMode; | ||
$params['tName'] = $strTableName; | ||
$params["pageName"] = postvalue("page"); | ||
$params['pageType'] = PAGE_SEARCH; | ||
$params['chartName'] = $cname; | ||
$params['reportName'] = $rname; | ||
$params['templatefile'] = $templatefile; | ||
$params['shortTableName'] = 'dhis2_reporting_rate_report1'; | ||
$params['layoutVersion'] = $layoutVersion; | ||
|
||
$params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id; | ||
$params['ctrlField'] = postvalue('ctrlField'); | ||
|
||
$params['needSettings'] = postvalue('isNeedSettings'); | ||
|
||
if( $pageMode == SEARCH_DASHBOARD ) | ||
{ | ||
$params["dashTName"] = postvalue("table"); | ||
$params["dashElementName"] = postvalue("dashelement"); | ||
} | ||
|
||
// e.g. crosstable params | ||
$params["extraPageParams"] = SearchPage::getExtraPageParams(); | ||
|
||
$params["masterTable"] = postvalue("mastertable"); | ||
if( $params["masterTable"] ) | ||
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest(); | ||
|
||
|
||
$pageObject = new SearchPage($params); | ||
|
||
if( $pageMode == SEARCH_LOAD_CONTROL ) | ||
{ | ||
$pageObject->displaySearchControl(); | ||
return; | ||
} | ||
|
||
$pageObject->init(); | ||
$pageObject->process(); | ||
?> |
Oops, something went wrong.