Hi das Thema sagt schon alles wie kann ich die Statistik von meiner Homepage hier mittig machen?
prodiigy.de/index.php?statistik
MfG
Blackhawk
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
echo '<br /><table width=90%" align="center" class="border" cellpadding="0" cellspacing="1" border="0"><tr><td>';
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Statistik'; $hmenu = 'Statistik'; $design = new design ( $title , $hmenu ); $design->header(); $anzahlShownTage = 7; echo '<br /><table width=90%" align="center" class="border" cellpadding="0" cellspacing="1" border="0"><tr><td>'; echo '<table width="100%" border="0" cellpadding="5" cellspacing="0">'; echo '<tr class="Chead"><td colspan="3" align="center"><b>Site Statistic</b></td></tr>'; $max_in = 0; $ges = 0; $dat = array(); $max_width = 200; $maxErg = db_query('SELECT MAX(count) FROM `prefix_counter`'); $max_in = db_result($maxErg,0); $erg = db_query ("SELECT count, DATE_FORMAT(date,'%a der %d. %b') as datum FROM `prefix_counter` ORDER BY date DESC LIMIT ".$anzahlShownTage); while ($row = db_fetch_row($erg) ) { $value = $row[0]; if ( empty($value) ) { $bwidth = 0; } else { $bwidth = $value/$max_in * $max_width; $bwidth = round($bwidth,0); } echo '<tr class="Cnorm">'; echo '<td>'.$row[1].'</td>'; echo '<td><table width="'.$bwidth.'" border="0" cellpadding="0" cellspacing="0">'; echo '<tr><td height="2" class="border"></td></tr></table>'; echo '</td><td align="right">'.$value.'</td></tr>'; $ges += $value; } $gesBesucher = db_query('SELECT SUM(count) FROM prefix_counter'); $gesBesucher = @db_result($gesBesucher,0); echo '<tr class="Cmite"><td colspan="3"><div align="right">'; echo $lang['weeksum'].': '.$ges.'</div>'; echo $lang['wholevisitor'].' '.$gesBesucher.' '.$lang['max'].' '.$max_in.'<br /><br />'; echo '</td></tr></table></td></tr></table><br />'; $design->footer(); ?>
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Statistik'; $hmenu = 'Statistik'; $design = new design ( $title , $hmenu ); $design->header(); $anzahlShownTage = 7; // Anzahl der Tage $farbe = '#FF0000'; // Balkenfarbe echo '<table width="100%" class="border" cellpadding="5" cellspacing="1" border="0"><tr><td>'; echo '<tr class="Chead"><td colspan="3" align="center"><b>Seiten Statistik</b></td></tr>'; $maxErg = 0; $ges = 0; $max_width = 200; $maxErg = db_result(db_query('SELECT MAX(count) FROM `prefix_counter`'),0); $erg = db_query ("SELECT count, DATE_FORMAT(date,'%d') as datum, DATE_FORMAT(date,'%w') as tag, DATE_FORMAT(date,'%m') as mon, DATE_FORMAT(date,'%y') as jahr FROM `prefix_counter` ORDER BY date DESC LIMIT ".$anzahlShownTage); while ($row = db_fetch_object($erg) ) { if ( empty($row->count) ) { $bwidth = 0; } else { $bwidth = $row->count/$maxErg * $max_width; $bwidth = round($bwidth,0); } echo '<tr class="Cnorm">'; echo '<td>'.wtage($row->tag).', den '.$row->datum.'.'.$row->mon.'.'.$row->jahr.'</td>'; echo '<td>'; echo '<div style="background:'.$farbe.'; width:'.$bwidth.'px; height: 5px;"></div>'; echo '</td>'; echo '<td align="right">'.$row->count.'</td></tr>'; $ges = $ges + $row->count; } $gesBesucher = db_query('SELECT SUM(count) FROM prefix_counter'); $gesBesucher = @db_result($gesBesucher,0); echo '<tr class="Cmite">'; echo '<td colspan="2">'.$lang['wholevisitor'].' '.$gesBesucher.' '.$lang['max'].' '.$maxErg.'</td>'; echo '<td colspan="1" align="right">'.$lang['weeksum'].': '.$ges.'</td>'; echo '</tr></table>'; $design->footer(); ?>
Geschlossen | ||
Zurück zu Module und Modifikationen |