diff --git a/contactus.php b/api/contact.php similarity index 100% rename from contactus.php rename to api/contact.php diff --git a/register.php b/api/register.php similarity index 61% rename from register.php rename to api/register.php index 7f4266d..9334dbe 100644 --- a/register.php +++ b/api/register.php @@ -3,7 +3,7 @@ function verifyCaptcha(){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $data = array( - 'secret' => '6LeLxy4UAAAAABClplWLJUjZ1_nhX_-SI7CuNcm8', + 'secret' => '6LesRDsUAAAAAA6t3UgL4U4Foc9njmXX-8HIiLj_', 'response' => $_POST["g-recaptcha-response"] ); $options = array( @@ -64,17 +64,18 @@ $filename = "2021y22"; // validate the variables ====================================================== $data['nombre'] = $_POST['nombre']; $data['apellido'] = $_POST['apellido']; -$data['tipodoc'] = $_POST['doctype']; -$data['nrodoc'] = $_POST['docnro']; -$data['direccion'] = $_POST['dir']; $data['pais'] = $_POST['pais']; $data['ciudad'] = $_POST['ciudad']; -$data['telefono'] = $_POST['tel']; $data['email'] = $_POST['email']; -$data['profesion'] = $_POST['profesion']; -$data['trabaja'] = $_POST['trabaja']; +$data['titulo'] = $_POST['titulo']; +$data['llegada'] = $_POST['bda']; +$data['partida'] = $_POST['eda']; $data['financiacion'] = $_POST['financiacion']; -$data['detallefinan'] = $_POST['detallefinan']; +$data['invitado'] = $_POST['invited']; +$data['carta'] = $_POST['letterinvited']; +$data['roomtype'] = $_POST['roomtype']; +$data['roomate'] = $_POST['roomate']; + if (empty($_POST['nombre'])) $errors['nombre'] = 'Nombre is required.'; @@ -82,32 +83,9 @@ if (empty($_POST['nombre'])) if (empty($_POST['apellido'])) $errors['apellido'] = 'Apellido is required.'; -if (empty($_POST['doctype'])) - $errors['doctype'] = 'No seleccionó un tipo de doc'; - -if (empty($_POST['docnro'])) - $errors['docnro'] = 'No ingreso un documento'; - -if (empty($_POST['dir'])) - $errors['dir'] = 'No ingreso una direccion'; - -if (empty($_POST['pais'])) - $errors['pais'] = 'Ingrese el pais de presedencia'; - -if (empty($_POST['ciudad'])) - $errors['ciudad'] = 'Ingrese ciudad de presedencia'; - -if (empty($_POST['tel'])) - $errors['ciudad'] = 'Telefono de contacto vacio o incorrecto'; - if (empty($_POST['email'])) $errors['email'] = 'E-Mail de contacto vacio o incorrecto'; -if (empty($_POST['profesion'])) - $errors['email'] = 'indique profesion'; - -if (empty($_POST['trabaja'])) - $errors['trabaja'] = 'Indique en el sector que trabaja'; if(empty($_POST['g-recaptcha-response'])){ $errors['recaptcha'] = 'Debe validar el captcha'; } @@ -115,11 +93,6 @@ else if(!verifyCaptcha()){ $errors['recaptcha'] = 'Error en la validación de ReCaptcha'; } -if( !file_exists("2021y22.csv")) - setheaders(); - -// return a response =========================================================== -// if there are any errors in our errors array, return a success boolean of false if ( !empty($errors)) { // if there are items in our errors array, return those errors @@ -128,23 +101,23 @@ if ( !empty($errors)) { } else { $data['success'] = true; - bkpregister(); + //bkpregister(); $fila = $data; registrar($fila); $mail = $data["email"]; $nombre = $data["nombre"] . " " . $data["apellido"]; - $msg = "Hola ". $data["nombre"] ."!\n\n". - "te has registrado al 6to Coloquio Uruguayo de Matemática exitosamente!\n\n". - "Por cualquier consulta escribe a: 6coloquio@cmat.edu.uy\n\n". - "Saludos cordiales,\n\n". - "Comité Organizador, 6to Coloquio Uruguayo de Matemática."; - $headers = 'From: ' . "6coloquio@cmat.edu.uy" . "\r\n" . - 'Reply-To: ' . "6coloquio@cmat.edu.uy" . "\r\n" . + $msg = "Hi ". $data["nombre"] ."!\n\n". + "You have been Successfully registered to the workshop on Groups, Geometry and Dynamics!\n\n". + "For any question, write us to: ggdworkshop@cmat.edu.uy\n\n". + "Regards,\n\n". + "Organizing Commite, GGD Workshop."; + $headers = 'From: ' . "ggdworkshop@cmat.edu.uy" . "\r\n" . + 'Reply-To: ' . "ggdworkshop@cmat.edu.uy" . "\r\n" . 'Content-Type: ' . "text/plain; charset=UTF-8". "\r\n" . 'X-Mailer: PHP/' . phpversion(); - mail($mail, 'Registro confirmado. 6to Coloquio Uruguayo de Matemática', $msg, $headers); + mail($mail, 'Registration confirmation for GGDWorkshop', $msg, $headers); - $data['message'] = 'Registro exitoso'; + $data['message'] = "Registration Successfully!"; } diff --git a/db.php b/db.php deleted file mode 100644 index 6caf2d8..0000000 --- a/db.php +++ /dev/null @@ -1,14 +0,0 @@ -open('test.db'); - } - } - $db = new DB(); - if(!$db){ - echo $db->lastErrorMsg(); - }else{ - echo "Opened database successfully\n"; - } -?> - diff --git a/registration.php b/registration.php index 556ca28..c1161c1 100644 --- a/registration.php +++ b/registration.php @@ -1,14 +1,4 @@ -
@@ -106,8 +96,8 @@ Are you asking for support from the conference?
- - + +
@@ -129,10 +119,10 @@
- +
- +
@@ -142,8 +132,8 @@ Do you need a letter of invitation?
- - + +
diff --git a/style/style.css b/style/style.css index d164c82..9137657 100644 --- a/style/style.css +++ b/style/style.css @@ -353,90 +353,21 @@ div.interest-links h4 a{ width: 134px; padding: 5px;} -.form_settings -{ margin: 15px 0 0 0;} - -.form_settings p -{ - padding: 0 0 4px 0; - -} #registerform .control-label{ text-align: left; } -.form_settings span -{ float: left; - width: 100px; - text-align: left;} - -.form_settings input, .form_settings textarea -{ padding: 5px; - width: 299px; - font: 100% arial; - border: 1px solid #E5E5DB; - background: #FFF; - color: #47433F; +.select2-selection, .select2-selection__rendered, .select2-selection__arrow{ + height:34px!important; + line-height: 34px!important; } -.form_settings p.inline-input input{ - width: 200px; -} -.form_settings select.small{ - width:100px; -} -.form_settings input.radio-input{ - width: 50px; -} - -.form_settings p input[type="radio"]{ - width: 50px; +@media screen and (max-width: 480px) { + .g-recaptcha { + transform:scale(0.87); + transform-origin:0 0; + } } -.form_settings .submit -{ font: 100% arial; - border: 0; - width: 99px; - margin: 0 0 0 212px; - height: 33px; - padding: 2px 0 3px 0; - cursor: pointer; - background: #3B3B3B; - color: #FFF;} - -.form_settings textarea, .form_settings select -{ font: 100% arial; - width: 299px;} - -.form_settings select -{ width: 310px;} - -.form_settings .checkbox -{ margin: 4px 0; - padding: 0; - width: 14px; - border: 0; - background: none;} - -.separator -{ width: 100%; - height: 0; - border-top: 1px solid #D9D5CF; - border-bottom: 1px solid #FFF; - margin: 0 0 20px 0;} - -table -{ margin: 10px 0 30px 0;} - -table tr th, table tr td -{ background: #3B3B3B; - color: #FFF; - padding: 7px 4px; - text-align: left;} - -table tr td -{ background: #E5E5DB; - color: #47433F; - border-top: 1px solid #FFF;} div.map-responsive{ overflow:hidden;