<?php session_start(); ?>
<!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" />
  <meta name="robots"
        content="all" />
  <meta name="generator"
        content="RapidWeaver" />
  <meta name="generatorversion"
        content="3.6.5 (3.6.5)" />

  <title>Contacto</title>
  <link rel="stylesheet"
        type="text/css"
        media="screen"
        href="../../rw_common/themes/aqualicious/styles.css" />
  <link rel="stylesheet"
        type="text/css"
        media="print"
        href="../../rw_common/themes/aqualicious/print.css" />
  <link rel="stylesheet"
        type="text/css"
        media="handheld"
        href="../../rw_common/themes/aqualicious/handheld.css" />
  <link rel="stylesheet"
        type="text/css"
        media="screen"
        href=
        "../../rw_common/themes/aqualicious/css/styles/graphite.css" />
        
  <link rel="stylesheet"
        type="text/css"
        media="screen"
        href=
        "../../rw_common/themes/aqualicious/css/sidebar/sidebar_right.css" />
  <link rel="stylesheet"
        type="text/css"
        media="screen"
        href=
        "../../rw_common/themes/aqualicious/css/font/original.css" />
        
  <link rel="stylesheet"
        type="text/css"
        media="screen"
        href=
        "../../rw_common/themes/aqualicious/css/background/grey.css" />
        
  <link rel="stylesheet"
        type="text/css"
        media="screen"
        href=
        "../../rw_common/themes/aqualicious/css/width/variable.css" />
        
<script type="text/javascript"
      src="../../rw_common/themes/aqualicious/javascript.js">
</script>
</head>

<body>
  <div id="gradient"></div>

  <div id="navcontainer">
    <!-- Start Navigation -->

    <ul>
      <li><a href="../../index.html"
         rel="self">Index</a></li>

      <li><a href="../../page0/index.html"
         rel="self">Blog</a></li>

      <li><a href="../../page3/index.html"
         rel="self">Información</a></li>

      <li><a href="../../page12/index.html"
         rel="self">Respuestas</a></li>

      <li><a href="../../page15/index.html"
         rel="self">E.N.E.M.</a></li>

      <li><a href="../../page13/index.html"
         rel="self">Descargas</a></li>

      <li>
        <a href="../../page4/index.html"
            rel="self"
            class="currentAncestor">Contacto</a>

        <ul>
          <li><a href="index.php"
             rel="self"
             id="current"
             name="current">Contacto</a></li>

          <li><a href="../../page4/page1/index.php"
             rel="self">Suscripción</a></li>

          <li><a href="../../page4/page8/index.html"
             rel="self">Coordinadores</a></li>
        </ul>
      </li>

      <li><a href="../../page9/index.html"
         rel="self">Links</a></li>

      <li><a href="../../page16/index.html"
         rel="self">Historial</a></li>
    </ul>
  </div><!-- End navigation -->

  <div id="container">
    <!-- Start container -->

    <div id="pageHeader">
      <!-- Start page header -->

      <h1>A.N.E.M.</h1>

      <h2>Asociación Nacional de Estudiantes de Matemáticas</h2>
    </div><!-- End page header -->

    <div id="sidebarContainer">
      <!-- Start Sidebar wrapper -->

      <div id="sidebar">
        <!-- Start sidebar content -->

        <h1 class="sideHeader"></h1><!-- Sidebar header -->

        <br />
        <br />
        <!-- sidebar content you enter in the page inspector -->
         <!-- sidebar content such as the blog archive links -->
      </div><!-- End sidebar content -->
    </div><!-- End sidebar wrapper -->

    <div id="contentContainer">
      <!-- Start main content wrapper -->

      <div id="content">
        <!-- Start content -->

        <div class="contentSpacer"></div>
        <!-- this makes sure the content is long enough for the design -->
        <?php
        if(!array_key_exists('formMessage', $_SESSION))
        $_SESSION['formMessage'] = "";
        if(!array_key_exists('form_element0', $_SESSION))
        $_SESSION['form_element0'] = "";
        if(!array_key_exists('form_element1', $_SESSION))
        $_SESSION['form_element1'] = "";
        if(!array_key_exists('form_element2', $_SESSION))
        $_SESSION['form_element2'] = "";
        if(!array_key_exists('form_element3', $_SESSION))
        $_SESSION['form_element3'] = "";
        ?>

        <div class="message-text">
          <?php
          if (!$_SESSION['formMessage']) { 
          echo 'Formulario inactivo temporalmente.<br /><br />Disculpen las molestias.';
          } else {
           echo $_SESSION['formMessage'];
           }
           ?>
        </div>
        <br />

        <form action="./files/mailer.php"
              method="post"
              enctype="multipart/form-data">
          <label>Nombre</label> *
          <br />
          <input class="form-input-field"
                type="text"
                value="<?php echo $_SESSION['form_element0']; ?>"
                name="form_element0"
                size="40" />
          <br />
          <br />
          <label>Correo electrónico</label> *
          <br />
          <input class="form-input-field"
                type="text"
                value="<?php echo $_SESSION['form_element1']; ?>"
                name="form_element1"
                size="40" />
          <br />
          <br />
          <label>Motivo</label> *
          <br />
          <input class="form-input-field"
                type="text"
                value="<?php echo $_SESSION['form_element2']; ?>"
                name="form_element2"
                size="40" />
          <br />
          <br />
          <label>Mensaje</label> *
          <br />
          <textarea class="form-input-field"
                name="form_element3"
                rows="8"
                cols="38">
<?php echo $_SESSION['form_element3']; ?>
</textarea>
          <br />
          <br />
          <input class="form-input-button"
                type="reset"
                name="resetButton"
                value="Borrar información" /> <input class=
                "form-input-button"
                type="submit"
                name="submitButton"
                value="Enviar" />
        </form><?php session_destroy(); ?><?php
        if (!$_SESSION['formMessage']) { 
        echo 'Gracias por su consulta.';
        } else {
         echo $_SESSION['formMessage'];
         }
         ?>

        <div class="clear"></div>

        <div class="clearer"></div>
      </div><!-- End content -->
    </div><!-- End main content wrapper -->

    <div class="clearer"></div>

    <div id="footer">
      <!-- Start Footer -->

      <div id="breadcrumbcontainer">
        <!-- Start the breadcrumb wrapper -->

        <ul>
          <li><a href=
          "../../index.html">Index</a>&nbsp;&gt;&nbsp;</li>

          <li><a href=
          "../../page4/index.html">Contacto</a>&nbsp;&gt;&nbsp;</li>

          <li><a href="index.php">Contacto</a>&nbsp;&gt;&nbsp;</li>
        </ul>
      </div><!-- End breadcrumb -->

      <p><a href="../../page17/page17.html#autor">Copyright</a></p>
    </div><!-- End Footer -->
  </div><!-- End container -->
</body>
</html>
