

  <?php  

  if(isset($id_cidade)){ 

    $selban = mysql_query("SELECT * FROM bannercidades WHERE id_cidade='$id_cidade'");

  ?>


  <div class="terbg">
    <div class="container">  
      <div class="row">

                  
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
          <div class="featured">
              <div id="slider" class="royalSlider contentSlider rsMinW">


                <?php 

                if(mysql_num_rows($selban)==0){  ?>



                <div>
                  <a><img class="rsImg" src="<?php echo sti("urlbase");  ?>/assets/images/bannerdefault.jpg" data-rsw="2600" data-rsh="252" /></a>
                </div>


                <div>
                  <a><img class="rsImg" src="<?php echo sti("urlbase");  ?>/assets/images/bannerdefault2.jpg" data-rsw="2600" data-rsh="252" /></a>
                </div>




            



                <?php  

  }

                 while($lina = mysql_fetch_assoc($selban)){   ?>

                <div>
                  <a href="<?php echo $lina['link'];  ?>"><img class="rsImg" src="<?php echo sti("urlbase");  ?>/assets/uploads/banners/<?php  echo $lina['imagem']; ?>" data-rsw="2600" data-rsh="252" /></a>
                </div>


                <?php  }  ?>
                             
              </div>          
          </div>
        </div>

      </div> 
    </div>
  </div>

<?php  }  ?>