header.inc 985 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. $session = new Session();
  3. $userId = $session->getValue('logged_in');
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  6. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  7. <html>
  8. <head>
  9. <title>Doxen<?=(isset($title) ? " - " . $title : "")?></title>
  10. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
  11. <script type="text/javascript"></script>
  12. <style type="text/css" title="currentStyle" media="screen">
  13. @import "/css/main.css";
  14. </style>
  15. </head>
  16. <body>
  17. <div id="header">
  18. <div id="logo">
  19. <a href="/"><img src="images/doxen_small.png" style="height: 50px;" /><img src="images/doxen_text.png" alt="Doxen" /></a>
  20. </div>
  21. <div id="loginContainer"><?=$loginView?></div>
  22. <?php if(isset($defaultTopics)) { ?>
  23. <div id="defaultTopics">
  24. <ul>
  25. <?php foreach($defaultTopics as $topic) { ?>
  26. <li><a href="/?a=topic&id=<?=$topic['topic_id']?>"><?=$topic['display_name']?></a></li>
  27. <?php } ?>
  28. </ul>
  29. </div>
  30. <?php } ?>
  31. </div>