view attendees.inc.php @ 180:a3f0f2a3551a

Split stylesheets into separate files for different platforms and also split certain page-specifics into their own files.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 07 Nov 2013 11:17:15 +0200
parents 57de66a604c5
children ef26d16b836e
line wrap: on
line source

<?
//
// FAPWeb Simple Demoparty System
// Attendee list page
// (C) Copyright 2012-2013 Tecnic Software productions (TNSP)
//
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>
<?
if (($res = stExecSQL("SELECT * FROM attendees ORDER BY regtime DESC")) !== FALSE)
{
  $index = $numAttendees;
  $row = 0;
  foreach ($res as $item)
  {
    $over = $maxAttendeesSoft > 0 && $index > $maxAttendeesSoft;
    stPrintAttendee($item, $row++, FALSE, $over ? " overbooked" : "");
    $index--;
  }
}
?>
</table>