} 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> <div class="tableblock"> <? // don't show select buttons if the member is agent for some ballot /** @noinspection PhpUndefinedVariableInspection */ $show_select = ( $entitled and (!$row_voters or !$row_voters['agent']) and !$period->postage() ); if ($show_select and $entitled and $period->state=="ballot_application") { ?> <div class="add_record"><a href="ballot_edit.php?period=<?=$period->id?>" class="icontextlink"><img src="img/plus.png" width="16" height="16" alt="<?=_("plus")?>"><?=_("Apply to operate a ballot")?></a></div> <? } if (Login::$admin) { form(""); } $colspan = 7; ?> <table>