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

  ViewVC Help
Powered by ViewVC 1.1.5