Erfolgreich nach php konvertiert
[infodrom.org/www.infodrom.org] / src / Infodrom / patches / index.wml
1 #include <infodrom.style>
2 #include <patches.style>
3
4 <page title="Infodrom Oldenburg - Patches">
5
6 <h1 align=center><font face="Helvetica,Arial">Infodrom Oldenburg</font></h1>
7 <h3 align=center><font face="Helvetica,Arial">- Patches -</font></h3>
8
9 <font face="Helvetica,Arial">
10 In this area you'll find the collection of patches developed at
11 Infodrom Oldenburg.  Some of them were developed for customers, others
12 ofr free projects or for our own use.  Since they are addition to Free
13 Software, they are published.<p>
14 </font>
15
16 <?
17   $dbh = pg_pconnect ("kuolema", "5432", "<db>")
18                or die("Unable to connect to SQL server");
19
20   pg_exec ($dbh, "SET DateStyle = 'ISO'") or die("Datenbank-Abfrage!");
21
22   $query = "SELECT * FROM patches ORDER by package,submitted,version";
23   $sth = pg_exec ($dbh, $query) or die("Datenbank-Abfrage!");
24
25   for ($nr=0; $nr < pg_NumRows ($sth); $nr++) {
26     $row = pg_fetch_array ($sth, $nr);
27     $date = explode (" ", $row['submitted']);
28     $date = explode ("-", $date[0]);
29     $date = sprintf ("%d.%d.%d", $date[2], $date[1], $date[0]);
30
31 ?>
32
33 <table width=100% border=1 cellpadding=2 cellspacing=0>
34 <tr>
35 <td width=70% align=left><font face="Helvetica,Arial"><b><? echo $date . ": " . $row['subject']; ?></b></font></td>
36 <td width=20% align=left><font face="Helvetica,Arial"><b><? echo $row['package']; ?></b></font></td>
37 <td width=10% align=left><font face="Helvetica,Arial"><? echo $row['version']; ?></font></td>
38 </tr>
39
40 <tr>
41 <td colspan=3 width=100%><font face="Helvetica,Arial"><? echo $row['description']; ?><br>
42 Download: <? echo $row['download']; ?>
43 </font></td>
44 </tr>
45 </table><p>
46
47 <?
48   }
49 ?>
50
51 </page>
52
53 # Local variables:
54 # mode: html
55 # mode: auto-fill
56 # mode: iso-accents
57 # end: