<?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';?>

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



<link href="../estilo.css" rel="stylesheet" type="text/css" />
  
<style type="text/css">
<!--
.Estilo44 {
	font-family: 'Oswald', sans-serif;
	font-size: 50px;
	color: #FFFFFF;
}
-->
</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">SORTEOS</div></td>
          </tr>
        </table>
        <br />
        <br />
        <p>&nbsp;</p>
        <form id="form1" name="form1" method="post" action="form_sorteos.php">
          <table width="100%" border="0" cellspacing="10">
            <tr>
              <td width="50%"><div align="right">Titulo Sorteo:</div></td>
              <td width="50%"><label>
                <input name="titulo" type="text" id="textfield" size="50"  />
              </label></td>
            </tr>
            <tr>
              <td colspan="2"><div align="center">Descripción:
                  <br />
                  <textarea class="ckeditor" name="descripcion"></textarea>
              </div></td>
            </tr>
            <tr>
              <td colspan="2"><div align="center">Bases y condiciones:<br />
                <textarea class="ckeditor" name="bases"></textarea>
              </div></td>
            </tr>
            <tr>
              <td colspan="2"><label>
                <div align="center">
                  <input type="submit" name="button" id="button" value="Enviar" />
                </div>
              </label></td>
            </tr>
          </table>
        </form>
        <p>&nbsp;</p>
        <p>SORTEOS CREADOS:</p>
        <p>&nbsp;</p>
     
<?php  $ID = (int)$_GET['ID'];
$sql65 = "SELECT * FROM `registrados_sorteos` WHERE `ID_sorteo` = '$ID'";
$consulta65 = $conn->query($sql65);
while ($row65 = $consulta65->fetch_assoc())
{

$ID = $row65["ID"];

$nombre = $row65["nombre"];
$email = $row65["email"];
$telefono = $row65["telefono"];

$dni = $row65["dni"];
$pregunta = $row65["pregunta"];



echo "Nombre: $nombre <br />


Email: $email <br />


Telefono: $telefono <br />


DNI: $dni <br />


Pregunta: $pregunta <br />

<hr>
";





 }
$consulta65->free_result();

?>

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

</body>
</html>
