Viewing file: _footer.inc.php (4.12 KB) -rwxrwxr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? // uses $forum to determine selected forum if (isset($_GET['topicgroup'])) $forum = $_GET['topicgroup']; else $forum = "axmain"; ?>
<div id="footer"> <p id="copyright"> © Copyright - Brian Ritchie </p>
</div>
<div id="createTopicModal"> <div class="modalHeading"> <h2>Create Topic</h2> </div> <div class="modalBody" id="createTopicBody"> <? if (!logged_in()) { display_login_required('to create a topic'); } else { ?> <form method="post"> <table id="createTopicTable" cellpadding="0" cellspacing="0"> <tr> <td class="col1">Topic name:</td> <td class="col2"> <input id="topicInput" type="text" name="text" maxlength="50" value="" /> </td> </tr> <tr> <td class="col1">Create in: <? echo $forum; ?></td> <td class="col2"> <label><input type="radio" name="topicgroup" value="axmain"<? echo ($forum=='axmain')? ' checked="checked"': ''; ?> /> Muay Thai / Kickboxing Forum</label> <label><input type="radio" name="topicgroup" value="mma"<? echo ($forum=='mma')? ' checked="checked"': ''; ?> /> Mixed Martial Arts [MMA] Forum</label> <label><input type="radio" name="topicgroup" value="axsportscience"<? echo ($forum=='axsportscience')? ' checked="checked"': ''; ?> /> Fight Training and Sport Science Forum</label> <label><input type="radio" name="topicgroup" value="axofftopic"<? echo ($forum=='axofftopic')? ' checked="checked"': ''; ?> /> Off Topic Forum</label> </td> </tr>
<tr> <td class="col1"> </td> <td class="col2"> <input type="submit" name="action" value="Create topic!" /> </td> </tr> </table> </form> <? } ?> </div><!-- modal body --> </div><!-- createTopicModal -->
<div id="searchForumModal"> <div class="modalHeading"> <h2>Search Forum</h2> </div> <div class="modalBody" id="searchForumBody"> <form method="post"> <table cellpadding="0" cellspacing="0"> <caption>Search for keywords:</caption> <tr> <td class="col1"> <input type=text name="words" size="40" value="" /> </td> </tr> <tr> <td class="col1"> <input type="submit" name="action" value="Search topic titles" /> <input type="submit" name="action" value="Search messages" /> </td> </tr> </table> </form>
</div><!-- modal body --> </div><!-- searchProfiles -->
</div><!--begin -->
<? if ($_SESSION[login] == 't') { //from http://www.bennadel.com/blog/1740-Building-A-Fixed-Position-Bottom-Menu-Bar-ala-FaceBook-.htm ?>
<div id="site-bottom-bar" class="fixed-position"> <div id="site-bottom-bar-frame"> <div id="site-bottom-bar-content"> <a id="chatButton" href="##">Ax Chat (8)</a> <div id="chatCount"># people in chat ---></div> <div id="chatBox"> <div id="chatBoxUsers"> <div class="chatUser"><a href="" title="Dave Jackson">Brian Ritchie</a></div> <div class="chatUser"><a href="" title="Dave Jackson">Ax Team</a></div> </div> <div id="chatBoxDiscussion"> <?php if(file_exists("chatlog.html") && filesize("chatlog.html") > 0){ $handle = fopen("chatlog.html", "r"); $contents = fread($handle, filesize("chatlog.html")); fclose($handle); echo $contents; } ?> </div> <div id="chatBoxInput"> <form name="message" action="chatpost.php" method="post"> <input name="usermsg" type="text" id="usermsg" /> <button name="submitmsg" type="submit" id="submitmsg" value="Send">Send</button> </form> </div> </div> </div> </div> </div> <? } ?>
<? //echo "<p align=center>Is <b>",substr(pg_result(pg_query($conn,'select current_timestamp;'),0,0),0,19),"</b> your local time? If not, click <a href=\"tzset\">here</a> to set your timezone!</p>"; ?> </body> </html>
|