Codice PHP:
<?php 
include("counter.php");
?>
<html>
<head>
<title>RCGM Team - Sito Ufficiale</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<meta name="KeyWords" content="">
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<!--[if gte IE 5.5]>
<script language="JavaScript" src="dhtml.js" type="text/JavaScript"></script>
<![endif]-->
<link href="screen.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
define
('__PHP_STATS_PATH__','/home/mhd/www.rcgm.it/htdocs/statistiche/');
include(
__PHP_STATS_PATH__.'php-stats.redir.php');
?>
  <table width='800' height='100%' border='0' align="center" cellpadding='0' cellspacing='0'>
    <tr>
      <td width="20" rowspan="5" background="images/bg-sx.jpg">[img]images/bg-sx.jpg[/img]</td>
      <td width="780" height='2'><table width='750' height="183" border='0' cellpadding='0' cellspacing='0'>
          
          <tr>
            <td width="750" bgcolor="#333333"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="780" HEIGHT="200" id="spot" ALIGN="">
                <PARAM NAME=movie VALUE="spot.swf">
                <PARAM NAME=menu VALUE=false>
                <PARAM NAME=quality VALUE=high>
                <PARAM NAME=bgcolor VALUE=#9A0000>
                <EMBED src="spot.swf" menu=false quality=high bgcolor=#9A0000  WIDTH="780" HEIGHT="200" NAME="spot" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
            </OBJECT></td>
          </tr>
      </table></td>
      <td width="20" rowspan="5" background="/images/bg-dx.jpg">[img]images/bg-dx.jpg[/img]</td>
    </tr>
    <tr>
      <td width="780" height='2'><table width=100% border=0 cellspacing=0 cellpadding=0>
          <tr>
            <td bgcolor="#2D2D2D"><?php include ("menu.php");?></td>
          </tr>
          <tr>
            <td height="22" background="images/bg2.gif"></td>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td width="780" valign="top"><table width="780" height="107" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="218" valign="top" bgcolor="#FFFFFF" class="bg1">

                

                <?php include ("sponsor.php");?></td>
            <td width="5" valign="top" bgcolor="#FFFFFF"></td>
            <td width="554" valign="top" bgcolor="#FFFFFF" class="bg2">

</p>
                <table width='481' border='0' align="center" cellpadding='1' cellspacing='2'>
                  <tr>
                    <td width="475"><strong class="titoligrandi">Prossimo appuntamento[/b]<strong class="testi">

                      [/b]

                      <span class="titolipic2">30.04.2006</span> 

                      <span class="testi">[b]Campionato Italiano [/b]</span><span class="titolipic2">[b]<a href="circuiti.php">- 
                      Gran premio di Monza </a>[/b]</span></td>
                  </tr>
                  <tr>
                    <td class='foto'><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="465" height="150">
                        <param name="movie" value="foto.swf">
                        <param name="quality" value="high">
                        <param name="wmode" value="transparent">
                        <embed src="foto.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="465" height="150"></embed>
                    </object></td>
                  </tr>
                  

                  <tr>
                    <td class='titoligrandi'>Ultime News</td>
                  </tr>
                  <tr>
                    <td><?php
                
include_once ("admin/classi/class.EasyPagination.php");
                include_once (
"admin/classi/ez_sql.php");
                
//esgue operazioni varie
                
$sql="SELECT id,testo,titolo,data FROM newsRCGM ORDER BY id";//pagine ORDER BY ordine";
                //$sql.=" ORDER BY ordine ASC";
                
$sql2"SELECT COUNT(*) FROM newsRCGM";
                
######
                
if ($_GET["page"]!=""):        $page    $_GET["page"];    else:    $page    1;        endif;
                
$pagination = new EasyPagination($page,10); // English Language
                
$sqlSearch  =  $sql;
                
$pagination->setSQLSearch($sqlSearch);
                
// Same search thar gets the total number of records
                
$sqlNumRows $sql2;
                
$pagination->setSQLNumRows($sqlNumRows);
                
// Get Records
                
$SQLresult $pagination->getResultData($page);
                echo 
"<span class='testi'>Ci sono [b]".$pagination->getTotalRecords()."[/b] news in archivio.
"
;
                
// Current Page
                //echo "Dati della pagina: <font color='#FF0000'>[b]$page[/b]</font>
";
                // Gets the current records according to the current page
                //echo "
vedi: [b]".$pagination->getListCurrentRecords()."[/b]
";
                // Gets the links for browsing
                echo 
$pagination->getNavigation()."Pagina";
                // Gets the links of the current page, according to the current page
                // Always from 1 to 10, 11 to 20, 21 to 30, and so forth
                echo 
$pagination->getCurrentPages();
                echo "
";
                // Gets groups of links, from 10 to 10, oscillating as follows: (X)1,(X+1)1,(X+2)1
                echo 
$pagination->getNavigationGroupLinks();
                if (mysql_num_rows(
$SQLresult)>=1)
                {
                    //scrive tutta la prima news
                    
$i=0;
                    //
$len=200;//$db->get_var("SELECT valore FROM opzioni WHERE identificativo ='len_anteprima'");
                    while (
$result=mysql_fetch_array($SQLresult))
                    {
                        ?>
                        
</td>
                  </tr>
                  <tr>
                    <td class="
titolipic2"><? echo $result["data"];?></td>
                  </tr>
                  <tr>
                    <td><strong class="
titoligrandi">
                      <?
                                if (
$i==0)
                                {
                                    echo 
$result["titolo"];
                                }
                                else
                                {
                                ?>
                      [url="
newsID.php?id=<? echo $result["]" class="testi" alt="leggi la news" title="leggi la news"><? echo $result["titolo"];?>[/url][/b]
                        <?
                                
}
                                
?>
                    </td>
                  </tr>
                  
                  
                  <tr>
                    <td class='testi'>

                        <table width='100%' border='0' cellpadding='0' cellspacing='0'>
                          <tr>
                            <td width="48%" class='titoligrandi'>[b]Calendario Italiano CIV 125[/b]</td>
                            <td width="2%" class='titoligrandi'></td>
                            <td width="50%" class='titoligrandi'>[b]Calendario Spanolo CEV 125[/b]</td>
                          </tr>
                          <tr>
                            <td valign="top" class='testi'><span class='titolipic2'>08-09 Aprile </span>Imola<span class='titolipic2'>

                              29-30 Aprile </span> Monza<span class='titolipic2'>

                                20-21 Maggio </span> Mugello<span class='titolipic2'>

                                  01-02 Luglio </span> Misano<span class='titolipic2'>

                                    26-27 Agosto </span> Misano<span class='titolipic2'>

                            23-24 Settembre </span> Vallelunga</td>
                            <td valign="top" class='testi'></td>
                            <td valign="top" class='testi'><span class="titolipic2">06-07 Maggio</span> Albacete

                                <span class="titolipic2">10-11 Giugno</span> Jerez

                                <span class="titolipic2">08-09 Luglio</span> Albacete

                                <span class="titolipic2">02-03 Settembre</span> Valencia

                                <span class="titolipic2">07-08 Ottobre</span> Catalunya

                                <span class="titolipic2">18-19 Novembre</span> Valencia

                            <span class="titolipic2">25-26 Novembre</span> Jerez</td>
                          </tr>
                          <tr>
                            <td class='testi'>[img]images/frecce.gif[/img] [b] [url="circuiti.php"]<u>D</u>ettagli Gare CIV 125[/url][/b]</td>
                            <td align='right' class='testi'></td>
                            <td class='testi'>[img]images/frecce.gif[/img] [b][url="circuiti.php"]<u>D</u>ettagli Gare CEV 125[/url][/b]</td>
                          </tr>
                      </table></td>
                  </tr>
              </table></td>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td width="780" height='4' valign='bottom' bgcolor="#FFFFFF"></td>
    </tr>
    <tr>
      <td width="780" height='30' align="center" bgcolor="#333333"><?php include ("footer.php");?></td>
    </tr>
  </table>
</body>
</html>