<?php



// Config
require_once dirname(dirname(__FILE__)) . '/Config/init_project.php';

if (!$randomization) System::redirectHome();

// Header
include APP_PATH_DOCROOT . 'ProjectGeneral/header.php';
renderPageTitle('<i class="fas fa-random"></i> ' . $lang['app_21']);

// Instructions
print Randomization::renderInstructions();

$rid = Randomization::getRid($_GET['rid']);

// Page tabs
Randomization::renderTabs($rid);

if ($rid > 0) {
    // Render the dashboard (in groups)
    Randomization::renderDashboardGroups($rid);
} else {
    // summary page
	Randomization::renderSummaryTable();
}
// Footer
include APP_PATH_DOCROOT . 'ProjectGeneral/footer.php';