Login::access_action("entitled", $_SESSION['ngroup']); if ($period->state=="ballot_preparation") { warning(_("In ballot preparation phase it is not allowed anymore to change the ballot choice.")); redirect(); } $period->unselect_ballot(); redirect(); break; case "save_approved": Login::access_action("admin"); action_required_parameters('approved_id'); if ($period->state!="ballot_application") { warning(_("In the current phase of the period it is not allowed anymore to approve ballots.")); redirect(); } $period->save_approved_ballots(); redirect(); break; default: warning(_("Unknown action")); redirect(); } } html_head( sprintf(_("Ballots for <a%s>voting period %d</a>"), ' href="periods.php?ngroup='.$_SESSION['ngroup'].'&hl='.$period->id.'"', $period->id), true ); $entitled = ( Login::$member and Login::$member->entitled($_SESSION['ngroup']) ); ?> <p><?=$period->ballot_phase_info()?></p>