/[debian-med]/trunk/community/website/index.php
ViewVC logotype

Contents of /trunk/community/website/index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 518 - (hide annotations) (download)
Tue Oct 2 14:05:37 2007 UTC (5 years, 7 months ago) by hanska-guest
File size: 2635 byte(s)
Now the regex should work. :)
1 hanska-guest 493 <html>
2     <head>
3     <title>Debian-Med CDD</title>
4 hanska-guest 506 <link href="/inc/style.css" type="text/css" rel="stylesheet" />
5 hanska-guest 493 </head>
6     <body onload="showRSS();">
7     <div align="center">
8 hanska-guest 510 <img src="/img/logo.png" alt="Debian Med Project" />
9 hanska-guest 493 </div>
10 hanska-guest 506 <div class="heading">
11     <div class="tabBar">
12 hanska-guest 514 Join us! Help us in making Doctors use Debian! See the
13     <a href="http://alioth.debian.org/projects/debian-med">Alioth Page</a>
14 hanska-guest 506 </div>
15     </div>
16     <table class="columns">
17     <tr>
18     <td class="left">
19     <span class="section">information</span>
20     <div class="section">
21     <div class="sectionTop"></div>
22     <div class="row">
23     <a href="http://wiki.debian.org/DebianMed">Visit our Wiki page</a>
24     </div>
25     <div class="row">
26     The Debian-Med project presents packages that are
27     associated with medicine, pre-clinical research, and
28     life science. Its developments are mostly focused on
29     three areas for the moment: medical practice, imaging
30     and bioinformatics.
31     </div>
32     </div>
33     <span class="section">related</span>
34     <div class="section">
35     <div class="sectionTop"></div>
36     <div class="row">
37     <div class="relatedHeading">
38     <table class="related">
39     <tr><td>David Paleino</td></tr>
40     <tr><td>...</td></tr>
41     </table>
42     </div>
43     </div>
44     </div>
45     <span class="section">UTC time</span>
46     <div class="section">
47     <div class="sectionTop"></div>
48     <div class="row">..UTC time..</div>
49     </div>
50     </td>
51     <td class="main">
52     <span class="section">recent activity</span>
53     <div class="section">
54     <div class="sectionTop"></div>
55     <div class="row">
56     <table>
57     <tr>
58     <th>date</th>
59     <th>project</th>
60     <th>content</th>
61     <th>link</th>
62     </tr>
63     <?php
64     include_once("inc/lastRSS.php");
65     $rss = new lastRSS;
66     $rss->cache_dir = "./cache";
67     $rss->cache_time = 3600;
68    
69     if ($rs = $rss->get("http://cia.vc/stats/project/Debian-Med/.rss")) {
70 hanska-guest 508 // we show only the last 10 commits by default
71 hanska-guest 509 for ($i = 0; $i < 9; $i++) {
72 hanska-guest 516 $desc = html_entity_decode($rs["items"][$i]["description"]);
73 hanska-guest 518 $desc = preg_replace("/(Commit by.*)<strong>(.*)<\/strong>/",
74     "\\1<strong><a href=\"http://alioth.debian.org/users/\\2\">\\2</strong>",
75     $desc);
76 hanska-guest 506 ?>
77     <tr>
78 hanska-guest 508 <td><?=$rs["items"][$i]["pubDate"]?></td>
79 hanska-guest 506 <td>debian-med</td>
80 hanska-guest 515 <td><?=$desc?></td>
81 hanska-guest 508 <td><a href="<?=$rs["items"][$i]["link"]?>">&raquo;</a></td>
82 hanska-guest 506 </tr>
83     <?php
84     }
85     }
86     ?>
87     </table>
88     </div>
89     </div>
90     </td>
91     </tr>
92     </table>
93     <hr />
94 hanska-guest 493 <small>Please, note that this is a SVN export of our website. It might break during
95     SVN commits.</small>
96     <?php
97     include_once("footer.html")
98     ?>

  ViewVC Help
Powered by ViewVC 1.1.5