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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 536 by hanska-guest, Wed Oct 3 15:14:40 2007 UTC revision 605 by hanska-guest, Fri Oct 5 08:50:40 2007 UTC
# Line 1  Line 1 
1  <html>  <?php
2  <head>          require_once("inc/header.inc.php");
3  <title>Debian-Med Project</title>  ?>
 <link href="/inc/style.css" type="text/css" rel="stylesheet" />  
 </head>  
 <body>  
 <div align="center">  
 <img src="/img/logo.png" alt="Debian Med Project" />  
 </div>  
 <div class="heading">  
         <div class="tabBar">  
                 Join us! Help us in making Doctors use Debian! See the  
                 <a href="http://alioth.debian.org/projects/debian-med">Alioth Page</a>  
         </div>  
 </div>  
4  <table class="columns">  <table class="columns">
5  <tr>  <tr>
6          <td class="left">          <td class="left">
7                  <span class="section">information</span>                  <span class="section"><?=_("information")?></span>
8                  <div class="section">                  <div class="section">
9                          <div class="sectionTop"></div>                          <div class="sectionTop"></div>
10                          <div class="row">                          <div class="row" style="text-align: center;">
11                                  <a href="http://wiki.debian.org/DebianMed">Visit our Wiki page</a>                                  <?=_("Developers please visit our")?><br />
12                                    <a href="http://wiki.debian.org/DebianMed"><?=_("Wiki page")?></a>
13                          </div>                          </div>
14                          <div class="row">                          <div class="row">
15                                  The Debian-Med project presents packages that are                                  <?=_("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>")?>
                                 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.  
16                          </div>                          </div>
17                  </div>                  </div>
18                  <span class="section">members</span>                  <span class="section"><?=_("members")?></span>
19                  <div class="section">                  <div class="section">
20                          <div class="sectionTop"></div>                          <div class="sectionTop"></div>
21                          <div class="row">                          <div class="row">
22                                  <div class="relatedHeading">                                  <div class="relatedHeading">
23                                          <table class="related">                                          <table class="related">
24                                          <?php                                          <?php
25                                                  $members = array(                                                  require_once("inc/parser.inc.php");
                                                                         "admin" => array(  
                                                                                 "Andreas Tille",  
                                                                                 "Charles Plessy",  
                                                                                 "Steffen Möller",  
                                                                                 "Thijs Kinkhorst"),  
                                                                         "developer" => array(  
                                                                                 "Changyan Xie",  
                                                                                 "Daniel Bayer",  
                                                                                 "David Paleino",  
                                                                                 "Michael Hanke",  
                                                                                 "Moriyoshi Koizumi",  
                                                                                 "Nelson A. de Oliveira",  
                                                                                 "Philipp Benner",  
                                                                                 "Steven Michael Robbins",  
                                                                                 "Vincent Danjean")  
                                                                         );  
26    
27                                                  foreach ($members as $role => $names) {                                                  $members = ParseMembersTable(30063);
                                                         foreach($names as $person) {  
                                                                 $sorted_members[$person] = $role;  
                                                         }  
                                                 }  
28    
29                                                  ksort($sorted_members);                                                  ksort($members);
30    
31                                                  $img = "";                                                  $img = "";
32                                                  foreach ($sorted_members as $member => $role) {                                                  foreach ($members as $name => $details) {
33                                                          switch ($role) {                                                          switch ($details["role"]) {
34                                                                  case "admin":                                                                  case "admin":
35                                                                          $img = "/img/wh_green.png";                                                                          $img = "/img/wh_green.png";
36                                                                          $alt = "Project Administrator";                                                                          $alt = _("Project Administrator");
37                                                                          break;                                                                          break;
38                                                                  case "developer":                                                                  case "developer":
39                                                                  default:                                                                  default:
40                                                                          $img = "/img/wh_grey.png";                                                                          $img = "/img/wh_grey.png";
41                                                                          $alt = "Project Developer";                                                                          $alt = _("Project Developer");
42                                                          }                                                          }
43                                                          ?>                                                          ?>
44                                          <tr><td>                                          <tr><td>
45                                                  <img src="<?=$img?>" alt="<?=$alt?>" />                                                  <img src="<?=$img?>" alt="<?=$alt?>" title="<?=$alt?>" />
46                                                  <?=$member?>                                                  <a href="http://alioth.debian.org/users/<?=$details["userid"]?>"><?=$name?></a>
47                                          </td></tr>                                          </td></tr>
48                                                          <?php                                                          <?php
49                                                  }                                                  }
50                                          ?>                                          ?>
51                                          </table>                                          </table>
52                                  </div>                                  </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>                          </div>
74                  </div>                  </div>
75                  <span class="section">UTC time</span>                  <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">                  <div class="section">
83                          <div class="sectionTop"></div>                          <div class="sectionTop"></div>
84                          <div class="row">..UTC time..</div>                          <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>                  </div>
92          </td>          </td>
93          <td class="main">          <td class="main">
94                  <span class="section">recent activity</span>                  <span class="section"><?=_("recent activity")?></span>
95                  <div class="section">                  <div class="section">
96                          <div class="sectionTop"></div>                          <div class="sectionTop"></div>
97                          <div class="row">                          <div class="row">
98                                  <table width="100%">                                  <table width="100%">
99                                  <tr>                                  <tr>
100                                          <th>date</th>                                          <th><?=_("date")?></th>
101                                          <th>author</th>                                          <th><?=_("author")?></th>
102                                          <th>content</th>                                          <th width="400"><?=_("content")?></th>
103                                          <th>link</th>                                          <th><?=_("link")?></th>
104                                  </tr>                                  </tr>
105                                  <?php                                  <?php
106                                          include_once("inc/lastRSS.php");                                          include_once("inc/lastRSS.php");
# Line 117  Line 114 
114                                                          $desc = html_entity_decode($rs["items"][$i]["description"]);                                                          $desc = html_entity_decode($rs["items"][$i]["description"]);
115                                                          preg_match("/(Commit by.*)<strong>(.*)<\/strong>/", $desc, $matches);                                                          preg_match("/(Commit by.*)<strong>(.*)<\/strong>/", $desc, $matches);
116                                                          $author = $matches[2];                                                          $author = $matches[2];
117                                                          $desc = preg_replace("/(Commit by.*)<strong>(.*)<\/strong>.*::/", "", $desc);                                                          $desc = preg_replace("/(Commit by.*<strong>.*<\/strong>.*<span.*::.*<\/span>)/", "", $desc);
118  //                                                                              "\\1<strong><a href=\"http://alioth.debian.org/users/\\2\">\\2</a></strong>",                                  ?>
 //                                                                              $desc);  
                                                 ?>  
119                                  <tr>                                  <tr>
120                                          <td><?=$rs["items"][$i]["pubDate"]?></td>                                          <td><?=$rs["items"][$i]["pubDate"]?></td>
121                                          <td><a href="http://alioth.debian.org/users/<?=$author?>"><?=$author?></a></td>                                          <td><a href="http://alioth.debian.org/users/<?=$author?>"><?=$author?></a></td>
# Line 134  Line 129 
129                                  </table>                                  </table>
130                          </div>                          </div>
131                  </div>                  </div>
132                  <span class="section">todo</span>                  <span class="section"><?=_("todo")?></span>
133                  <div class="section">                  <div class="section">
134                          <div class="sectionTop"></div>                          <div class="sectionTop"></div>
135                          <div class="row">                          <div class="row">
# Line 150  Line 145 
145                                                  </ul></li>                                                  </ul></li>
146                                          <li>use a general backend for retrieving information (i.e. do not put retrieving code directly                                          <li>use a general backend for retrieving information (i.e. do not put retrieving code directly
147                                          into index.php);</li>                                          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>                                          <li>&hellip;</li>
154                                  </ul>                                  </ul>
155                          </div>                          </div>
# Line 158  Line 158 
158  </tr>  </tr>
159  </table>  </table>
160  <hr />  <hr />
161  <small>Please, note that this is a SVN export of our website. It might break during  <p>
162  SVN commits.</small>  <small><?=_("Please, note that this is a SVN export of our website. It might break during SVN commits.")?></small>
163    </p>
164  <?php  <?php
165          include_once("footer.html")          require_once("inc/footer.inc.php")
166  ?>  ?>

Legend:
Removed from v.536  
changed lines
  Added in v.605

  ViewVC Help
Powered by ViewVC 1.1.5