Mercurial > hg > fapweb
annotate 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 |
rev | line source |
---|---|
0 | 1 <? |
103
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
2 if (stCheckRegistrationAvailable()) |
0 | 3 { |
4 ?> | |
5 <div class="reglink"> | |
6 To register, use <a href="register">this form</a>. | |
7 </div> | |
8 <? | |
9 } | |
10 | |
103
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
11 echo "<p>Total of <b>".$numAttendees. |
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
12 "</b> people registered to attend"; |
0 | 13 |
103
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
14 if ($maxAttendeesHard > 0) |
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
15 echo " (<b>".$maxAttendeesHard."</b> max)"; |
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
16 |
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
17 echo ".</p>\n"; |
0 | 18 |
19 ?> | |
20 <table class="attendees"> | |
21 <tr> | |
22 <th class="name">Name</th> | |
23 <th class="groups">Group(s)</th> | |
24 <th class="regtime">Registered</th> | |
25 <th class="oneliner">Oneliner</th> | |
26 </tr> | |
27 <? | |
28 $index = $numAttendees; | |
29 $row = 0; | |
30 if (($res = stExecSQL("SELECT * FROM attendees ORDER BY regtime DESC")) !== FALSE) | |
31 { | |
32 foreach ($res as $item) | |
33 { | |
103
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
34 $over = $maxAttendeesSoft > 0 && $index > $maxAttendeesSoft; |
c6b9041078ec
Add hard limit option for attendees, and add feature of using "0" to disable
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
35 stPrintAttendee($item, $row++, FALSE, $over ? " overbooked" : ""); |
0 | 36 $index--; |
37 } | |
38 } | |
39 ?> | |
40 </table> |