极速企业站群头条后文章调用 

日期: 2019-03-02 16:28:50 人气: -

 <?php
    $rid=$row1['id'];
    $dosql->Execute("SELECT * FROM `#@__infolist` WHERE (classid=4 or parentid=4) AND delstate='' AND checkinfo=true And id != $rid ORDER BY orderid DESC LIMIT 0,3");
    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="newslia">
            <?php echo ReStrLen($row['title'],25); ?>
        </a>
        【<?php echo MyDate('m-d', $row['posttime']); ?>】
    </li>
    <?php
    }
    ?>