Location: PHPKode > projects > PaoBacheca Guestbook > paobacheca-guestbook/skin2.php
<html>
<head>
	<title>Pao Bacheca</title>
      
	 <style type="text/css">
	 
    BODY,td {
	font-family : Verdana, Arial, sans-serif ;
	color:  <?php echo $fontcolor ; ?>;
	background: <?php echo $bgcolor ; ?>;
    font: 11px/15px verdana, arial, sans-serif;
    }
	table{
	 width: 70%;
	border-top: dotted  <?php echo $fontcolor ; ?> 2px;
	}
	
TD {
	text-align :left;
	color:  <?php echo $fontcolor ; ?>;
	line-height: 1.2em;
    padding: 5 5px 10px 10; 
 
	}
	
.centre {
    border-bottom: dotted  <?php echo $fontcolor ; ?> 2px;
    margin: 1em auto;
    width: 50%;
	}
    
  
	
#copy {
	font-size : xx-small;
	text-align :center;
}
   
	  A {FONT-WEIGHT: bold; COLOR:  <?php echo $fontcolor ; ?>; TEXT-DECORATION:  underline}

 A:hover {FONT-WEIGHT: bold;COLOR: #e5e5e5; TEXT-DECORATION: none}
	   


H3 {
	font-size: 15pt;
	font-style: italic;
	font-family: sans-serif;
}

H4 {
    font-family: sans-serif;
    font-size: 10pt;
}
  </style>

</head>

<body>

<body>
<div align="center">

<h3><?php echo $txt_guestbook?></h3>
<h4><?php echo $txt_view?><img src="imago/occhi.gif" width="88" height="43" alt="read" border="0"><a href="scrivi.php"><?php echo $txt_sign?><img src="imago/pen.gif" width="59" height="43" alt="write" border="0"></a>
<a href="cerca.php"><?php echo $txt_search?></a></h4>
 <table border= "0" cellspacing="20" cellpadding="0">


  <tr>

<?php

//paginazione
$mes_pag = $_GET['mes_pag'];
$pag = $_GET['pag'];
$p = $_GET['p'];


$righe_msg = file("dati/dati.txt");
$righe_msg = array_reverse( $righe_msg);

if($mes_pag == FALSE) $mes_pag = $mes_x_pag;
if($pag == FALSE) $pag = 0;
$count = count($righe_msg);

for($i = $pag; $i < ($mes_pag+$pag); $i++)
{
if( $i > 0 and $i %  $mes_pag != 0) { echo "</tr><tr>";
 
 }
    if($i > $count-1) break;
	
    $dato = explode("|", trim($righe_msg[$i]));

$numero = ( $count-$i);
//controllo campo url
if ($dato[1] =="http://" or $dato[1] ==""){
 $dato[1]=false;
 }

 echo "<td class='centre'>";

		
 if ($dato[1]) {
  echo "<a href='$dato[1]'><img src='imago/casa_stile2.gif'  hspace='5' alt='sito proposto' border='0'></a>";
				  
				}
				
 if ($dato[2]) {
    echo "<a href='mailto:$dato[2]'><img src='imago/mail_stile2.gif'  alt='email' border='0'></a>";

				}
		
				

		echo "<br>";
		echo "<b> $txt_posted_by  $dato[0] </b>";
		echo "<br>";
		echo "<b> $txt_on $dato[4]  </b></div>";

		echo " <p>$dato[3]</p>";
		echo "<div align='right'><br><small> $txt_entry N° $numero</small></div></td>";
		

}
  
echo "</tr>
</table >";
echo "<h4>$txt_pag . ";

for($p = 0; $p < $count; $p++)
{
    if(!($p % $mes_pag))
    {
        $pg = ($p/$mes_pag)+1;
        if ($p == $pag)
        {
            echo "$pg ";
        }
        else
        {
            echo "<a href=\"?pag=$p\">$pg</a> ";
        }
    }
}

echo "</h4><div id='copy'>&copy; 2005 PaoBacheca power by<a href='http://zenas.org'> Zenas.org</a>";
?>


Return current item: PaoBacheca Guestbook