-
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.
Reporting rate with target visualization TEST
- Loading branch information
1 parent
b64d610
commit 83afc6a
Showing
53 changed files
with
9,492 additions
and
4,467 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_Rates_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_rates_chart_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_rates_chart_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_rates_chart'; | ||
$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
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
Oops, something went wrong.