home - projects - login - links

Project: CodeBase

Location: root /

File: projects.php

expand uitklappen
  1. <?php
  2. require_once ("includes/database.php");
  3. require_once ("includes/project.php");
  4.  
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>CodeBase - Project Browsing</title>
  11. <base href="http://www.mattiasgeniar.be">
  12. <link href="css/style.css" rel="stylesheet" type="text/css" />
  13. <style type="text/css">
  14. <!--
  15. .style2 {color: #CC0000}
  16. -->
  17. </style>
  18. </head>
  19.  
  20. <body class="oneColFixCtrHdr">
  21.  
  22. <div id="container">
  23. <div id="header">
  24. <h1><span class="style2">C</span>ode<span class="style2">B</span>ase - Project Browsing</h1>
  25. <!-- end #header --></div>
  26. <div id="mainContent">
  27. <h3><a href="/">home</a> - <a href="allprojects/">projects</a> - <a href="login/">login</a></h3>
  28. <p>Hieronder staat een lijst met verschillende projecten. Van elk project kan je de broncode en enkele screenshots bekijken.</p>
  29. <p>Helaas zijn er van vele (vooral oudere) projecten geen backups gemaakt, en zijn ze ook al reeds offline. Hier staat enkel een overzicht van alle projecten waarvan ik nog lokale kopieen had staan.</p>
  30. <h3>Projecten</h3>
  31. <?php
  32. $Project = new Project();
  33. $Project->getAll();
  34. $prev_year = 0;
  35. $previous = false;
  36.  
  37. while (!$Project->EOF()) {
  38. if ($prev_year != $Project->getYear()) {
  39. // Display a little "title", with the year
  40. if ($previous == true)
  41. echo "</ul>"; // Close the previous list
  42. $previous = true;
  43. echo "<h4>". $Project->getYear() ."</h4>";
  44. echo "<ul class=\"listLatest\">"; //
  45. }
  46. $prev_year = $Project->getYear();
  47. echo "<li><a href=\"project/". $Project->getId() ."/\">". $Project->getName() ."</a> (". $Project->getLanguage() .")<br /><i>". htmlspecialchars($Project->getDescription()) ."</i></li>\n";
  48. $Project->next();
  49.  
  50. }
  51.  
  52.  
  53. ?>
  54. </ul>
  55. <!-- end #mainContent --></div>
  56. <?php
  57. require_once ("footer.php");
  58. ?>
  59. <!-- end #container --></div>
  60. <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  61. </script>
  62. <script type="text/javascript">
  63. _uacct = "UA-2065823-1";
  64. urchinTracker();
  65. </script>
  66. </body>
  67. </html>
  68.