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


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


-->
</style>


<?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">
      
    
    
    
    

<style type="text/css">


<!--


.Estilo1 {


	font-family: Verdana, Arial, Helvetica, sans-serif;


	font-size: 14px;


}


.Estilo2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; }


-->


</style>


<p align="center" class="Estilo2"><span class="Estilo2 Estilo3"><?php echo $nombresitio ?> - Panel</span></p>


<p align="center" class="Estilo1">NOTAS<br>


</p>


<table width="893" border="0" align="center">


  <tr>


    <td valign="top" width="252"  bgcolor="#C3C3C3" class="Estilo1"><p><a href="newsletter.php">VOLVER AL NEWSLETTER</a> &gt;


        <br>


        </p>
      <p align="center"><br>


        <br>
      </p>
    </td>


    <td bgcolor="#DDDDDD" width="631"><p>&nbsp;</p>
    <hr />

     <form id="form1" name="form1" method="post" action="form_newsletter_lista.php">
      <p>AGREGAR UN CORREO     </p>
      <p>
        NOMBRE:
        <input type="text" name="nombre" id="nombre" />
        <br />
        <br />
        e-mail:
        <input type="text" name="email" id="email" />
      </p>
      <p>
        <input type="submit" name="button" id="button" value="Enviar" />
      </p>
 
      </form>
      <hr />
      <p>
        <?


include('concha.php');


mysql_connect ("$host", "$usuario", "$contra");


mysql_select_db ("$basedatos");





$sql = "SELECT * FROM newsletter ORDER BY nombre desc";





$consulta = mysql_query ($sql);


while ($row = mysql_fetch_array($consulta))


{


$ID = $row["ID"];


$nombre = $row["nombre"];


$email = $row["email"];



?>
        
        
      </p>
      <table width="99%" border="0" class="Estilo1">


        <tr>


          <td width="43%"><?php echo $nombre  ?></td>
          <td width="51%"><?php echo $email ?></td>
          <td width="6%"><a href="eliminar_newsletter.php?ID=<?php echo $ID ?>"><img src="elimi.jpg" width="22" height="25" /></a></td>
        </tr>
      </table>


      <hr />


      <?














}


mysql_free_result($consulta);


?></td>


  </tr>


</table>

    
    
        </td>
  </tr>
  </table>

</body>
</html>

