<script language="javascript"> 

function copia_portapapeles(){ 
   document.f1.campo1.select() 
   window.clipboardData.setData("Text", document.f1.campo1.value); 
} 
</script> <?php  
 $home = $row["home"];
 ?><?php 
 
 if ($fecha_pub = 0) {} else {
 
 $seg_ini = $fechapub - time();
 

$horas = floor($seg_ini/3600);
$minutos = floor(($seg_ini-($horas*3600))/60);
$segundos = $seg_ini-($horas*3600)-($minutos*60);

};
?> 

 

 </p>
 <style type="text/css">
<!--
.Estilo2 {font-size: 10px}
-->
 </style>
 
 
<div style="font-size:10px; font-family:Verdana, Arial, Helvetica, sans-serif; background-color:#FFCC33; width:60px;"> <?php echo $d ?>/<?php echo $m ?>/<?php echo $a ?></div>
      
      <?php 
if ($cat == 0) {} else {

$sql2 = "SELECT * FROM categorias WHERE ID = '$cat'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$cat = $row2["nombre"];

$color_cat = $row2["color"];

?><span class="Estilo2" style="background-color:<?php echo $color_cat ?>"><?php echo $cat ?></span> <?
}

mysql_free_result($consulta2);

}?>
      
      <table width="99%" border="0" bgcolor="<? if ($ver == 'no') { if ($fechapub == 0) { ?>#33CCFF<? } else  {?>#FFFF66<? }; }; ?><?php if ($destacado == "si") {?>#FFC5A8<? };?>" class="Estilo7">


        <tr>


          <td width="49%" rowspan="2" valign="top"><div align="left">
          
           <? if ($ver == 'no') {?> <span style="color: #FFFFFF; background: #666666;">  <? if ($fechapub == 0) { ?> BORRADOR <? } else { ?> <b>PROGRAMADA</b> &raquo; <?php if ($seg_ini <= 0) {echo "Listo!, Esperando Publicacion...";} else { ?>Dentro de <? if ($hora == 0) {} else { echo "$horas horas,"; }; ?>  <? echo "$minutos"; ?> minutos, <? echo "$segundos"; ?> segundos. <? }; };?>&nbsp;<?php echo $fecha ?>&nbsp; </span><br /> <?php };?>
           
           
          <? if ($ver == 'no' and $fechapub == 0){ ?> <a href="publicar_nota_borrador.php?ID=<?php echo $ID ?>"><span style="font-size:28px">PUBLICAR >></span></a> <?php };?>
           <span class="Estilo20"><?php if ($destacado == "si") {?>    <img src="images/150px-EstrellaOro_PPN.svg.png" width="25" height="25" /><?php } else {  };?> - <?php echo $titulo ?></span><br />
          
              <?php if ($foto == NULL) {} else {?>
              <table width="200" border="0">
                <tr>
                  <td rowspan="2"><img src="../<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" width="150"/></td>
                  <td ><a href="poner_marca_de_agua.php?ID=<?php echo $ID ?>"><img border="0" title="PONER MARCA DE AGUA" src="iconomarcadeagua.png" width="70" height="50" /></a></td>
                </tr>
                <tr>
                  <td><a href="eliminar_foto.php?ID=<?php echo $ID ?>&foto=<?php echo $foto ?>&carpetafoto=<?php echo $carpetafoto ?>"><img border="0" title="eliminar foto" src="eliminar_img.jpg" width="70" height="50" /></a></td>
                </tr>
              </table>
                     
              <br />
              <form  method="post" action="form_poner_pie_foto.php">
              <input name="pie_foto" type="text" value="<?php echo $pie_foto ?>"    placeholder="Pie de Foto..."/>
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
              <input name="" type="submit" value="Ok"/>
              </form>
              
              <?php };?>
            
             
           

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



$ID_foto = $row65["ID"];


$foto_2 = $row65["foto"];
?><hr size="1" width="400px" /> 
  <span class="Estilo20">MAS FOTOS:</span><br />

<?


 }
mysql_free_result($consulta65);

?>

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



$ID_foto = $row65["ID"];

$carpetafoto12 = $row65["carpetafoto"];

$foto_2 = $row65["foto"];

?>

<a href="../<?php echo $carpetafoto12 ?>/resize_<?php echo $foto_2 ?>.jpg" rel="lightbox[<?php echo $ID ?>]" title="<?php echo $titulo; ?>" target="_blank"><img src="../timthumb.php?src=../<?php echo $carpetafoto12 ?>/thumbnail_<?php echo $foto_2 ?>.jpg&w=500&q=80" width="66" height="49"  style="border: 2px solid #999999" /></a>  <a href="borrar_foto_nota.php?ID=<?php echo $ID_foto ?>&foto=<?php echo $foto_2 ?>&carpetafoto=<?php echo $carpetafoto ?>">(X)</a>
<?


 }
mysql_free_result($consulta65);

?>



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



$ID_video = $row65["ID"];

$video = $row65["video"];


?>

<div align="left" style="text-align:left;">

<video  width="350px"  controls>
  <source src="<?php echo $video ?>" type="video/mp4">
Su Navegador no Soporta Video</video>
</div>

 <a href="borrar_video.php?ID=<?php echo $ID_video ?>">(BORRRAR VIDEO)</a>
<?


 }
mysql_free_result($consulta65);

?>


<?php 
$sql65 = "SELECT * FROM `fotosnotasfull` WHERE `ID_nota` = '$ID'";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{
$ID_fotoAA = $row65["ID"];
$img = $row65["img"];

?>

<a href="<?php echo $img ?>" rel="lightbox[<?php echo $ID ?>]" title="<?php echo $titulo; ?>" target="_blank"><img src="../timthumb.php?src=<?php echo $img ?>&w=70&q=80" width="70"  style="border: 2px solid #999999" /></a>   <a href="borrar_foto_nota_full.php?ID=<?php echo $ID_fotoAA ?>&img=<?php echo $img ?>">(X)</a>
<?


 }
mysql_free_result($consulta65);

?>

<br />

<?php 

	


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

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))



{

$ID_audio = $row2["ID"];
$titulo11 = $row2["titulo"];
$audio = $row2["mp3"];

?> <hr size="1" width="400px" /> <span class="Estilo20">AUDIO ADJUNTO:</span><br /> <script language=javascript>
function ventanaSecundaria44 (URL){
   window.open(URL,"ventana1","width=420,height=200,scrollbars=NO")
}
  </script>


<br />


<a href="javascript:ventanaSecundaria44('<?php echo $dom ?>/audio1.php?mp3=<?php echo $audio ?>')"><img border="0" src="../AUDIO.gif" /></a>(<a href="borrar_audio.php?ID=<?php echo $ID_audio ?>&audio=<?php echo $audio ?>">BORRAR AUDIO</a>) 
<form id="form2" name="form2" method="post" action="form_titulo_audio.php">
  Titulo Audio
  <input type="text" name="titulo_audio" id="titulo_audio" value="<?php echo $titulo11 ?>" />
  <input name="ID_audio" type="hidden" value="<?php echo $ID_audio ?>" />
  <input type="submit" name="button" id="button" value="Enviar" />
</form>
<br />

<form name="f1"> 


<textarea cols="30" rows="3" name="campo1">
<iframe src="http://reproductor.radiosnet.com.ar/?nombreradio=<?php echo $nombresitio ?>&tituloaudio=<?php echo $titulo11 ?>&audio=<?php echo $audio ?>?mp3=&ID_nota=<?php echo $nota ?>&titulo=<?php echo $titulo11 ?>" width="100%" height="150px"></iframe></textarea>
 <br />

<input type="button" value="Seleccionar Codigo" onclick="copia_portapapeles()"> 
</form> 

<?

 }
mysql_free_result($consulta2);

?>








<?php if ($youtube == NULL) {} else {?> <hr size="1" width="400px" />
<span class="Estilo20">VIDEO ADJUNTO:</span><br />
<object width="150" height="130">
<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="150" height="130"></embed>
            </object>(<a href="poner_video.php?ID=<?php echo $ID ?>">BORRAR VIDEO</a>) <br />
<?php };?>

         
          <img src="personas.png" width="14" alt="visitas" title="visitas" height="14" /><span class="Estilo2">accesos:</span> <?php echo $visitas ?> - <img src="impresiones.png" width="14" alt="impresiones" title="impresiones" height="14" /> <span class="Estilo2">vistas en el home:</span> <span style="color:#999999"><?php echo $impresiones ?></span> <br />
CARGADA POR: <?php echo $user_carga_nota ?></div>
          </div></td>


          <td valign="top" width="20%"><div align="center">


            <?php if ($foto == NULL) {?> 
              <form id="form1" name="form1" method="get" action="../subir_foto_principal.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span>&uArr; FOTO PRINCIPAL</span></button>
            </form>
            <?php } else { };?>
            <form id="form1" name="form1" method="get" action="../subir_mas_fotos.php">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span>&uArr; MAS FOTOS (recortadas)</span></button>
            </form>
            
                    <form id="form1" name="form1" method="get" action="../uploadfotosfull.php">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span>&uArr; MAS FOTOS (en masa)</span></button>
            </form>
     
                <form id="form1" name="form1" method="get" action="../uploadvideos.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span style="font-size:10px">&uArr; SUBIR VIDEO EN SERVIDOR</span></button>
            </form>
            
             <form id="form1" name="form1" method="get" action="poner_video.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span style="font-size:10px;">&uArr; SUBIR VIDEO DE YOUTUBE</span></button>
            </form>
            
            
    <form id="form1" name="form1" method="get" action="poner_audio.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span>&uArr; SUBIR AUDIOS</span></button>
          </form>
           <form id="form1" name="form1" method="get" action="poner_archivos.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span>&uArr; SUBIR ARCHIVOS</span></button>
          </form>
          
                 
            <form id="form1" name="form1" method="get" target="_blank" action="poner_html.php?ID=<?php echo $ID ?>">
                      <input name="ID" type="hidden" value="<?php echo $ID ?>" />
                 <button value="submit" class="submitBtn" title="SIRVE PARA AGREGAR VIDEOS DE FACEBOOK, TWITTER, O CUALQUIER CODIGO PARA EMBEBER"><span>HTML EMBED</span></button>
          </form>
          
          
               <form id="form1" name="form1" method="POST" target="_blank" action="form_asignar_editor.php?ID=<?php echo $ID ?>">
                      <input name="ID" type="hidden" value="<?php echo $ID ?>" />
                 <label>
                      <select name="editor" id="select">
                      
                      <option value="0">Asignar un editor...</option>
                      
                      <?php 


$sql65 = "SELECT * FROM editores ORDER BY nombre";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{


$nombre = $row65["nombre"];
$telefono = $row65["telefono"];
$email = $row65["email"];
$instagram = $row65["instagram"];
$facebook = $row65["facebook"];
$twitter = $row65["twitter"];
$foto = $row65["foto"];
$ID_editor = $row65["ID"];


?>

<option <?php if($editor == $ID_editor){ ?> selected="selected" <?php } ?>value="<?php echo $ID_editor ?>"><?php echo $nombre ?></option>
<?


 }
mysql_free_result($consulta65);

?>
                      
                      </select>
                 </label>
                 <button value="submit" class="submitBtn" title="SIRVE PARA AGREGAR VIDEOS DE FACEBOOK, TWITTER, O CUALQUIER CODIGO PARA EMBEBER"><span>ASIGNAR EDITOR</span></button>
          </form>
      
      
          
           </div></td>
          <td width="9%" valign="top"><div align="center">    <form id="form1" name="form1" method="get" action="editarnota.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
              <button value="submit" class="submitBtn"><span><img src="editar-icono-8216-128.png" width="15" height="15" />EDITAR</span></button>
          </form>
          
    
          
            <form id="form1" name="form1" method="get" action="borrarnota.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="delete1.png" width="15" height="15" />ELIMINAR</span></button>
          </form>
          
    
          <?php if ($destacado == "si") {?> 
          
         
                                      <form id="form1" name="form1" method="get" action="quitar_destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> QUITAR DESTACAR</span></button>
          </form>
          
          
         <? } else { ?>
         
              

<?php $sql444 = "SELECT * FROM notas WHERE destacado = 'si'";
$consulta444 = mysql_query ($sql444);
while ($row444 = mysql_fetch_array($consulta444))
{
$i_d = $i_d + 1;
 }
mysql_free_result($consulta444);

if ($i_d >= 7) { echo "<span style='color:#000000'>LIMITE DE NOTICIAS DESTACADAS</span>" ;} else {

?>
                      
                                <form id="form1" name="form1" method="get" action="destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> DESTACAR</span></button>
          </form>
        
                       
                        
                        <?php }; ?>
          
                        <?php  }; ?>
                        
                        
<?php if ($destacado == "1") {?> 
                                      <form id="form1" name="form1" method="get" action="quitar_destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> QUITAR DESTACAR 1</span></button>
          </form>          
          <? } else { ?>
          
          
              

<?php $i_d1 = 0; $sql444 = "SELECT * FROM notas WHERE destacado = '1'";
$consulta444 = mysql_query ($sql444);
while ($row444 = mysql_fetch_array($consulta444))
{
$i_d1 = $i_d1 + 1;
 }
mysql_free_result($consulta444);

if ($i_d1 >= 7) { echo "LIMITE DE NOTICIAS 1 DESTACADAS" ;} else {

?>
                      
                                <form id="form1" name="form1" method="get" action="destacar_1.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> DESTACAR 1</span></button>
          </form><?php }; ?>
            <?php  }; ?>
                        
                                         
                                         
                                       
                                       
                                       
                                                     
<?php if ($destacado == "2") {?> 
                                      <form id="form1" name="form1" method="get" action="quitar_destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> QUITAR DESTACAR 2</span></button>
          </form>          
          <? } else { ?>
          
          
           

<?php $i_d2 = 0;    $sql444 = "SELECT * FROM notas WHERE destacado = '2'";
$consulta444 = mysql_query ($sql444);
while ($row444 = mysql_fetch_array($consulta444))
{
$i_d2 = $i_d2 + 1;
 }
mysql_free_result($consulta444);

if ($i_d2 >= 7) { echo "LIMITE DE NOTICIAS 2 DESTACADAS" ;} else {

?>
                      
                                <form id="form1" name="form1" method="get" action="destacar_2.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> DESTACAR 2</span></button>
          </form><?php }; ?>
            <?php  }; ?>
                                         
                                         
                                   
                                   
                                                       
                                                     
<?php if ($des_cat == "1") {?> 
                                      <form id="form1" name="form1" method="get" action="quitar_des_cat.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> QUITAR DESTACAR EN CAT</span></button>
          </form>          
          <? } else { ?>
          
          
              
                                <form id="form1" name="form1" method="get" action="destacar_en_cat.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span><img src="images/PN.svg.png" width="19" height="19" /> DESTACAR EN CAT</span></button>
          </form><?php }; ?>
                                                  
                                              
                        
                        
                        
                        
          
             <?php if ($home == 'no') { ?>   <form id="form1" name="form1" method="get" action="poner_home.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span>PONER EN HOME</span></button>
          </form>  <? } else { ?>
                              <form id="form1" name="form1" method="get" action="quitar_home.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="submitBtn"><span>QUITAR DEL HOME</span></button>
          </form>   <?php  }; ?>
          
          
          
                  <form id="form1" name="form1" target="_blank" method="get" action="https://developers.facebook.com/tools/debug/sharing/?q=">
              <input name="q" type="hidden" value="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" />
             <button value="submit" class="submitBtn" title="cuando no comparte bien la noticia tocar aqui"><span class="Estilo2"><img src="square-facebook-512.png" width="15" height="15" /> DEBUGGER
             FACE</span></button>
          </form>
          
<a href="http://www.facebook.com/sharer.php?u=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&t=<?php echo $titulo ?>"  target="_blank">
              <button value="submit" class="submitBtn"><span class="Estilo2"><img src="square-facebook-512.png" width="15" height="15" /> COMPARTIR FACE</span></button>
          </a>
          
             
          
               
<form id="form1" name="form1" method="get" target="_blank" action="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                 <button value="submit" class="submitBtn"><span><img src="Mano_cursor.png" width="14" height="17" /> VER EN EL SITIO</span></button>
          </form>
          
          
          
          </div></td>
        </tr>
        <tr>
          <td width="9%" colspan="2" valign="top" align="center">          </td>
        </tr>
      </table>
<hr size="4" color="#666666"/>

        <p>