|
|
|
|
|
|
|
| include 'search.php' ?> |
include 'include/php/constants.php';
include 'include/php/functions.php';
$objDb=new objCommon;
$objDb->connection($host,$user,$pass,$db);
$page=trim($_GET['page']);
if(empty($page))
$page=$objDb->getpage();
$query="select * from news where enabled=1 order by postdate desc ";
$pgsql=$query;
$query.=" LIMIT ".($page-1)*$lines.",".$lines;
$intPageRecords = (($page - 1) * $lines );
$intCount=$intPageRecords;
$result=mysql_query($query) or die($query); ?>
|
What's New ? |
|
|
|
$num=mysql_num_rows($result);
$k=0;
while($row=mysql_fetch_object($result))
{
$k++;
$strThumb=$row->thumbnail1;
?>
if($strThumb)
{ ?>
 |
} ?>
=$row->title?> |
|
$arrDetails=split("\n",strip_tags($row->description));
$strDetails=$arrDetails[0];
if(strlen($strDetails)<200)
{
$strDetails=$arrDetails[0];
}
else
{
$arrDetails=split(" ",$strDetails);
$strDetails="";
for($i=0;$i=40)
{
break;
}
}
$strDetails.=" ...";
}
echo $strDetails;
?> |
if($row->slide || $row->video)
{ ?>
| |
if($row->slide)
{ ?>
Slide show
}
if($row->video)
{ ?>
Video
} ?>
|
} ?>
if($k!=$num)
{ ?>
}
} ?>
|
$postion="bottom";
$category="Current news";
$url ="whats_new.php";
include 'show_pagenos.php';
?>
|
|
|
|
|
|
|
| © 2005 Hispanic Information and Telecommunications Network, Inc, |
|
|
|