日期: 2021-09-23 12:40:58 人气: -
首页文章调用
<ul>
<?php $dosql->Execute("SELECT * FROM `#@__infolist` WHERE (classid=4 or parentid=4) AND delstate='' AND checkinfo=true ORDER BY orderid DESC LIMIT 0,6");
while($row = $dosql->GetArray())
{
//获取链接地址
if($row['linkurl']=='' and $cfg_isreurl!='Y')
$gourl = 'newsshow.php?cid='.$row['classid'].'&id='.$row['id'];
else if($cfg_isreurl=='Y')
$gourl = 'newsshow-'.$row['classid'].'-'.$row['id'].'-1.html';
else
$gourl = $row['linkurl'];
?>
<li>
<a href="<?php echo $gourl; ?>" class="newsa">
<?php echo ReStrLen($row['title'],25); ?>
</a>
<span id="newsspan">【<?php echo MyDate('m-d', $row['posttime']); ?>】</span>
</li>
<?php
}
?>
</ul>