<?head("ForcedBanner");?>
<?
if (!isset($_GET['tan'])) $_GET['tan'] = '';
if (!isset($_GET['loeschen'])) $_GET['loeschen'] = '';
if ($_GET['loeschen']=='true' && $_GET['tan']) {
db_query("DELETE FROM ".$db_prefix."_gebuchte_werbung WHERE tan='".$_GET['tan']."'");
}
$forcedbanner = db_query("SELECT * FROM ".$db_prefix."_gebuchte_werbung WHERE werbeart = 'forcedbanner' and status = '1' ORDER BY 'verdienst' DESC");
while ($anzeigen = mysql_fetch_array($forcedbanner)) {
echo '
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">TAN: '.$anzeigen['tan'].'</td>
<td align="center" width="50%">User: '.number_format($anzeigen['verdienst'],2,",",".").'</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" colspan="2"><a href="'.$anzeigen['ziel'].'" target="_blank"><img src="'.$anzeigen['banner'].'" border="0" width="468" height="60"></a></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">Reload: '. $anzeigen['reload']/3600 .' Std. / Rest: '.number_format($anzeigen['menge'],0,",",".").'</td>
<td align="center" width="50%"><a href="?content=/adminuebersicht/banner&loeschen=true&tan='.$anzeigen['tan'].'" target="_self">Löschen</a></td>
</tr>
</table>
<br>
';
}
?>
<?foot();?>