Skip to content

Commit

Permalink
Added MOH Master and Details Table Data Views
Browse files Browse the repository at this point in the history
  • Loading branch information
MIKEINTOSHSYSTEMS committed Aug 20, 2024
1 parent e2f79da commit 2abb70b
Show file tree
Hide file tree
Showing 514 changed files with 107,437 additions and 12,972 deletions.
153 changes: 153 additions & 0 deletions app/admin_rights_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,159 @@

$pageMask[$table] = $mask;
$tables[$table] = array("hispmd_prism_data_forms", " " . "Hispmd Prism Data Forms");
$table = "public.moh_administration_units";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_administration_units", " " . "Moh Administration Units");
$table = "public.moh_assessments";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_assessments", " " . "Moh Assessments");
$table = "public.moh_data_sources";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_data_sources", " " . "Moh Data Sources");
$table = "public.moh_facility_types";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_facility_types", " " . "Moh Facility Types");
$table = "public.moh_health_facilities";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_health_facilities", " " . "Moh Health Facilities");
$table = "public.moh_indicator_data";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_indicator_data", " " . "Moh Indicator Data");
$table = "public.moh_indicators";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_indicators", " " . "Moh Indicators");
$table = "public.moh_regions";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_regions", " " . "Moh Regions");
$table = "public.moh_indicator_groups";
$mask="";
if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
$mask .= "A";
if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
$mask .= "E";
if( pageEnabled($table, 'delete') )
$mask .= "D";
if( pageEnabled($table, 'import') )
$mask .= "I";
if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
$mask .= "S";
if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
$mask .= "P";

$pageMask[$table] = $mask;
$tables[$table] = array("moh_indicator_groups", " " . "Moh Indicator Groups");

if ( pageEnabled(GLOBAL_PAGES, 'menu') )
$pageMask[GLOBAL_PAGES] = "S";
Expand Down
194 changes: 9 additions & 185 deletions app/assets/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2abb70b

Please sign in to comment.