<?php 
include 'sesion.php';?>
 <?php  include '../url_amigable.php';?>
 <?php include 'concha.php';?>
<!DOCTYPE html>
<html lang="es">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<!-- Required meta tags -->

	<meta name="description" content="Panel de Administracion">
	<meta name="author" content="<?php echo $nombresitio ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title><?php echo $nombresitio ?> - Panel de Administracion</title>
  <!--link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'-->
  <link href="https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900&display=swap" rel="stylesheet">
  <link rel="shortcut icon" href="" type="image/x-icon">
	<link rel="apple-touch-icon" href="">

	<!-- Bootstrap CSS -->
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

  <!-- Link to your css file -->
	<link rel="stylesheet" href="">
  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  <script src="../js/jquery.fittext.js"></script>



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

    <style>

        .carousel-cell {
          width: 66%;
          margin-right: 5px;
        }

        .display-flex{
            display: flex;
            justify-content: center;
            align-items: center;
        }

        *{
            border-radius: 0!important;

        }

        body {

            background-position:top center;
            background-repeat: repeat-x;
            background-color:#EBEBEB;
            height:100%;
        }

        .btn, a, h1, h2, h3, h4, h5, h6, b{
          font-family: 'Montserrat', sans-serif;
        }

        .btn, h1, h2, h3, h4, h5, h6 {
          font-weight: 600;
        }

        .navbar {
            position: relative;
        min-height: 50px;
        padding-bottom:  20px;
        /* border: 1px solid transparent; */

        }

      .btn-primary {
        color: #fff!important;
        background-color: #0066FF;
        border-color: #0066FF;
            }

        .page-header{
            margin: 0;
            padding: 1em;
            background-color: #0066FF;
            border: 0;
            text-align:center;
        }

        .page-header h2{

            color: #ffffff;
            font-weight: bold;
        }

        .bloqueAzul{
          /*  background-color: #0066FF;*/
          /* border: 1px solid #e4e4e4;*/
          /*  padding: 1em;*/
            text-align: center;
        }

        .bloqueAzul .div {
          border: 1px solid #e4e4e4;
            background-color: #fff;
        }

        ul{
            list-style: none;
            padding: 0;
        }

        .far{
            color:#0066FF;
        }
        .faso {
            color:#fff;
        }

        .colorAzul h3{
            color:#0066FF;

        }

    </style>

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

</head>

<body>


<? include 'concha.php'; ?>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div style="padding-left:15px;">

<a class="btn btn-outline-primary" href="../uploadfotosfull_galeria_de_medios.php" target="_blank"><i class="fas fa-images"></i> Cargar una Imagen</a>
 |
<a class="btn btn-outline-primary" href="galeria_de_medios_youtube.php" ><i class="fab fa-youtube"></i> Cargar un video de youtube</a>
 |
<a class="btn btn-outline-primary" href="galeria_de_medios_instagram.php" ><i class="fab fa-instagram"></i> Cargar un Post de Instagram</a>
 |
<a class="btn btn-outline-primary" href="galeria_de_medios_facebook.php" ><i class="fab fa-facebook-square"></i> Cargar un Post de Facebook</a>
 |
<a class="btn btn-outline-primary" href="galeria_de_medios_spotify.php" ><i class="fab fa-spotify"></i> Cargar un Audio de Spotify</a>
 |


<br><br>
<input type="submit"  class="btn btn-outline-primary" value="Actualizar Galer&iacute;a >>>" onclick="javascript:window.location.reload();" class="form-control"/><hr>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">

        <script>
            function copiar(id_elemento) {

			  // Crea un campo de texto "oculto"
			  var aux = document.createElement("input");

			  // Asigna el contenido del elemento especificado al valor del campo
                    aux.setAttribute("value", document.getElementById(id_elemento).innerHTML);

                    // A�ade el campo a la p�gina
                    document.body.appendChild(aux);

                    // Selecciona el contenido del campo
                    aux.select();

                    // Copia el texto seleccionado
                    document.execCommand("copy");

                    // Elimina el campo de la p�gina
                    document.body.removeChild(aux);

                    console.log("texto copiado")

                }
        </script>


<HR>


VIDEO CARGADO, <A HREF="galeria_de_medios.php">VOLVER</a>
<?


$codigo = $_POST['codigo'];




$sSQL="INSERT INTO `galeria_de_medios` (`ID`, `url`, `descripcion`, `tipo`, `ID_nota`) VALUES (NULL, '$codigo', '', 'ig', '1');";


$conn->query($sSQL);


?>


</div>            <script src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>
           </body>
           </html>
