Mercurial > hg > fapweb
annotate pages/results.inc.php @ 792:b42b23073209
Improve printing of results with more options (in the admin interface).
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 21 Nov 2014 21:42:47 +0200 |
parents | dff9b125f774 |
children | ffacd904fd1f |
rev | line source |
---|---|
0 | 1 <? |
136
aeebfedb5709
Add some copyright headers.
Matti Hamalainen <ccr@tnsp.org>
parents:
135
diff
changeset
|
2 // |
571
ce11ea112a65
Change the header blurb a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
565
diff
changeset
|
3 // FAPWeb - Simple Web-based Demoparty Management System |
136
aeebfedb5709
Add some copyright headers.
Matti Hamalainen <ccr@tnsp.org>
parents:
135
diff
changeset
|
4 // Competition results page |
565 | 5 // (C) Copyright 2012-2014 Tecnic Software productions (TNSP) |
136
aeebfedb5709
Add some copyright headers.
Matti Hamalainen <ccr@tnsp.org>
parents:
135
diff
changeset
|
6 // |
5
76c3b89d7b11
Improve voting, clean up the code, etc.
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
7 $showResults = stGetSetting("showResults"); |
23 | 8 |
4 | 9 echo "<h1>Results</h1>\n"; |
62
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
10 |
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
11 // Show everything for the admin session |
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
12 if (stAdmSessionAuth()) |
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
13 { |
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
14 if (!$showResults) |
327 | 15 echo "<p class=\"notice\">Results hidden from normal users.</p>"; |
62
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
16 |
695
dff9b125f774
Work on results printing and remove "show authors" option as it is rather
Matti Hamalainen <ccr@tnsp.org>
parents:
571
diff
changeset
|
17 $showResults = TRUE; |
62
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
18 } |
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
19 |
101cde58b267
Add a new setting for ASCII vs. HTML table output for compo results.
Matti Hamalainen <ccr@tnsp.org>
parents:
58
diff
changeset
|
20 |
511
6fe66ea0e954
Move most of the results code to site module, remove the support for HTML
Matti Hamalainen <ccr@tnsp.org>
parents:
510
diff
changeset
|
21 if ($showResults) |
792
b42b23073209
Improve printing of results with more options (in the admin interface).
Matti Hamalainen <ccr@tnsp.org>
parents:
695
diff
changeset
|
22 echo stGetCompoResultsASCIIStr(TRUE, RFLAG_NORMAL); |
511
6fe66ea0e954
Move most of the results code to site module, remove the support for HTML
Matti Hamalainen <ccr@tnsp.org>
parents:
510
diff
changeset
|
23 else |
0 | 24 { |
4 | 25 echo "<p>Sorry, no results available! Nothing to see here, move along.</p>"; |
26 } | |
511
6fe66ea0e954
Move most of the results code to site module, remove the support for HTML
Matti Hamalainen <ccr@tnsp.org>
parents:
510
diff
changeset
|
27 |
0 | 28 ?> |