<?php include 'sesion.php';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $nombresitio ?> - Panel de Administracion</title>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>

<?php include 'concha.php';?>

<link href="../estilo.css" rel="stylesheet" type="text/css" />
  

</head>

<body>




</script>

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



  
<table width="900" border="0" align="center" cellpadding="4" cellspacing="0">
      <tr>
      <td bgcolor="#F1F2ED"><?php include 'menu.php';?></td>
    </tr>
  
    <tr>
      <td bgcolor="#FFFFFF"><div align="center" class="Estilo41">
       
        <table width="100%" border="0" cellpadding="0" cellspacing="6" bordercolor="#D4D0C8" bgcolor="#0066CC">
          <tr>
            <td><div align="center" class="Estilo44">HERRAMIENTAS</div></td>
          </tr>
        </table>
        <p>&nbsp;</p>
        <p><a href="video_destacado_home.php">VIDEO DESTACADO</a></p>
        <form id="form2" name="form2" method="post" action="form_video_destacado_home.php">
      
        <p>&nbsp;</p>
        <table width="100%" border="0">
          <tr>
            <td width="51%"><div align="right">COPETE:</div></td>
            <td width="49%"><input type="text" name="copete" id="copete" /></td>
          </tr>
          <tr>
            <td><div align="right">TITULO:</div></td>
            <td><input type="text" name="titulo" id="titulo" /></td>
          </tr>
          <tr>
            <td><div align="right">BAJADA:</div></td>
            <td><textarea name="bajada" id="bajada" cols="45" rows="5"></textarea></td>
          </tr>
          <tr>
            <td><div align="right">CODIGO YOUTUBE:</div></td>
            <td><input type="text" name="youtube" id="youtube" /></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" name="button" id="button" value="Enviar" /></td>
          </tr>
        </table>  </form>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>VIDEOS SUBIDOS:</p>
        <p>&nbsp;</p>
   <?
mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$sql = "SELECT * FROM `videos_home` ORDER BY ID";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];
$cat = $row["cat"];
$titulo = $row["titulo"];
$bajada = $row["bajada"];
$video = $row["video"];
$home = $row["home"];

?>

<?php echo $cat ?><br />
<?php echo $titulo ?><br />
 <iframe width="500" height="304" src="https://www.youtube.com/embed/<?php echo $video ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<?php echo $home ?><br />
<a href="seleccionar_video_en_home.php?ID=<?php echo $ID ?>">poner en home</a>


<hr />



<?

}

mysql_free_result($consulta);

?>
</div></td>
  </tr>
  </table>

</body>
</html>
