/[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 555 - (show annotations) (download)
Thu Oct 4 18:38:41 2007 UTC (5 years, 7 months ago) by hanska-guest
File size: 4636 byte(s)
First l10n implementation
1 <?php
2 require_once("inc/header.inc.php");
3 ?>
4 <table class="columns">
5 <tr>
6 <td class="left">
7 <span class="section"><?=_("information")?></span>
8 <div class="section">
9 <div class="sectionTop"></div>
10 <div class="row">
11 <a href="http://wiki.debian.org/DebianMed"><?=_("Visit our Wiki page")?></a>
12 </div>
13 <div class="row">
14 <?=_("The Debian-Med project presents packages that are associated with medicine, pre-clinical research, and life science. Its developments are mostly focused on three areas for the moment: medical practice, imaging and bioinformatics.")?>
15 </div>
16 </div>
17 <span class="section"><?=_("members")?></span>
18 <div class="section">
19 <div class="sectionTop"></div>
20 <div class="row">
21 <div class="relatedHeading">
22 <table class="related">
23 <?php
24 require_once("inc/parser.inc.php");
25
26 $members = ParseMembersTable(30063);
27
28 ksort($members);
29
30 $img = "";
31 foreach ($members as $name => $details) {
32 switch ($details["role"]) {
33 case "admin":
34 $img = "/img/wh_green.png";
35 $alt = _("Project Administrator");
36 break;
37 case "developer":
38 default:
39 $img = "/img/wh_grey.png";
40 $alt = _("Project Developer");
41 }
42 ?>
43 <tr><td>
44 <img src="<?=$img?>" alt="<?=$alt?>" title="<?=$alt?>" />
45 <a href="http://alioth.debian.org/users/<?=$details["userid"]?>"><?=$name?></a>
46 </td></tr>
47 <?php
48 }
49 ?>
50 </table>
51 </div>
52 <table class="related">
53 <tr><td>
54 <img src="/img/wh_green.png" alt="<?=_("Green Wheel")?>" />
55 <?=_("Project Administrator")?>
56 </td></tr>
57 <tr><td>
58 <img src="/img/wh_grey.png" alt="<?=_("Grey Wheel")?>" />
59 <?=_("Project Developer")?>
60 </td></tr>
61 </table>
62 </div>
63 </div>
64 <span class="section"><?=_("pages")?></span>
65 <div class="section">
66 <div class="sectionTop"></div>
67 <div class="row">
68 <ul>
69 <li><a href="/bugs.php"><?=_("Bugs Page")?></a></li>
70 <li>&hellip;</li>
71 </ul>
72 </div>
73 </div>
74 <span class="section"><?=_("UTC time")?></span>
75 <div class="section">
76 <div class="sectionTop"></div>
77 <div class="row"><?=date("r", time())?></div>
78 </div>
79 </td>
80 <td class="main">
81 <span class="section"><?=_("recent activity")?></span>
82 <div class="section">
83 <div class="sectionTop"></div>
84 <div class="row">
85 <table width="100%">
86 <tr>
87 <th><?=_("date")?></th>
88 <th><?=_("author")?></th>
89 <th><?=_("content")?></th>
90 <th><?=_("link")?></th>
91 </tr>
92 <?php
93 include_once("inc/lastRSS.php");
94 $rss = new lastRSS;
95 $rss->cache_dir = "./cache";
96 $rss->cache_time = 3600;
97
98 if ($rs = $rss->get("http://cia.vc/stats/project/Debian-Med/.rss")) {
99 // we show only the last 10 commits by default
100 for ($i = 0; $i < 9; $i++) {
101 $desc = html_entity_decode($rs["items"][$i]["description"]);
102 preg_match("/(Commit by.*)<strong>(.*)<\/strong>/", $desc, $matches);
103 $author = $matches[2];
104 $desc = preg_replace("/(Commit by.*)<strong>(.*)<\/strong>.*::/", "", $desc);
105 ?>
106 <tr>
107 <td><?=$rs["items"][$i]["pubDate"]?></td>
108 <td><a href="http://alioth.debian.org/users/<?=$author?>"><?=$author?></a></td>
109 <td><?=$desc?></td>
110 <td><a href="<?=$rs["items"][$i]["link"]?>">&raquo;</a></td>
111 </tr>
112 <?php
113 }
114 }
115 ?>
116 </table>
117 </div>
118 </div>
119 <span class="section"><?=_("todo")?></span>
120 <div class="section">
121 <div class="sectionTop"></div>
122 <div class="row">
123 <ul>
124 <li>use AJAX to make the commit feed "live";</li>
125 <li>add Packages information:
126 <ul>
127 <li>bug reports (w/AJAX);</li>
128 <li>upload status;</li>
129 <li>distributions versions;</li>
130 <li>buildd status;</li>
131 <li>&hellip;</li>
132 </ul></li>
133 <li>use a general backend for retrieving information (i.e. do not put retrieving code directly
134 into index.php);</li>
135 <li><del>dynamically generate members list from
136 <a href="http://alioth.debian.org/project/memberlist.php?group_id=30063">
137 http://alioth.debian.org/project/memberlist.php?group_id=30063</a> &mdash; it also has links to
138 personal pages and usernames!</del></li>
139 <li>bugs retrieval from Debian BTS;<img src="/img/yellow.png" alt="In progress" title="In progress" /></li>
140 <li>&hellip;</li>
141 </ul>
142 </div>
143 </div>
144 </td>
145 </tr>
146 </table>
147 <hr />
148 <small><?=_("Please, note that this is a SVN export of our website. It might break during SVN commits.")?></small>
149 <?php
150 require_once("inc/footer.inc.php")
151 ?>

  ViewVC Help
Powered by ViewVC 1.1.5