Mercurial > hg > fapweb
annotate show.php @ 126:71c35d5302c2
More work on cleanups, and AJAX modularization.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Oct 2013 17:00:49 +0300 |
parents | f364b50e07f7 |
children | 0436079bcf46 |
rev | line source |
---|---|
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 <? |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
2 // |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
3 // Entry display / show helper module |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 // |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
5 require "mconfig.inc.php"; |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 require "msite.inc.php"; |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 require "mcommon.inc.php"; |
126
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
8 require "majax.php"; |
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
9 |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
10 stSetupCacheControl(); |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 // Initiate SQL database connection |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 if (!stConnectSQLDB()) |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 die("Could not connect to SQL database."); |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 // Fetch non-"hardcoded" settings from SQL database |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 stReloadSettings(); |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 |
126
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
19 cmPrintPageHeader("PARTY DISPLAY", "", FALSE); |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
20 stCommonAJAX("showajax.php", "show.php", TRUE); |
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
21 ?> |
126
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
22 |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
23 <!-- ========================== --> |
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
24 |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
25 <div id="contents"> |
126
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
26 |
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
27 <noscript> |
126
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
28 <div class="notice"> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
29 <h1>Javascript required</h1> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
30 <p> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
31 The compo system page requires Javascript to be enabled for the AJAX functionality. |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
32 <br /> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
33 <a href="#">Please enable Javascript and reload this page</a>. |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
34 </p> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
35 </div> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
36 </noscript> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
37 |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
38 <div class="showView" id="view1"></div> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
39 <div class="showView" id="view2"></div> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
40 <div class="showView" id="view3"></div> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
41 |
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
42 </div> |
126
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
43 |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
44 <!-- ========================== --> |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
45 |
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
46 <script type="text/javascript"> |
126
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
47 |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
48 function tick() |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
49 { |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
50 var nitem = document.getElementById("view1"); |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
51 nitem.innerHTML = "<div class=\"notice\">Hello!</div>"; |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
52 } |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
53 |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
54 //setTimeout("tick();", 100); |
71c35d5302c2
More work on cleanups, and AJAX modularization.
Matti Hamalainen <ccr@tnsp.org>
parents:
125
diff
changeset
|
55 |
125
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
56 </script> |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
57 <? |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
58 cmPrintPageFooter(FALSE); |
f364b50e07f7
Some preliminary work on a potential "compo system announcement whatnot
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
59 ?> |