#include <infodrom.style>
#include <linux.style>

<page title="Linux-HOWTOs @ Infodrom"> 

<center>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr bgcolor=<colh>>
<th><ifont>Howto</ifont></th>
<th width=15%><ifont>Last modified</ifont></th>
</tr>

<?
  $trow = "<tr bgcolor=\"%s\">"
	 ."<td><font size=\"-1\" face=\"<infodrom-font />\"><a href=\"%s/\">%s</a></font></td>"
	 ."<td align=\"right\"><font size=\"-1\" face=\"<infodrom-font />\">%s</font></td>"
	 ."</tr>";
  $color = "<cold>";

  
  if (($s = stat ("index.txt"))) {
    if (($f = fopen ("index.txt", "r")) !== false) {
      $howto = array ();
      while (!feof ($f)) {
	$line = fgets ($f, 255);
	$field = explode ("|", $line);

	$howto[] = $field[0];
	$title[$field[0]] = $field[1];
	$date[$field[0]] = $field[2];
      }

      sort ($howto);

      for ($i=0; $i < count ($howto); $i++) {
	$color = $color == "<cold>" ? "<coln>" : "<cold>";
	printf ($trow, $color, $howto[$i], $title[$howto[$i]], $date[$howto[$i]]);
      }
    }
  }

?>

</table><p>

<a href="source/"><b>Source</b></a><p>
</center>

</page>

# Local variables:
# mode: indented-text
# end:
