Public feed
#528589
<?
defined ('main') or die ( 'no direct access' );
$title = $allgAr['title'].' :: Referenzen';
$hmenu = 'Referenzen';
$design = new design ( $title , $hmenu );
$design->header();
$tpl = new tpl ( 'works.htm' );
$erg = db_query('SELECT seitenname,link,ersteller,vorschaubild,screenshot,status FROM `prefix_works` ORDER BY id');
while ($row = db_fetch_object($erg)) {
$status = $row->status;
if ($status == true)
{
$status = "<font color='#00FF00'><b>Online</b></font>";
} else {
$status = "<font color='#FF0000'><b>Offline</b></font>";
}
if ($row->screenshot == "")
{
$bild = '<img src="'.$row->vorschaubild.'" border="0" width="200">';
} else {
$bild = '<a href="'.$row->screenshot.'"><img src="'.$row->vorschaubild.'" border="0" width="200"></a>';
}
if ($row->link == "")
{
$link = "<i>kein Link verfügbar</i>";
} else {
$link = '<a href="'.$row->link.'">Seite besuchen</a>';
}
$tpl->set_ar_out(array('SEITENNAME' => $row->seitenname,
'LINK' => $link,
'ERSTELLER' => $row->ersteller,
'BILD' => $bild,
'STATUS' => $status ), 0);
}
$design->footer();
?>