<!doctype html>
<?php include 'url_amigable.php';?>

<html>
  <head>
    <meta charset="utf-8">
  
    <title>Slider3</title>
      
    <!-- bjqs.css contains the *essential* css needed for the slider to work -->
    <link rel="stylesheet" href="bjqs.css">

    <!-- some pretty fonts for this demo page - not required for the slider -->
    <link href='http://fonts.googleapis.com/css?family=Source+Code+Pro|Open+Sans:300' rel='stylesheet' type='text/css'> 

    <!-- demo.css contains additional styles used to set up this demo page - not required for the slider --> 
    <link rel="stylesheet" href="demo.css">

    <!-- load jQuery and the plugin -->
    <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script src="bjqs-1.3.min.js"></script>
      
  </head>
  
  <body>
  

      <!--  Outer wrapper for presentation only, this can be anything you like -->
      <div id="banner-slide">

        <!-- start Basic Jquery Slider -->
        <ul class="bjqs">
        
    <?php     
        

include('concha.php');
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM notas_tapa WHERE cu3er = '3' ORDER BY ID desc";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_nota = $row["ID"];
$foto = $row["foto"]; $ext_img = $row["ext_img"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];
$can = $can + 1;

$sql2 = "SELECT * FROM notas WHERE ID = '$nota' ";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{
$titulo11 = $row2["titulo"];

}
mysql_free_result($consulta2);

?>

          <li><?php if($nota == 0) {} else {?> <a target="_parent" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo11) ?>"> <?php };?><img alt="PUBLICIDAD" src="upload_pic/thumbnail_<?php echo $foto ?>.jpg" title="<?php echo $titulo ?>" > <?php if($nota == 0) {} else {?> </a> <?php };?>  </li>


<?
}
mysql_free_result($consulta);


if ($can == 1) { ?> 
          <li><?php if($nota == 0) {} else {?> <a target="_parent" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo) ?>"> <?php };?><img alt="PUBLICIDAD" src="upload_pic/thumbnail_<?php echo $foto ?>.jpg" title="<?php echo $titulo ?>" > <?php if($nota == 0) {} else {?> </a> <?php };?>  </li>

 <? } else {}; ?>


        
      
          
          
          
          
        </ul>
        <!-- end Basic jQuery Slider -->

      </div>
      <!-- End outer wrapper -->
      
      <!-- attach the plug-in to the slider parent element and adjust the settings as required -->
      <script class="secret-source">
        jQuery(document).ready(function($) {
          
          $('#banner-slide').bjqs({
            animtype      : 'slide',
			animduration : 450, // how fast the animation are
			
animspeed : 5000, // the delay between each slide
automatic : true, // automatic
            height        : 300,
            width         : 315,
            responsive    : true,
            randomstart   : false,
			showcontrols : false, // show next and prev controls
			nexttext : '>', // Text for 'next' button (can use HTML)
prevtext : '<',
showmarkers : false,
			
          });
          
        });
      </script>

    </div>


  </body>
</html>
