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



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

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



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

  
</head>

<body>



  <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"><p align="left" class="Estilo2">



<br />
<br />


<?php 
include 'concha.php';

$nombre = $_POST['nombre'];
$telefono_e = $_POST['telefono'];
$email_e = $_POST['email'];
$instagram_e = $_POST['instagram'];
$facebook_e = $_POST['facebook'];
$twitter_e = $_POST['twitter'];



 ?>
  
  <?php 

if ($nombre == NULL)  { ?> 
  <div align="center">
  <p><span class="Estilo1">ERROR, NO PUEDE QUEDAR VACIO<br />
        <br />
    </span>
    
      <? exit; }; ?>
    
    
    
      <?



include 'concha.php';





$conn->query($sSQL,"INSERT INTO `editores` (`ID`,`nombre`,`foto`,`telefono`,`email`,`instagram`,`facebook`,`twitter`) VALUES (NULL,'$nombre','$foto','$telefono_e','$email_e','$instagram_e','$facebook_e','$twitter_e');");





?>
  </p>
  <p>&nbsp;</p>
  <p class="Estilo29">EL EDITOR FUE CREADO CORRECTAMENTE</p>
  <hr />        <p align="center" class="Estilo2"><a href="cargar_editor.php">VOLVER</a></td>
  </tr>
  </table>
<script>
setTimeout(function(){ window.history.back() }, 1000);
</script>
</body>
</html>
