极速企业站群首页文章调用

日期: 2019-03-02 16:27:30 人气: -

 <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>