'row')); Render::addtemplate('_page', $buttonColors); Render::closeTag('div'); if ($show === "roles") { $data = array("roles" => GetData::getRoles()); Render::addTemplate('rolesTable', $data); } else if ($show === "users") { $data = array("user" => GetData::getUserData(), "roles" => GetData::getRoles()); Render::addTemplate('usersTable', $data); } else if ($show === "locations") { Render::addTemplate('locationsTable', $data); } } } // Menu: Selected table is shown in blue (btn-primary) private function setButtonColors($show) { if ($show === 'roles') { $buttonColors['rolesButtonClass'] = 'btn-primary'; $buttonColors['usersButtonClass'] = 'btn-default'; $buttonColors['locationsButtonClass'] = 'btn-default'; } else if ($show === 'users') { $buttonColors['rolesButtonClass'] = 'btn-default'; $buttonColors['usersButtonClass'] = 'btn-primary'; $buttonColors['locationsButtonClass'] = 'btn-default'; } else if ($show === 'locations') { $buttonColors['rolesButtonClass'] = 'btn-default'; $buttonColors['usersButtonClass'] = 'btn-default'; $buttonColors['locationsButtonClass'] = 'btn-primary'; } else { $buttonColors['rolesButtonClass'] = 'btn-default'; $buttonColors['usersButtonClass'] = 'btn-default'; $buttonColors['locationsButtonClass'] = 'btn-default'; } return $buttonColors; } }