|
global $db;
$timestamp=time();
//$timemod=$timestamp-(86400*1);
$sqllist="select infoid,catid,title,addtime,hits,content,telephone,email,address,author from ".channel_table('info',36)." where status=3 and catid in(".$catid.") ORDER BY infoid DESC ";
$result=$db->query($sqllist);
$pagesize=10;
$total=mysql_num_rows($result);
$url=base64_encode($catid);
$filename='infolist.php?'.$url.'&';
$currpage=$page? intval($page):$page=1;
if(!is_int($currpage))
$currpage=1;
if(intval($currpage)<1)$currpage=1;
if(intval($currpage-1)*$pagesize>$total)$currpage=1;
if(($total%$pagesize)==0)
{
$totalpage=intval($total/$pagesize);
}
else
$totalpage=intval($total/$pagesize)+1;
if ($total!=0&&$currpage>1)
mysql_data_seek($result,(($currpage-1)*$pagesize));
$i=0;
while($t=$db->fetch_array($result))
{
$aid=$t['infoid'];
$catid=$t['catid'];
$title=$t['title'];
$content=$t['content'];
$addtime=date("Y-m-d",$t['addtime']);
$hits=$t['hits'];
$tel=$t['telephone'];
$author=$t['author'];
$url=base64_encode("aid=".$aid."&catid=".$catid);
$i++;
if($i>$pagesize)break;
?>
|
=$title?> |
=str_cut($content,350)?> تەپسىلى ئۇچۇرنى كۆرۈش |
|
}
$db->free_result($result);
?>
|
|
|
|
ئەڭ يېڭى ئۇچۇرلار |
=uchur_timisi(22,0,211,'infoid',60,1,1)?> |
|