<?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'>
<style type="text/css">
<!--


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


-->
</style>


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



<link href="../estilo.css" rel="stylesheet" type="text/css" />
  
<style type="text/css">
<!--
.Estilo44 {
	font-family: 'Oswald', sans-serif;
	font-size: 50px;
	color: #FFFFFF;
}
.Estilo47 {font-size: 24px; }
-->
</style>
</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">PUBLICIDADES FLASH</div></td>
          </tr>
        </table>
        <table width="70%" border="0" cellpadding="7" cellspacing="0">
          <tr>
            <td bgcolor="#00CCCC"><div align="center"><a href="upload_swf.php">CARGAR PUBLICIDAD FLASH</a></div></td>
          </tr>
        </table>
        <p align="center">
          <?php     $tam_ancho = 370;

include('concha.php');
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM publicidades_swf";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_p = $row["ID"];

$swf = $row["swf"];
$carpetafoto = $row["carpetafoto"];



$ancho = $row["ancho"];

$alto = $row["alto"];

$lugar = $row["lugar"];


 
	
	$tam_alto = $alto * $tam_ancho / $ancho;
	
	
	
    
    ?>
          <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
            <param name="src" value="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
            <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="http://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"></embed>
          </object>
          <a href="borrarswf.php?ID=<?php echo $ID ?>" class="Estilo1"><img title="ELIMINAR PUBLICIDADES" border="0" src="elimi.jpg" width="25" height="25" /></a><a href="borrarswf.php?ID=<?php echo $ID ?>" class="Estilo1"></a> <br />
          LUGAR: <?php echo $lugar ?> - <a href="form_quitar_publicidad_flash_lugar.php?ID_i=<?php echo $ID_p ?>">QUITAR DEL LUGAR</a> </p>
        <hr align="center" />
        <p align="center" class="Estilo1">
          <?
	  }
mysql_free_result($consulta);

?>
        </p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
      </div></td>
  </tr>
  </table>

</body>
</html>
