Mercurial > hg > fapweb
view 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 |
line wrap: on
line source
<? // // Entry display / show helper module // require "mconfig.inc.php"; require "msite.inc.php"; require "mcommon.inc.php"; require "majax.php"; stSetupCacheControl(); // Initiate SQL database connection if (!stConnectSQLDB()) die("Could not connect to SQL database."); // Fetch non-"hardcoded" settings from SQL database stReloadSettings(); cmPrintPageHeader("PARTY DISPLAY", "", FALSE); stCommonAJAX("showajax.php", "show.php", TRUE); ?> <!-- ========================== --> <div id="contents"> <noscript> <div class="notice"> <h1>Javascript required</h1> <p> The compo system page requires Javascript to be enabled for the AJAX functionality. <br /> <a href="#">Please enable Javascript and reload this page</a>. </p> </div> </noscript> <div class="showView" id="view1"></div> <div class="showView" id="view2"></div> <div class="showView" id="view3"></div> </div> <!-- ========================== --> <script type="text/javascript"> function tick() { var nitem = document.getElementById("view1"); nitem.innerHTML = "<div class=\"notice\">Hello!</div>"; } //setTimeout("tick();", 100); </script> <? cmPrintPageFooter(FALSE); ?>