<!DOCTYPE html>
<?php include '../concha.php'; include '../url_amigable.php';?>

<?php include 'concha.php';

$ID = (int)$_GET['ID']; 



mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$sql = "SELECT * FROM notas WHERE ID = '$ID' ";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];

$ID_NOTA = $row["ID"];

$carpetafoto = $row["carpetafoto"];

$foto = $row["foto"];

$titulo = $row["titulo"];

$texto = $row["texto"];

$bajada = $row["bajada"];

$audio = $row["audio"];


$d = $row["d"];

$m = $row["m"];
$m2 = $row["m"];

$a = $row["a"];


$tag1 = $row["tag1"];

$tag2 = $row["tag2"];

$tag3 = $row["tag3"];
$tag4 = $row["tag4"];
$tag5 = $row["tag5"];
$youtube = $row["youtube"];
$visitas = $row["visitas"];



}

mysql_free_result($consulta);

$visitas = $visitas + 1;
mysql_connect("$host","$usuario","$contra");


$sSQL="UPDATE  `$basedatos`.`notas` SET  `visitas` =  '$visitas' WHERE ID = '$ID_NOTA'";


mysql_db_query("$basedatos",$sSQL);


?>

<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">


<title><?php echo $titulo ?></title>
<?php $bajada1 = str_replace('"','',$bajada);  ?>
<meta name="description" content="<?php echo $bajada1 ?>" />
<meta name="keywords" content="<?php echo $tag1 ?>, <?php echo $tag2 ?>, <?php echo $tag3 ?>, <?php echo $tag4 ?>, <?php echo $tag5 ?>">
<meta name="language" content="es" />
 
 
  <meta property="og:type" content="article" />
<meta property="og:title" content="<?php echo $titulo ?>" />
  <meta property="og:description" content="<?php echo $bajada1 ?>" />
<meta property="og:url" content="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" />
<meta property="og:image" content="<? echo $dom;?>/<?php echo $carpetafoto ?>/resize_<?php echo $foto ?>.jpg" />


<!-- Mobile viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<link rel="shortcut icon" href="../icono.ico"  type="image/x-icon">

<!-- CSS-->
<!-- Google web fonts. You can get your own bundle at http://www.google.com/fonts. Don't forget to update the CSS accordingly!-->
<link href='http://fonts.googleapis.com/css?family=Droid+Serif|Ubuntu' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="flexslider.css">
<link rel="stylesheet" href="basic-style.css">

<!-- end CSS-->
    
<!-- JS-->
<script src="modernizr-2.6.2.min.js"></script>
<!-- end JS-->


<!-- columns demo style. DELETE IT! -->
<style type="text/css">
<!--

#columnsdemo .grid_1,
#columnsdemo .grid_2,
#columnsdemo .grid_3,
#columnsdemo .grid_4,
#columnsdemo .grid_5,
#columnsdemo .grid_6,
#columnsdemo .grid_7,
#columnsdemo .grid_8,
#columnsdemo .grid_9,
#columnsdemo .grid_10,
#columnsdemo .grid_11,
#columnsdemo .grid_12 {
border: solid 1px #999;
color:#999;
text-align: center;
margin-top:20px;
padding:20px 15px;
}
-->
</style>
</head>

<body id="home">
  
<!-- header area -->
    <header class="wrapper clearfix">
		       
        <div id="banner">        
        	<div id="logo"><a href="index.php"><img src="<?php echo $logo_C ?>" alt="logo"></a></div> 
        </div>
        
        
    <?php  include 'menu.php';?>
  
    </header><!-- end header -->
 
 


<!-- main content area -->   
<div id="main" class="wrapper">
    
      
    <!-- columns demo, delete it!-->
    <section id="columnsdemo" style="margin-bottom:60px; width:100%" class="clearfix">

        
        

                
        <div class="grid_12">
 
 
 
 

            <?
$Y = $a;
$M = $m2;
$D = $d;

$date = "$Y$M$D";
 
if ($M == '01') {$m = "enero";};

if ($M == '02') {$m = "febrero";};

if ($M == '03') {$m = "marzo";};

if ($M == '04') {$m = "abril";};

if ($M == '05') {$m = "mayo";};

if ($M == '06') {$m = "junio";};

if ($M == '07') {$m = "julio";};

if ($M == '08') {$m = "agosto";};

if ($M == '09') {$m = "septiembre";};

if ($M == '10') {$m = "octubre";};

if ($M == '11') {$m = "noviembre";};

if ($M == '12') {$m = "diciembre";};


?>
            
            
            
            
            
            <span style=";font-family:<?php echo $style_titulo ?>;font-size:10pt;color:<?php echo $d_color_titulo?>;"><?php echo $D ?> de <?php echo $m ?> de <?php echo $a ;?></span>
                     
            
            
            
           
            
            <h1 style=";font-family:<?php echo $style_titulo ?>;font-size:25pt;color:<?php echo $d_color_titulo?>;"><?php echo $titulo ?></h1>
  
 <?php if ($foto == NULL) {} else {?>    
          <div align="left"><img src="<? echo $dom;?>/<?php echo $carpetafoto ?>/resize_<?php echo $foto ?>.jpg" /></div>
         

      <?php };?>
  

<?php 
$sql65 = "SELECT * FROM fotos_notas WHERE noticia = '$ID'";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{


$carpetafoto1 = $row65["carpetafoto"];
$ID_foto = $row65["ID"];


$foto = $row65["foto"];
?>
<a href="<?php echo $dom ?>/<?php echo $carpetafoto1 ?>/resize_<?php echo $foto ?>.jpg" data-lightbox="<?php echo $ID ?>" title="<?php echo $titulo; ?>"><img src="<?php echo $dom ?>/<?php echo $carpetafoto1 ?>/thumbnail_<?php echo $foto ?>.jpg" width= 120 height="90" border="0" 2px solid #999999 /></a>
<?


 }
mysql_free_result($consulta65);

?>
  
<div align="justify">

           <span style=";font-family:<?php echo $d_fu_texto ?>;font-size:12pt;color:#6B6B6B;line-height:16px;"><?php echo $bajada ?></span>

     </div>
     
     
  
  
  <?php if ($youtube == NULL) {} else { ?>
    
        <object width="616" height="390">
<param name="movie" value="http://www.youtube.com/v/<?php echo $youtube ?>&amp;hl=es&amp;fs=1&amp;rel=0" />
</param>
<param name="allowFullScreen" value="true" />
</param>
<param name="allowscriptaccess" value="always" />
</param>
<embed src="http://www.youtube.com/v/<?php echo $youtube ?>&amp;hl=es&amp;fs=1&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="616" height="390"></embed>
</object>
        
      <?php  }; ?>
  
  
<div align="justify"><?php echo $texto ?>
      
          <br />
            <?php include '../audio.php'; ?>
            </p>
            
            
          <p align="right">
          <?php $bajada1 = str_replace('"','',$bajada);  
?><?php $titulo1 = str_replace('"','',$titulo);  
?>


<div align="right">

    <?php   
	
	
      $sql65 = "SELECT * FROM archivos WHERE ID_nota = '$ID'";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{


$ruta = $row65["ruta"];
$tipo = $row65["tipo"];

?>
<a  target="_blank" href="<?php echo $ruta ?>"><img src="<?


 if ($tipo == 'xls' or $tipo == 'xlsx') { echo "http://radiosnet.com.ar/xls.jpg"; };  

if ($tipo == 'doc' or $tipo == 'docx') { echo "http://radiosnet.com.ar/doc.jpg"; };  

if ($tipo == 'pdf') { echo "http://radiosnet.com.ar/pdf.jpg"; };  

?>" /></a>
<?


 }
mysql_free_result($consulta65);
?>
</div>


<?php if ($opcion3 == 'si') {?>
    

 Comentarios &raquo;  <br />

                 
                 
                 <?php if ($comentarios == 'facebook') { 
?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=427523193949843";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

  <div class="fb-comments" reverse="false" data-href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" data-num-posts="100"  data-order-by="reverse_time";></div>
  




<?php 
} else { ?>

    
    
    
    

            <?

$c = 0;

mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$sql = "SELECT * FROM comentarios WHERE IDD = '$ID' AND ver = 'si' ";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$c = $c + 1;

$nombre = $row["nombre"];

$texto = $row["texto"];





?>

            <span class="Estilo9"><strong><?php echo $nombre ?></strong><br />
          </span><span class="Estilo9"><?php echo $texto ?> </span>
          <img src="<?php echo $dom ?>/lineanota.gif" height="3" /><br>

        
            <?php }

mysql_free_result($consulta);

?>


<? if ($c == 0) {?> 

<strong>Aun no hay comentarios, sé el primero en escribir uno!</strong>
<img src="<?php echo $dom ?>/lineanota.gif" height="3" />

<? } ?>


    
    
    
          <form id="form1" name="form1" method="post" action="<? echo $dom;?>/formcomentario.php?IDD=<?php echo $ID ?>">

Escribir un comentario &raquo;<br>



<br />    

              <div align="left">

                <input name="nombre" type="text"  id="nombre" value="nombre"  onFocus="if (this.value == 'nombre') {this.value = '';}" />
<br>
                <textarea name="texto"   onFocus="if (this.value == 'comentario') {this.value = '';}">comentario</textarea>



                  </div>
            

  

            <div align="left"> 
                     
        <?php     if ($comentarios == 'captcha') {
            ?>
            
		    <br />
            <style>
#recaptcha_image,  
#recaptcha_image img   
{  
    width: 300px !important;  
    cursor: pointer;  
}  
#recaptcha_image img:hover  
{  
    position: absolute;  
    width: 300px !important;  
}  
.recaptcha_only_if_image,  
.recaptcha_only_if_audio  
{  
    display: block;  
}  
       </style>     
            <script type="text/javascript">
var RecaptchaOptions = {
theme : 'custom',
custom_theme_widget: 'recaptcha_widget'
};
</script>


<div id="recaptcha_widget" style="display:none">

<div id="recaptcha_image"></div>
<div class="recaptcha_only_if_incorrect_sol" style="color:red">Incorrect please try again</div>

<br>
<br>

INGRESE CAPTCHA: <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
<br>

<div><a href="javascript:Recaptcha.reload()">CAMBIAR</a></div>


</div>

<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=6LdAWMESAAAAAHpz874QmLV5K9eiTJJbr6Pha0Qe">
</script>
<noscript>

<iframe src="http://www.google.com/recaptcha/api/noscript?k=6LdAWMESAAAAAHpz874QmLV5K9eiTJJbr6Pha0Qe"
height="100" width="300" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>



<?php } else {}?>


              <br>
              <input name="button" type="submit" class="Estilo42" id="button" value="Enviar &raquo;" />
           </form>


           
    
    
     <?php };?>
          
    
<?php     } else {};?>
    
    
    
 
 
        
        
        </div>
       
        
    </section>
    <!-- end columns demo -->  
    
      
  </div><!-- #end div #main .wrapper -->


<!-- footer area -->    
<footer>
	<div id="colophon" class="wrapper clearfix">
    	
    </div>
    
    
</footer><!-- #end footer area --> 
<?php include '../google.php';?>

<!-- jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.9.0.min.js">\x3C/script>')</script>

<script defer src="js/flexslider/jquery.flexslider-min.js"></script>

<!-- fire ups - read this file!  -->   
<script src="js/main.js"></script>

</body>
</html>