极速企业站群首页图片滚动调用

日期: 2019-03-02 16:26:47 人气: -

 <?php
    $dosql->Execute("SELECT * FROM `#@__infoimg` WHERE classid=8 AND and delstate is NULL AND checkinfo=true ORDER BY orderid DESC LIMIT 0,30");
    while($row = $dosql->GetArray())
    {
    if($row['linkurl']=='' and $cfg_isreurl!='Y') $gourl = 'product.php?cid='.$row['classid'].'&id='.$row['id'];
                    else if($cfg_isreurl=='Y') $gourl = 'product-'.$row['classid'].'-'.$row['id'].'-1.html';
                    else $gourl = $row['linkurl'];
?>
    <li>
        <a href="<?php echo $gourl; ?>" class="imga">
            <img src="<?php echo $row['picurl']; ?>" alt="<?php echo $row['title']; ?>" />
        </a>
        <a href="<?php echo $gourl; ?>" class="titlea">
            <?php echo $row['title']; ?>
        </a>
    </li>
<?php
    }
?>