next previous
'; ?>  
';?>
items_total = $cnt[0]; $pages->mid_range = 7; $pages->paginate(); $sql="select * from `article` where `In_Home`='Yes' and `Archive`='No' order by `Article_Date` desc $pages->limit"; $result=mysql_query($sql); echo '
'; while($article = mysql_fetch_assoc($result)){ echo ''; }; echo '
'; echo $pages->display_pages(); echo "
"; ?>
'; echo '' .$articles['Article_Category'] .''; $first = false; } if($articles['Article_Category_ID'] != $articleCat){ $cnt++; echo '
'; if($cnt == 2){ echo '
'; $cnt =0; } $margin = ''; if($cnt == 0) $margin = 'style="margin-right:11px"'; echo '
'; echo '' .$articles['Article_Category'] .''; $articleCat = $articles['Article_Category_ID']; }; echo '

'.$articles['Article_Title'] .'

'; } echo '
'; } include 'template.php'; function truncate ($str, $length=70, $trailing='...') {$length-=mb_strlen($trailing); if (mb_strlen($str)> $length) { return mb_substr($str,0,$length).$trailing; } else { $res = $str; } return $res; } ?>