<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
<title><?php echo $nombresitio ?> - Panel de Administracion</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

<style type="text/css">



body {
	background-image: url(../fondeux.jpg);
}

.Estilo4 {
	/*font-family: "Trebuchet MS";*/
	font-size:13.5px;

}
.Estilo8 {color: #FF0000; font-size: 10px; }
.Estilo23 {font-style: italic}
.Estilo24 {color: #000000}
    
    .Estilo3 {
	/*font-family: "Trebuchet MS";*/
	font-size: 24px;
}

</style>



<script type="text/javascript" src="//recursos.radiosnethosting.com/ckeditor/ckeditor.js"></script>



</head>

<body>




  <script language=javascript>
function ventanaSecundaria (URL){
   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
}
  </script>



  <?

  $N2 = 0;
  include 'concha.php';



$sql = "SELECT * FROM chat WHERE ver = 'no' ";

$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{





$N2 = $N2 + 1;

$m_mensajes = $N2;



}

$consulta->free_result();

  $N = 0;




$sql = "SELECT * FROM comentarios WHERE ver = 'no' ";


$consulta = $conn->query($sql);


while ($row = $consulta->fetch_assoc())


{





$N = $N + 1;


$m_comentarios = $N;


}


$consulta->free_result();



  $N = 0;





$sql = "SELECT * FROM fotosoyentes WHERE ver = 'no' ";


$consulta = $conn->query($sql);


while ($row = $consulta->fetch_assoc())


{





$N = $N + 1;

$m_fotos = $N;



}


$consulta->free_result();



  $N = 0;





$sql = "SELECT * FROM avisos WHERE ver = 'no' ";


$consulta = $conn->query($sql);


while ($row = $consulta->fetch_assoc())


{





$N = $N + 1;

$m_avisos = $N;



}


$consulta->free_result();

$m_tot = $m_mensajes + $m_comentarios + $m_fotos + $m_avisos;
?>
    
<div class="container">
      
    
    
  
    
      <div class="row" style="background-color:#fff;">
          
          
      <nav style="width: 100%;" class="navbar navbar-expand-lg sticky-top navbar-dark bg-primary">
          
          <?php include 'menu2.php'; include "lang_es.php"; ?>
      </nav>
          
          <section class="col-lg-12 col-12" style="background-color:#DDDDDD;">
        
          <div>
              
              <form id="form1" name="form1" method="post" action="formcargarnota.php">
              
              <div class="Estilo4">
                                  
                  <div style="background-color:#CCCCCC;" class="Estilo1">
                      
                      <h2 class="Estilo3">&gt; <?php echo $texto_cargarnota_1 ?></h2>
                    
                    </div>
                                 
               
                  <div class="Estilo1 Estilo23">
                      
                      <div class="Estilo8">
                          
                          <p class="Estilo24">(*) <?php echo $texto_cargarnota_2 ?></p>
                      
                      </div>
                  
                  </div>
                
                  
                <div class="row">
                    
                  <div  bgcolor="#CCCCCC" class="Estilo1 col-lg-2 col-12">
                      
                      <h3 class="Estilo4" style="margin:10px;">
                          
                          <strong><?php echo $texto_cargarnota_3 ?></strong>:
                      
                      </h3>
                    
                    </div>
                    
                  <div class="col-lg-10 col-12" style="background-color:#CCCCCC;">
                      
                      <select name="cat" class="Estilo4 form-control" id="cat5">
                      <option value="0" selected="selected"><?php echo $texto_cargarnota_5 ?></option>
                      <?php include('concha.php');





$sql = "SELECT * FROM categorias ORDER BY nombre";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{

$ID = $row["ID"];

$nombre = $row["nombre"];



?>
                      <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                      <?	



}

$consulta->free_result();





?>
                    </select>
                      
                    <a href="agregar_cat.php"><?php echo $texto_cargarnota_4 ?></a>
                    
                    </div>
                    
                </div>
                  
                <div class="row">
                    
                  <div  bgcolor="#CCCCCC" class="Estilo1 col-lg-2 col-12">
                      
                      <h3  class="Estilo4" style="margin:10px;">
                          
                          <strong>CATEGORIA EXTRA</strong>:
                      
                      </h3>
                    
                    </div>
                    
                   <div class="col-lg-10 col-12" style="background-color:#CCCCCC;">
                      
                      <select name="cat2" class="Estilo4 form-control" id="cat9">
                      <option value="0" selected="selected"><?php echo $texto_cargarnota_5 ?></option>
                      <?php include('concha.php');





$sql = "SELECT * FROM categorias ORDER BY nombre";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{

$ID = $row["ID"];

$nombre = $row["nombre"];



?>
                      <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                      <?	



}

$consulta->free_result();





?>
                    </select>
                    
                    </div>
                    
                </div>
                  
                <div class="row">
                    
                  <div  bgcolor="#CCCCCC" class="Estilo1 col-lg-2 col-12">
                      
                      <h3  class="Estilo4" style="margin:10px;"><strong>CATEGORIA EXTRA</strong>:</h3>
                    
                    </div>
                    
                    
                 <div class="col-lg-10 col-12" style="background-color:#CCCCCC;">
                      
                      <select name="cat3" class="Estilo4 form-control" id="cat8">
                      <option value="0" selected="selected"><?php echo $texto_cargarnota_5 ?></option>
                      <?php include('concha.php');





$sql = "SELECT * FROM categorias ORDER BY nombre";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{

$ID = $row["ID"];

$nombre = $row["nombre"];



?>
                      <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                      <?	



}

$consulta->free_result();





?>
                    </select>
                    
                    </div>
                    
                </div>
                  
                <div class="row">
                    
                  <div  bgcolor="#CCCCCC" class="Estilo1 col-lg-2 col-12">
                      
                      <h3  class="Estilo4" style="margin:10px;"><strong>CATEGORIA EXTRA</strong>:</h3>
                    
                    </div>
                    
                 <div class="col-lg-10 col-12" style="background-color:#CCCCCC;">
                      
                      <select name="cat4" class="Estilo4 form-control" id="cat7">
                      <option value="0" selected="selected"><?php echo $texto_cargarnota_5 ?></option>
                      <?php include('concha.php');



$sql = "SELECT * FROM categorias ORDER BY nombre";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{

$ID = $row["ID"];

$nombre = $row["nombre"];



?>
                      <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                      <?	



}

$consulta->free_result();





?>
                    </select>
                    
                    </div>
                    
                </div>
                  
                <div class="row">
                    
                  <div  bgcolor="#CCCCCC" class="Estilo1 col-lg-2 col-12">
                      
                      <h3  class="Estilo4" style="margin:10px;"><strong>CATEGORIA EXTRA</strong>:</h3>
                    
                    </div>
                    
                  <div class="col-lg-10 col-12" style="background-color:#CCCCCC;">
                      
                      <select name="cat5" class="Estilo4 form-control" id="cat5">
                      <option value="0" selected="selected"><?php echo $texto_cargarnota_5 ?></option>
                      <?php include('concha.php');





$sql = "SELECT * FROM categorias ORDER BY nombre";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{

$ID = $row["ID"];

$nombre = $row["nombre"];



?>
                      <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                      <?	



}

$consulta->free_result();





?>
                    </select>
                    
                    </div>
                    
                </div>
                  
                <br>
                 
                <div class="row">
                    
                  <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-2 col-12">
                      
                      <h3  class="Estilo4">
                          
                          <strong><?php echo $texto_cargarnota_6 ?>:</strong>
                      
                      </h3>
                    
                    </div>
                    
                   <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-10 col-12">
                       
                       <div class="form-check">  
                <input class="form-check-input" type="checkbox" name="publicar" id="publicar" value="ahora" checked="checked" />
                       
                       <label class="form-check-label" for="publicar">
                          <?php echo $texto_cargarnota_7 ?>
                           
                        </label>
                      </div>
                       
                   <div class="form-check">
                   
                <input class="form-check-input" type="checkbox" name="publicar" id="publicar2" value="programada" />
                  
                       <label class="form-check-label" for="publicar2">
    <?php echo $texto_cargarnota_8 ?>:
  </label>
                  </div>      
                       
                  
                       <div class="row">
    
                      <div class="col-4 col-lg-2">
                      
                     <select name="D" class="Estilo41 form-control" id="D">
                      <?php	  
  $D1 = date('d');
  $i = 0;
  while($i <= 30) { $i += 1;
?>
                      <option  <?php if ($D1 == $i) {?> selected="selected" <? } else {};?>><?php echo $i ?></option>
                      <? } ?>
                    </select>
                 
                      
                      </div>
                      
                      <div class="col-4 col-lg-2">
                      
                      <select name="M" class="Estilo41 form-control" id="M">
                        <?php	  
  $M1 = date('m');
  $i = 0;
  while($i <= 11) { $i += 1;
?>
                        <option  <?php if ($M1 == $i) {?> selected="selected" <? } else {};?>><?php echo $i ?></option>
                        <? } ?>
                      </select>
                 
                      
                      </div>
                      
                      <div class="col-4 col-lg-2">
                      
                       <select name="A" class="Estilo41 form-control" id="A">
                        <?php	  
  $A1 = date('Y');
  $i = 2008;
  while($i <= 2019) { $i += 1;
?>
                        <option  <?php if ($A1 == $i) {?> selected="selected" <? } else {};?>><?php echo $i ?></option>
                        <? } ?>
                      </select>
                 
                      
                      </div>
                      
                      <div class="col-4 col-lg-2">
                      
                      <select tabindex="7" class="Estilo41 form-control" name="hora" id="hora">
<?php
for($i=0; $i < 24; $i++){
$i = str_pad((int) $i,2,"0",STR_PAD_LEFT);

?>
<option value="<?=$i?>"><?=$i?></option>
<?php 
}
?>
</select>

                      
                      </div>
                      
                      <div class="col-4 col-lg-2">
                      
                      <select tabindex="9" class="Estilo41 form-control" name="minuto" id="minuto">
<?php
for($j=0; $j < 60; $j++){
$j = str_pad((int) $j,2,"0",STR_PAD_LEFT);
?>

<option value="<?=$j?>"><?=$j?></option>
<?php 
}
?>   </select>                   
                 
                      
                      </div>
                      
                      <div class="col">
                      
                      <h3>hs.</h3>
                      
                      </div>
                      
                
                       </div>
                  
                  
                      
                     
                    
 -
                
                   
                    </div>
                    
                    
                </div>
                  
                <br> 
     
                <div class="row">
                    
                  <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-12 col-12">
                      
                     <h6> RECOMENDAMOS UTILIZAR SIEMPRE EL MISMO NUMERO "APROXIMADO" DE CARACTERES PARA LOS TITULOS Y  BAJADAS DE TODAS LAS NOTICIAS CARGADAS. 
DE ESTA MANERA SE LOGRA UN DISEÑO MUCHO MAS ARMÓNICO A LA HORA DE MOSTRAR LAS NOTICIAS.</h6>
                      
                    
                    </div>
                    
                </div>
                  
                <br>
                  
                <div class="row">
                    
                  <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-2 col-12">
                      
                      <h3  class="Estilo4">
                          
                          <strong><?php echo $texto_cargarnota_9 ?></strong>:
                      
                      </h3>
                    
                    </div>
                    
                  
                    
                  <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-10 col-12">
                      
                      <label>
                    <input name="titulo" type="text" class="Estilo1 form-control" id="titulo" size="70" />
                    <span class="Estilo8">(*)</span>
                      
                      </label>
                      
                      
                      
                   <p> CANTIDAD DE CARACTERES RECOMENDADA PARA EL TITULO: <strong>50</strong></p>
                      
                      <p>CARACTERES DE TITULO</p>
                    
                    </div>
                </div>
                  
                <br>
                  
                <div class="row">
                    
                  <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-2 col-12">
                  
                      <h3 class="Estilo4">
                          
                          <strong><?php echo $texto_cargarnota_10 ?></strong>
                      
                      </h3>
                </div>
                    
                  <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-10 col-12">
                  
                        
                  <td valign="top" class="Estilo1">
                      
                      <div align="right"></div>
                        
                        </td>
                        
                  <td>
                      
                      <textarea name="bajada" class="Estilo1 form-control" id="comment" ></textarea><span class="Estilo8">(*)</span>
                    <br />
                  
                              
                  CANTIDAD DE CARACTERES RECOMENDADA PARA LA BAJADA: <B>140</B>
                  <br />


                    <br />
                    <div id="contador" style="font-size:19px;"></div>CARACTERES DE BAJADA</td>
                        
                </div>
                
                    
                  </div>
                  
                  <br>
                  
                <div class="row">
                  
                <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-2 col-12">
                  
                      <h3 class="Estilo4">
                          
                          <strong><?php echo $texto_cargarnota_11 ?></strong>
                      
                      </h3>
                </div>
                  
               <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-10 col-12">
                  <textarea name="texto" class="ckeditor form-control" id="texto"></textarea>
                </div>
                      
                </div>
                  
                  <br>
                  
                <div class="row">
                  
                <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-2 col-12">
                      
                      <h3 class="Estilo4">
                      
                      <strong>GALERIA DE MEDIOS:</strong>
                    
                    </h3>
                    
                    </div>
                    
                  <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-10 col-12">
                      
                      <a href="../uploadfotosfull_galeria_de_medios.php" target="_blank">CARGAR UNA IMAGEN NUEVA</a>
                      
                      <br />
                      
                      <iframe src="galeria_de_medios.php" width="100%" frameborder="0"></iframe>
                    
                    </div>
                    
                </div>
                  
                  <br>
                  
               
                  
                <div style="background-color:#CCCCCC;" class="row">
                    
                     <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-12 col-12">
                  
                      <h6 class="">
                      
                      <?php echo $texto_cargarnota_13 ?>
                    
                    </h6>
                         
                    </div>
                    
                  </div>
                  
                   <br>
                  
                   <div style="background-color:#CCCCCC;" class="row">
                   
                     <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-2 col-12">
                  <h3 class="Estilo4">
                      
                      <strong>TAGS:</strong>
                   
                   </h3>
                         
                   </div>
                    
                   <div style="background-color:#CCCCCC;" class="Estilo1 col-lg-10 col-12">
                       
                       <div class="form-row">
                       
                           <div class="col">
                           <p><?php echo $texto_cargarnota_14 ?></p>
                           </div>
                       
                       </div>
                       
                       <div class="form-row" style="margin-bottom:15px;">
    
                           <div class="col">
                           <input class="form-control" name="tag1" type="text" id="tag1" />
                           </div>
                         <div class="col">
                           <input class="form-control" name="tag2" type="text" id="tag2" />
                           </div>
                         <div class="col">
                           <input class="form-control" name="tag3" type="text" id="tag3"  />
                           </div>
                         <div class="col">
                           <input class="form-control" name="tag4" type="text" id="tag4" />
                           </div>
                           
                         <div class="col">
                           <input class="form-control" name="tag5" type="text" id="tag5" />
                           </div>
                           
                         
                       
                       </div>
                       
                      
                      
                    
                   </div>
                   
                </div>
               
                  
                  <br>
                  
                <div class="row">
                  
                <div style="background-color:#CCCCCC;text-align:center;" class="Estilo1 col-lg-12 col-12">
                      
                    
                          
                        <button name="button" type="submit" class="btn btn-primary" id="button" value="<?php echo $texto_cargarnota_15 ?>"><?php echo $texto_cargarnota_15 ?></button>
                        
                        <button name="button" type="submit" class="btn btn-primary" id="button2" value="<?php echo $texto_cargarnota_16 ?>"><?php echo $texto_cargarnota_16 ?></button>
                  
                   
                    
                    </div>
                    
                </div>
                  
              </div>
              
          </form>
            
            </div>
        
      </section>
          
<section class="col-lg-12 col-12" style="text-align:center;">
    
    <br />
            <br />
          <a class="btn btn-primary" href="index.php"><?php echo $texto_cargarnota_17 ?></a> 
          <br />
            <br />
          </section>
        
        </div>
  
  </div>

<script type="text/javascript">
$(document).ready(function(){

    var max_chars = 0;

    $('#max').html(max_chars);

    $('#comment').keyup(function() {
        var chars = $(this).val().length;
        var diff = max_chars + chars;
        $('#contador').html(diff);   
    });
});

</script>

<script type="text/javascript">
$(document).ready(function(){

    var max_chars = 0;

    $('#max').html(max_chars);

    $('#titulo').keyup(function() {
        var chars = $(this).val().length;
        var diff = max_chars + chars;
        $('#contador1').html(diff);   
    });
});
    </script>
    
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>

</body>
</html>