<title>::: Latest News :::</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<?php
include("./config.inc.php");
include ("./opendb.inc");
?>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=600,height=250,left = 180,top = 140');");
}
</script>
<?
if ($last) {
$sql = "SELECT * FROM $tab_news WHERE id='$last'";
$result = mysql_query($sql,$link);
?>
<? while ($daten = mysql_fetch_array($result)) {
$nachricht = ($daten['nachricht']);
?>
<table width="85%" height="8" border="0" cellpadding="0" cellspacing="0" >
<tr >
<td width="185" height="8" valign="middle"><strong><img src="../images/news.gif" width="10" height="9"> <span class="subject"><? echo $daten[subject]; ?></span></strong></td>
<td height="8" valign="middle">
<div align="center"></div>
<div align="right" ><strong><font face="Arial, Helvetica, sans-serif"><a href="#" onMouseOver="this.T_WIDTH=80; return escape('<div align=\center\>erstellt von: <br><? echo $daten[author]; ?><\div>')" style="color : #333333; text-decoration: none; font-size: 10px;"><? echo $daten[datum] ?></a></font></strong></div></td>
</tr>
</table>
<table width="85%" cellspacing="0">
<tr>
<td align="right">
<?
//Hier wird geprüft ob ein Bild vorhanden ist
if ($daten['type']) { ?>
<a href="javascript:popUp('./newspic_f.php<? echo '?id='.$daten[id].'' ?>')" style="text-decoration: none"><img src="../images/newspic.gif" border="0"></a>
<?
} else {
echo "";
}
?>
</td>
</tr>
<tr>
<td valign="top" class="content">
<?
//Hier wird geprüft ob News vorhanden sind und ob Sie gewrap werden müssen
if ($daten['nachricht'])
{
echo " $nachricht";
} else {
echo "Es wurden noch keine News eingetragen. <br> Um News einzutragen,
klicken Sie bitte <a href=admin.php>hier</a>";
}
?>
</td>
</tr>
<tr>
<td>
<tr>
<td height="6" colspan="5" class="lineunder"> </table>
<?
}}
?>
<div align="center"><a href="javascript:self.close()" class="resultshead"style="text-decoration: none" a>Fenster
schließen</a></div>