PHP-Code:
//Autosurf Anfang
if (!isset($tra_gebucht)) $tra_gebucht = '';
if (!isset($tra_menge)) $tra_menge = '';
if (!isset($tra_wert)) $tra_wert = '';
if (!isset($in_tra_gebucht)) $in_tra_gebucht = '';
if (!isset($in_tra_menge)) $in_tra_menge = '';
if (!isset($in_tra_wert)) $in_tra_wert = '';
//Autosurf Ende
PHP-Code:
//Autosurf Anfang
$ex_tra = db_query("SELECT * FROM ".$db_prefix."_besuchertausch_seiten WHERE uebrig >= 1 and paidlink <= '2'");
while ($count = mysql_fetch_array($ex_tra)) {
$tra_gebucht++;
$tra_menge = $tra_menge + $count['uebrig'];
$tra_wert = $tra_wert + ($count['verdienst']*$count['uebrig']);
}
//Autosurf Ende
PHP-Code:
<tr>
<td colspan="2" width="100%%"><hr size="1" width="100%" color="#800000"></td>
</tr>
<tr>
<td width="50%">Autosurf Kampagnen</td>
<td width="50%"><?=@number_format($tra_gebucht,0,",",".");?> Kampagnen</td>
</tr>
<tr>
<td width="50%">Autosurf Restklicks</td>
<td width="50%"><?=@number_format($tra_menge,0,",",".");?> Klicks</td>
</tr>
<tr>
<td width="50%">Autosurf Gesamtwert</td>
<td width="50%"><?=@number_format($tra_wert,2,",",".");?> <?=$waehrung;?></td>
</tr>