hatty
14.01.2007, 01:16
Die startseite unter adminforce/content raussuchen und öffnen
unter
</tr></table>
folgendes einfügen:
<br>
<?
$mailresult = db_query("SELECT * FROM vms_paidmails_versendet WHERE gueltig > '".time()."'");
$menge = mysql_num_rows($mailresult);
$usermail = mysql_fetch_array(db_query("SELECT * FROM vms_paidmails_versendet WHERE gueltig > '".time()."' limit 1"));
$gesamtmails_verschickt = $menge*$usermail['menge'];
$bestaettigt = mysql_fetch_array(db_query("SELECT sum(bestaedigt) as zahl FROM vms_paidmails_versendet WHERE gueltig > '".time()."'"));
$nochoffen = $gesamtmails_verschickt-$bestaettigt['zahl'];
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td width="100%" valign="top">
<?head("Mailstatistik");?>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td width="55%">Gesamt Mails verschickt</td>
<td align="right"><?=number_format($gesamtmails_verschickt,0,",",".");?> </td>
</tr>
<tr bgcolor="#f5f5f5">
<td>Mails bestättigt</td>
<td align="right"><?=number_format($bestaettigt['zahl'],0,",",".");?> </td>
</tr>
<tr bgcolor="#f5f5f5">
<td>Mails unbestättigt</td>
<td align="right"><?=number_format($nochoffen,0,",",".");?> </td>
</tr>
<tr bgcolor="#f5f5f5">
<td>Wieviel User bekommen Mails</td>
<td align="right"><?=number_format($usermail['menge'],0,",",".");?> </td>
</tr>
</table>
<?foot();?>
</td>
</tr></table>
fertig
unter
</tr></table>
folgendes einfügen:
<br>
<?
$mailresult = db_query("SELECT * FROM vms_paidmails_versendet WHERE gueltig > '".time()."'");
$menge = mysql_num_rows($mailresult);
$usermail = mysql_fetch_array(db_query("SELECT * FROM vms_paidmails_versendet WHERE gueltig > '".time()."' limit 1"));
$gesamtmails_verschickt = $menge*$usermail['menge'];
$bestaettigt = mysql_fetch_array(db_query("SELECT sum(bestaedigt) as zahl FROM vms_paidmails_versendet WHERE gueltig > '".time()."'"));
$nochoffen = $gesamtmails_verschickt-$bestaettigt['zahl'];
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td width="100%" valign="top">
<?head("Mailstatistik");?>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td width="55%">Gesamt Mails verschickt</td>
<td align="right"><?=number_format($gesamtmails_verschickt,0,",",".");?> </td>
</tr>
<tr bgcolor="#f5f5f5">
<td>Mails bestättigt</td>
<td align="right"><?=number_format($bestaettigt['zahl'],0,",",".");?> </td>
</tr>
<tr bgcolor="#f5f5f5">
<td>Mails unbestättigt</td>
<td align="right"><?=number_format($nochoffen,0,",",".");?> </td>
</tr>
<tr bgcolor="#f5f5f5">
<td>Wieviel User bekommen Mails</td>
<td align="right"><?=number_format($usermail['menge'],0,",",".");?> </td>
</tr>
</table>
<?foot();?>
</td>
</tr></table>
fertig