Location: PHPKode > projects > PaoLiber > paoliber/news.php
<html><head><title>Script in PHP PaoLiber</title>
<?
/*****************
 Pao-Liber v 1.1
 autor:
 Paola Orru
 http://zenas.org
 email: hide@address.com
*****************/
//configurazione dei colori e messaggi per pagina
include  "config.php" ;
include  "language/lang_$lang_set.php" ;
include  "stilepag.inc" ;
?>

</head>
<body>
<div id="frame">
	<div id="contentheader"><h1><?php echo $txt_script?></h1></div>
	<div id="contentleft">

	
    <p><a href="login.php"><img src="admin.gif" width="46" height="43" alt="login" border="0">
		</a>
		<a href="index.php">Liber </a>| News
    </p>
		
		<p><?php include "dati/whatis.txt"?></p>
		
	</div>

	<div id="contentcenter">
		<br>
	<?php	
	
//paginare
$perpage = $_GET['perpage'];
$pos = $_GET['pos'];
$p = $_GET['p'];

$file = file("dati/news.txt");
if($perpage == FALSE) $perpage = $msg_x_pag;
if($pos == FALSE) $pos = 0;
$count = count($file);
for($i = $pos; $i < ($perpage+$pos); $i++)
{
if($i > $count-1) break;
$result = explode("|", trim($file[$count-$i-1]));



 echo "</p><div class= 'news'>";

		echo "<div class= 'box'> <b>$result[1]</b></A>";
		echo "<br>";
		echo "$txt_on $result[2]  </div> ";

		echo "<br> $result[0]<br>";
		
		echo "</p></div>";
		

}
?>





	</div>

	<div id="contentright">
		<h4>News</h4>
		<p>
<?php	
echo "<div align=\"center\">$txt_pag [ ";

for($p = 0; $p < $count; $p++)
{
if(!($p % $perpage))
{
$pg = ($p/$perpage)+1;

if ($p == $pos)
{
echo "<strong>$pg</strong> ";
}
else
{
echo "<a href=\"?pos=$p\"><u>$pg</u></a> ";
}
}
}
echo " ]</div>";



?>


</p>




	</div>
	<br clear="all" >


<div id ="footer"> power by da <a href='http://zenas.org'>Zenas.org</a>

</div>

</body>
</html>
Return current item: PaoLiber