| Server IP : 104.21.37.246 / Your IP : 172.71.28.145 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home2/cp648411/public_html/simded.com/themes/ |
Upload File : |
<div id="carousel-pre" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<?php
$list_bn = array('table'=>'banner','where'=>'status = "1" AND postion = "1" ','order'=> "ORDER BY id DESC LIMIT 0,10");
$view_bn = $view_db->view($list_bn);
$result_bn = $view_db->q_re($view_bn);
$bn_num_rows = mysql_num_rows($result_bn);
$numNB=1;
while($row_bn = $view_db->q_ro($result_bn))
{
?>
<div class="carousel-item <?php if($numNB==1){?>active<?php }?>">
<?php if(!$row_bn['url'] == ''){?><a href="<?php echo $row_bn['url']?>" target="_blank"><?php }?>
<img src="../redbag/banner/<?php echo $row_bn['image']?>" class="d-block w-100" alt="...">
<?php if(!$row_bn['url'] == ''){?> </a> <?php }?>
</div>
<?php $numNB++; } ?>
</div>
<?php if($numNB > 2){ ?>
<button class="carousel-control-prev" type="button" data-bs-target="#carousel-pre" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carousel-pre" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
<?php } ?>
</div>