<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Forum Themen</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<div style="height:20px; background-image: url('images/content_top.gif'); padding-left:25px;"><span class="title">Forum</span></div>
<div id="main_content">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
</table>
<div align="center">
<table width="100%" border="0" class="mainmenu" cellpadding="0" cellspacing="0" bgcolor="#008000">
<tr>
<td bgcolor="#53608A"><div align="center"><a href="index.php?action=forum&sid=<?php echo $sid; ?>">
Forum</a>
>>
<?php
if($rubrik == 1){echo '<strong> Wochen/-end Action </strong>';}
if($rubrik == 2){echo '<strong> Fun-Ecke </strong>';}
if($rubrik == 3){echo '<strong> Chill-Zone </strong>';}
?>
</div></td>
</tr>
</table>
</div>
<table width="100%" class="mainmenu" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#003366">
<td width="250" height="0" bgcolor="#7E8AAB"><div align="center"><font color="#FFFFFF" size="1"><strong>
Thema</strong></font></div></td>
<td width="100" height="0" bgcolor="#7E8AAB"><div align="center"><font color="#FFFFFF" size="1"><strong>
Beiträge</strong></font></div></td>
<td width="100" height="0" bgcolor="#7E8AAB"><div align="center"><font color="#FFFFFF" size="1"><strong>
Hits</strong></font></div></td>
<td width="39%" height="0" bgcolor="#7E8AAB"><div align="center"><font color="#FFFFFF" size="1"><strong>
letzter Beitrag</strong></font></div></td>
</tr>
<?php
require('config_inc.php');
$forum_rubrik = "forum_rubrik".$rubrik;
$db=mysql_connect("$msql_host","$msql_name","$msql_pass");
mysql_select_db("$msql_db");
$anfrage="SELECT * FROM `$forum_rubrik` WHERE bezugs_id LIKE 0 ORDER BY timestamp DESC";
$ergebnis = mysql_query($anfrage);
while ($zeile = mysql_fetch_array($ergebnis)) {
$forum_num = $zeile[0];
$forum_hits = $zeile[2];
$forum_betreff = $zeile[6];
//Anzahl der Beiträge
$anfrage2="SELECT * FROM `$forum_rubrik` WHERE bezugs_id LIKE $forum_num OR num = $forum_num";
$ergebnis2 = mysql_query($anfrage2);
$forum_beitrage = mysql_num_rows($ergebnis2);
while ($zeile2 = mysql_fetch_array($ergebnis2)) {
$forum_name = $zeile2[3];
$forum_datum = $zeile2[4];
$forum_zeit = $zeile2[5];
}
//Ausgabe
echo '<tr bgcolor="#C0CAE3"><td width="250" height="30" bgcolor="#C0CAE3"><strong><a href="index.php?action=forum_beitrag&rubrik='.$rubrik.'&bid='.$forum_num.'&sid='.$sid.'">'.$forum_betreff.'</a></strong></td>
<td width="100" align="center"><font color="#53608A">'.$forum_beitrage.'</font></td>
<td width="100" align="center"><font color="#53608A">'.$forum_hits.'</font></td>
<td class="lastpost" align="center">von <strong>'.$forum_name.'</strong><br><font color="#53608A">'.$forum_datum.' um '.$forum_zeit.'</td>
</tr>';
}
?>
</table>
<div align="center">
<table width="100%" border="1" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td height="30" bgcolor="#FE9A08" bordercolor="#53608A"><div align="center"><font color="#FFFFFF">
>></font><strong>
<a href="index.php?action=forum_tinput&rubrik=<?php echo $rubrik; ?>&bid=<?php echo $bid; ?>&sid=<?php echo $sid; ?>">
Neues Thema zu dieser Rubrik erstellen</a></strong> <font color="#FFFFFF">
<<</font>
</div></td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>