view attendees.inc.php @ 120:2c594958050e

Make test vote keys "testN" where N >= 1
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 22 Oct 2013 14:22:26 +0300
parents c6b9041078ec
children aeebfedb5709
line wrap: on
line source

<?
if (stCheckRegistrationAvailable())
{
?>
<div class="reglink">
To register, use <a href="register">this form</a>.
</div>
<?
}

echo "<p>Total of <b>".$numAttendees.
 "</b> people registered to attend";

if ($maxAttendeesHard > 0)
 echo " (<b>".$maxAttendeesHard."</b> max)";

echo ".</p>\n";

?>
<table class="attendees">
 <tr>
  <th class="name">Name</th>
  <th class="groups">Group(s)</th>
  <th class="regtime">Registered</th>
  <th class="oneliner">Oneliner</th>
 </tr>
<?
$index = $numAttendees;
$row = 0;
if (($res = stExecSQL("SELECT * FROM attendees ORDER BY regtime DESC")) !== FALSE)
{
  foreach ($res as $item)
  {
    $over = $maxAttendeesSoft > 0 && $index > $maxAttendeesSoft;
    stPrintAttendee($item, $row++, FALSE, $over ? " overbooked" : "");
    $index--;
  }
}
?>
</table>