Encara bastante el bootstrap y procesa el form por php
This commit is contained in:
parent
afa582e549
commit
e040678301
46
contact-old.html
Normal file
46
contact-old.html
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>6to Coloquio Uruguayo de Matémática</title>
|
||||||
|
<meta name="description" content="website description" />
|
||||||
|
<meta name="keywords" content="website keywords, website keywords" />
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||||
|
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
||||||
|
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
|
<script type="text/javascript" src="js/app.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="main">
|
||||||
|
<header id="header"></div>
|
||||||
|
<div id="site_content" class="container">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div id="content" class="col-xs-12 col-sm-8">
|
||||||
|
<h1>Contáctenos</h1>
|
||||||
|
<form id="contactform" action="contact.php" method="post">
|
||||||
|
<div class="form_settings">
|
||||||
|
<p><span>Nombre</span><input class="contact" type="text" name="nombre" value="" required/></p>
|
||||||
|
<p><span>Email:</span><input class="contact" type="email" name="email" value="" required/></p>
|
||||||
|
<p><span>Mensage</span><textarea class="contact textarea" rows="8" cols="50" name="mensage" required></textarea></p>
|
||||||
|
<p style="padding-top: 15px"><span> </span><input class="submit" type="submit" name="contact_submitted" value="submit" /></p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<br/>
|
||||||
|
<div id="statusmsg" class="alert alert-success">
|
||||||
|
<strong>Success!</strong> Indicates a successful or positive action.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="sidebar" class="sidebar col-xs-12 col-sm-4"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<footer id="footer">
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
56
contact.html
56
contact.html
@ -2,34 +2,50 @@
|
|||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>6to Coloquio Uruguayo de Matémática-Contacto</title>
|
<title>6to Coloquio Uruguayo de Matémática</title>
|
||||||
<meta name="description" content="website description" />
|
<meta name="description" content="website description" />
|
||||||
<meta name="keywords" content="website keywords, website keywords" />
|
<meta name="keywords" content="website keywords, website keywords" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">-->
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||||
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
||||||
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
||||||
<!-- Latest compiled and minified JavaScript -->
|
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" src="js/app.js"></script>
|
<script type="text/javascript" src="js/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div id="header" class="row"></div>
|
<header id="header"></div>
|
||||||
<div id="site_content" class="container">
|
<div id="site_content" class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="sidebar" class="col-xs-12 col-sm-4"></div>
|
|
||||||
<div id="content" class="col-xs-12 col-sm-8">
|
<div id="content" class="col-xs-12 col-sm-8">
|
||||||
<h1>Contáctenos</h1>
|
<h1>Contáctenos</h1>
|
||||||
<form id="contactform" action="contact.php" method="post">
|
<form id="contactform" action="contact.php" method="post" class="form-horizontal">
|
||||||
<div class="form_settings">
|
<div class="form-group">
|
||||||
<p><span>Nombre</span><input class="contact" type="text" name="nombre" value="" required/></p>
|
<label class="control-label col-sm-2" for="nombre">Nombre:</label>
|
||||||
<p><span>Email:</span><input class="contact" type="email" name="email" value="" required/></p>
|
<div class="col-sm-8">
|
||||||
<p><span>Mensage</span><textarea class="contact textarea" rows="8" cols="50" name="mensage" required></textarea></p>
|
<input type="text" class="form-control" name="nombre" id="nombre" placeholder="Juan Perez" required>
|
||||||
<p style="padding-top: 15px"><span> </span><input class="submit" type="submit" name="contact_submitted" value="submit" /></p>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-sm-2" for="email">Email:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input type="email" class="form-control" name="email" id="email" placeholder="mail@example.com" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-sm-2" for="mensage">Mensaje:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea class="form-control" rows="5" name="mensage"
|
||||||
|
id="mensaje" placeholder="Los contacto por...." required></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-offset-2 col-sm-8 text-right">
|
||||||
|
<button type="submit" class="btn btn-primary">Enviar</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<br/>
|
<br/>
|
||||||
@ -37,12 +53,12 @@
|
|||||||
<strong>Success!</strong> Indicates a successful or positive action.
|
<strong>Success!</strong> Indicates a successful or positive action.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="sidebar" class="sidebar col-xs-12 col-sm-4"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<footer id="footer">
|
||||||
<p><a href="index.html">Home</a> | <a href="examples.html">Examples</a> | <a href="page.html">A Page</a> | <a href="another_page.html">Another Page</a> | <a href="contact.html">Contact Us</a></p>
|
|
||||||
<p>Copyright © night_sky_2 | <a href="http://validator.w3.org/check?uri=referer">HTML5</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.html5webtemplates.co.uk">Website templates</a></p>
|
</footer>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
31
index.html
31
index.html
@ -7,33 +7,22 @@
|
|||||||
<meta name="keywords" content="website keywords, website keywords" />
|
<meta name="keywords" content="website keywords, website keywords" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">-->
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||||
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
||||||
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
||||||
<!-- Latest compiled and minified JavaScript -->
|
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" src="js/app.js"></script>
|
<script type="text/javascript" src="js/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div id="header" class="row"></div>
|
<header id="header"></div>
|
||||||
<div id="site_content" class="container">
|
<div id="site_content" class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div id="sidebar" class="sidebar col-xs-12 col-sm-4"></div>
|
|
||||||
<div id="content" class="col-xs-12 col-sm-8">
|
<div id="content" class="col-xs-12 col-sm-8">
|
||||||
<h1><strong>Bienvenidos al 6º Coloquio Uruguayo de Matemática 2017</strong></h1>
|
<h1><strong>Bienvenidos al 6º Coloquio Uruguayo de Matemática 2017</strong></h1>
|
||||||
<!--<p>This standards compliant, simple, fixed width website template is released as an 'open source' design (under a <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution 3.0 Licence</a>), which means that you are free to download and use it for anything you want (including modifying and amending it). All I ask is that you leave the 'design from HTML5webtemplates.co.uk' link in the footer of the template, but other than that...</p>
|
|
||||||
<p>This template is written entirely in <strong>HTML5</strong> and <strong>CSS</strong>, and can be validated using the links in the footer.</p>
|
|
||||||
<p>You can view more free HTML5 web templates <a href="http://www.html5webtemplates.co.uk">here</a>.</p>
|
|
||||||
<p>This template is a fully functional 5 page website, with an <a href="examples.html">examples</a> page that gives examples of all the styles available with this design.</p>
|
|
||||||
<h2>Browser Compatibility</h2>
|
|
||||||
<p>This template has been tested in the following browsers:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Internet Explorer 8</li>
|
|
||||||
<li>FireFox 3</li>
|
|
||||||
<li>Google Chrome 13</li>
|
|
||||||
</ul>-->
|
|
||||||
|
|
||||||
<h2>Comité organizador</h2>
|
<h2>Comité organizador</h2>
|
||||||
<ul>
|
<ul>
|
||||||
@ -43,13 +32,13 @@
|
|||||||
<li>Ezequiel Maderna</li>
|
<li>Ezequiel Maderna</li>
|
||||||
<li>Martín Reiris</li>
|
<li>Martín Reiris</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="sidebar" class="sidebar col-xs-12 col-sm-4"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<footer id="footer">
|
||||||
<p><a href="index.html">Home</a> | <a href="examples.html">Examples</a> | <a href="page.html">A Page</a> | <a href="another_page.html">Another Page</a> | <a href="contact.html">Contact Us</a></p>
|
|
||||||
<p>Copyright © night_sky_2 | <a href="http://validator.w3.org/check?uri=referer">HTML5</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.html5webtemplates.co.uk">Website templates</a></p>
|
</footer>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -12,9 +12,14 @@ function showmsg(msgTxt,ok){
|
|||||||
$("#statusmsg").show();
|
$("#statusmsg").show();
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
alert(window.location.pathname);
|
||||||
$("#statusmsg").hide();
|
$("#statusmsg").hide();
|
||||||
$("#header").load("snippets/header.html");
|
$("#header").load("snippets/header.html");
|
||||||
|
$("#footer").load("snippets/footer.html");
|
||||||
$(".sidebar").load("snippets/sidebar.html");
|
$(".sidebar").load("snippets/sidebar.html");
|
||||||
|
$("#menu li a").click(function(){
|
||||||
|
$(this).addClass("selected").siblings().removeClass("selected");
|
||||||
|
});
|
||||||
$('#contactform').submit(function(event){
|
$('#contactform').submit(function(event){
|
||||||
$("#statusmsg").hide();
|
$("#statusmsg").hide();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -2,28 +2,25 @@
|
|||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>6to Coloquio Uruguayo de Matémática-Registro</title>
|
<title>6to Coloquio Uruguayo de Matémática</title>
|
||||||
<meta name="description" content="website description" />
|
<meta name="description" content="website description" />
|
||||||
<meta name="keywords" content="website keywords, website keywords" />
|
<meta name="keywords" content="website keywords, website keywords" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">-->
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||||
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
||||||
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
||||||
<!-- Latest compiled and minified JavaScript -->
|
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
<script type="text/javascript" src="js/app.js"></script>
|
<script type="text/javascript" src="js/app.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div id="header" class="row"></div>
|
<header id="header"></div>
|
||||||
<div id="site_content" class="container">
|
<div id="site_content" class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="sidebar" class="col-xs-12 col-sm-4"></div>
|
|
||||||
<div id="content" class="col-xs-12 col-sm-8">
|
<div id="content" class="col-xs-12 col-sm-8">
|
||||||
<h1>Registrarse</h1>
|
<h1>Registrarse</h1>
|
||||||
<form id="registerform" action="register.php" method="post">
|
<form id="registerform" action="register.php" method="post">
|
||||||
<div class="form_settings">
|
<div class="form_settings">
|
||||||
@ -78,12 +75,12 @@
|
|||||||
<strong>Success!</strong> Indicates a successful or positive action.
|
<strong>Success!</strong> Indicates a successful or positive action.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="sidebar" class="sidebar col-xs-12 col-sm-4"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<footer id="footer">
|
||||||
<p><a href="index.html">Home</a> | <a href="examples.html">Examples</a> | <a href="page.html">A Page</a> | <a href="another_page.html">Another Page</a> | <a href="contact.html">Contact Us</a></p>
|
|
||||||
<p>Copyright © night_sky_2 | <a href="http://validator.w3.org/check?uri=referer">HTML5</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.html5webtemplates.co.uk">Website templates</a></p>
|
</footer>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
109
register.php
109
register.php
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
// process.php
|
|
||||||
|
|
||||||
$errors = array(); // array to hold validation errors
|
$errors = array(); // array to hold validation errors
|
||||||
$data = array(); // array to pass back data
|
$data = array(); // array to pass back data
|
||||||
@ -12,74 +11,76 @@ function setheaders() {
|
|||||||
fputcsv($fp,$cabezal);
|
fputcsv($fp,$cabezal);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
function registrar($fila){
|
|
||||||
$fp = fopen('registro.csv', 'w');
|
function registrar($fila) {
|
||||||
|
$fp = fopen('registro.csv', 'a');
|
||||||
fputcsv($fp,$fila);
|
fputcsv($fp,$fila);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// validate the variables ======================================================
|
// validate the variables ======================================================
|
||||||
// if any of these variables don't exist, add an error to our $errors array
|
$data['nombre'] = $_POST['nombre'];
|
||||||
$data['nombre'] = $_POST['nombre'];
|
$data['apellido'] = $_POST['apellido'];
|
||||||
$data['apellido'] = $_POST['apellido'];
|
$data['tipodoc'] = $_POST['doctype'];
|
||||||
$data['tipodoc'] = $_POST['doctype'];
|
$data['nrodoc'] = $_POST['docnro'];
|
||||||
$data['nrodoc'] = $_POST['docnro'];
|
$data['direccion'] = $_POST['dir'];
|
||||||
$data['direccion'] = $_POST['dir'];
|
$data['pais'] = $_POST['pais'];
|
||||||
$data['pais'] = $_POST['pais'];
|
$data['ciudad'] = $_POST['ciudad'];
|
||||||
$data['ciudad'] = $_POST['ciudad'];
|
$data['telefono'] = $_POST['tel'];
|
||||||
$data['telefono'] = $_POST['tel'];
|
$data['email'] = $_POST['email'];
|
||||||
$data['email'] = $_POST['email'];
|
$data['profesion'] = $_POST['profesion'];
|
||||||
$data['profesion'] = $_POST['profesion'];
|
$data['financiacion'] = $_POST['financiacion'];
|
||||||
$data['financiacion'] = $_POST['financiacion'];
|
$data['detallefinan'] = $_POST['detallefinan'];
|
||||||
$data['detallefinan'] = $_POST['detallefinan'];
|
|
||||||
|
|
||||||
if (empty($_POST['nombre']))
|
|
||||||
$errors['nombre'] = 'Nombre is required.';
|
|
||||||
|
|
||||||
if (empty($_POST['apellido']))
|
if (empty($_POST['nombre']))
|
||||||
$errors['nombre'] = 'Apellido is required.';
|
$errors['nombre'] = 'Nombre is required.';
|
||||||
|
|
||||||
if (empty($_POST['email']))
|
if (empty($_POST['apellido']))
|
||||||
$errors['email'] = 'Email is required.';
|
$errors['apellido'] = 'Apellido is required.';
|
||||||
|
|
||||||
if (empty($_POST['mensage']))
|
if (empty($_POST['doctype']))
|
||||||
$errors['mensage'] = 'Mensaje is required.';
|
$errors['doctype'] = 'No seleccionó un tipo de doc';
|
||||||
|
|
||||||
if( !file_exists("registro.csv")){
|
if (empty($_POST['docnro']))
|
||||||
setheaders();
|
$errors['docnro'] = 'No ingreso un documento';
|
||||||
}
|
|
||||||
|
|
||||||
|
if (empty($_POST['dir']))
|
||||||
|
$errors['dir'] = 'No ingreso una direccion';
|
||||||
|
|
||||||
//$fp = fopen("registro.csv", "w");
|
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( !file_exists("registro.csv"))
|
||||||
|
setheaders();
|
||||||
|
|
||||||
// return a response ===========================================================
|
// return a response ===========================================================
|
||||||
|
// if there are any errors in our errors array, return a success boolean of false
|
||||||
|
if ( ! empty($errors)) {
|
||||||
|
|
||||||
// if there are any errors in our errors array, return a success boolean of false
|
// if there are items in our errors array, return those errors
|
||||||
if ( ! empty($errors)) {
|
$data['success'] = false;
|
||||||
|
$data['errors'] = $errors;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$fila = $data;
|
||||||
|
registrar($fila);
|
||||||
|
$data['success'] = true;
|
||||||
|
$data['message'] = 'Registro exitoso';
|
||||||
|
}
|
||||||
|
|
||||||
// if there are items in our errors array, return those errors
|
// return all our data to an AJAX call
|
||||||
$data['success'] = false;
|
echo json_encode($data);
|
||||||
$data['errors'] = $errors;
|
|
||||||
} else {
|
|
||||||
$fila = array();
|
|
||||||
|
|
||||||
|
|
||||||
// if there are no errors process our form, then return a message
|
|
||||||
|
|
||||||
// DO ALL YOUR FORM PROCESSING HERE
|
|
||||||
// THIS CAN BE WHATEVER YOU WANT TO DO (LOGIN, SAVE, UPDATE, WHATEVER)
|
|
||||||
|
|
||||||
// show a message of success and provide a true success variable
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$data['success'] = true;
|
|
||||||
$data['message'] = 'Registro exitoso';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// return all our data to an AJAX call
|
|
||||||
echo json_encode($data);
|
|
||||||
|
|
||||||
?>
|
?>
|
@ -1 +1,2 @@
|
|||||||
Nombre,Apellido,TipoDoc,Documento,Pais,Ciudad,Profesión,Telefono,Email,Financiación,"Detalle Financiación"
|
Nombre,Apellido,TipoDoc,Documento,Direccion,Pais,Ciudad,Telefono,Email,Profesión,Financiación,"Detalle Financiación"
|
||||||
|
German,Correa,C.I,4596793-2,"Salvador Garcia Pintos 1114",Uruguay,Montevideo,091432378,german.correa.balier@gmail.com,Estudiante,no,
|
||||||
|
|
2
snippets/footer.html
Normal file
2
snippets/footer.html
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<p><a href="index.html">Home</a> | <a href="examples.html">Examples</a> | <a href="page.html">A Page</a> | <a href="another_page.html">Another Page</a> | <a href="contact.html">Contact Us</a></p>
|
||||||
|
<p>Copyright © night_sky_2 | <a href="http://validator.w3.org/check?uri=referer">HTML5</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.html5webtemplates.co.uk">Website templates</a></p>
|
@ -1,16 +1,16 @@
|
|||||||
|
|
||||||
<div id="logo">
|
<div id="logo" class="jumbotron">
|
||||||
<div id="logo_text" class="row">
|
<div id="logo_text">
|
||||||
<!-- class="logo_colour", allows you to change the colour of the text -->
|
<!-- class="logo_colour", allows you to change the colour of the text -->
|
||||||
<h1><a href="/">6to<span class="logo_colour"> Coloquio Uruguayo de Matemática</span></a></h1>
|
<h1><a href="/"><span class="logo_init">VI</span><span class="logo_colour"> Coloquio Uruguayo de Matemática</span></a></h1>
|
||||||
<h2 style="font-size:29px;"><strong>20, 21 y 22 de Diciembre</strong></h2>
|
<h2 style="font-size:29px;"><strong>20, 21 y 22 de Diciembre</strong></h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="menubar" class="row">
|
<nav class="navbar navbar-inverse" id="menubar">
|
||||||
<ul id="menu">
|
<ul class="nav navbar-nav" id="menu">
|
||||||
<li class="selected"><a href="/">Inicio</a></li>
|
<li class="selected"><a href="/">Inicio</a></li>
|
||||||
<li><a href="contact.html">Contacto</a></li>
|
<li><a href="contact.html">Contacto</a></li>
|
||||||
<li><a href="register.html">Registrarse</a></li>
|
<li><a href="register.html">Registrarse</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
|
|
@ -4,7 +4,6 @@ body
|
|||||||
{ font-family: "lucida sans", arial, sans-serif;
|
{ font-family: "lucida sans", arial, sans-serif;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
font-size: 13px;
|
|
||||||
background: #090708;
|
background: #090708;
|
||||||
color: #5D5D5D;
|
color: #5D5D5D;
|
||||||
|
|
||||||
@ -16,16 +15,10 @@ body{
|
|||||||
rgba(0, 0, 0, 0.8)
|
rgba(0, 0, 0, 0.8)
|
||||||
),
|
),
|
||||||
url(background.jpg);*/
|
url(background.jpg);*/
|
||||||
background-color: white;
|
background-color: lightgray;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1200px) {
|
|
||||||
.container{
|
|
||||||
width: 970px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
p
|
p
|
||||||
{ margin: 0px;
|
{ margin: 0px;
|
||||||
padding: 0px 0px 16px 0px;
|
padding: 0px 0px 16px 0px;
|
||||||
@ -119,20 +112,23 @@ ol li
|
|||||||
margin-right: auto;}
|
margin-right: auto;}
|
||||||
|
|
||||||
#main
|
#main
|
||||||
{ padding-bottom: 40px;}
|
{ /*padding-bottom: 40px;*/}
|
||||||
|
|
||||||
#header
|
#header
|
||||||
{ /*background: transparent url(logo.jpg) no-repeat;*/}
|
{ /*background: transparent url(logo.jpg) no-repeat;*/
|
||||||
|
background-color: #FC9C04;
|
||||||
|
}
|
||||||
|
|
||||||
#logo
|
#logo
|
||||||
{ width: 860px;
|
{ /*width: 860px;*/
|
||||||
position: relative;
|
/*position: relative*/;
|
||||||
height: 200px;}
|
/*height: 200px;*/
|
||||||
|
background:inherit;}
|
||||||
|
|
||||||
#logo #logo_text
|
#logo #logo_text
|
||||||
{ position: absolute;
|
{ /*position: absolute;
|
||||||
top: 47px;
|
top: 47px;
|
||||||
left: 0;}
|
left: 0;*/}
|
||||||
|
|
||||||
#logo h1, #logo h2
|
#logo h1, #logo h2
|
||||||
{ font: normal 300% 'century gothic', arial, sans-serif;
|
{ font: normal 300% 'century gothic', arial, sans-serif;
|
||||||
@ -151,7 +147,13 @@ ol li
|
|||||||
}
|
}
|
||||||
|
|
||||||
#logo_text h1 a .logo_colour
|
#logo_text h1 a .logo_colour
|
||||||
{ color: #4baabe;;}
|
{ color: black;}
|
||||||
|
#logo_text h1 a .logo_init
|
||||||
|
{
|
||||||
|
font-size: 80px;
|
||||||
|
font-family: "Times New Roman", Georgia, Serif;
|
||||||
|
color: #4baabe;
|
||||||
|
}
|
||||||
|
|
||||||
#logo_text a:hover .logo_colour
|
#logo_text a:hover .logo_colour
|
||||||
{ color: #FFF;}
|
{ color: #FFF;}
|
||||||
@ -162,17 +164,22 @@ ol li
|
|||||||
color: #fff;}
|
color: #fff;}
|
||||||
|
|
||||||
#menubar
|
#menubar
|
||||||
{ width: 870px;
|
{
|
||||||
height: 46px;
|
border-radius: 0px;
|
||||||
padding-top: 55px;
|
}
|
||||||
padding-left: 4px;}
|
@media screen and (max-width: 768px){
|
||||||
|
ul#menu{
|
||||||
|
margin:auto!important;
|
||||||
|
float:none!important;
|
||||||
|
}
|
||||||
|
}
|
||||||
ul#menu
|
ul#menu
|
||||||
{ float: right;
|
{ float: right;
|
||||||
margin: 0px;
|
margin-right:10px;
|
||||||
|
/*margin: 0px;
|
||||||
background: black;
|
background: black;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#menu li
|
ul#menu li
|
||||||
@ -196,30 +203,42 @@ ul#menu li a
|
|||||||
|
|
||||||
ul#menu li.selected a
|
ul#menu li.selected a
|
||||||
{ height: 20px;
|
{ height: 20px;
|
||||||
padding: 7px 15px 4px 15px;}
|
padding: 7px 15px 4px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
ul#menu li.selected
|
ul#menu li.selected
|
||||||
{ margin: 7px 0 0 0;}
|
{ margin: 7px 0 0 0;}
|
||||||
|
|
||||||
ul#menu li.selected a, ul#menu li.selected a:hover
|
ul#menu li.selected a, ul#menu li.selected a:hover, ul#menu li a:active
|
||||||
{ color: #FC9C04;}
|
{ color: #FC9C04;}
|
||||||
|
|
||||||
ul#menu li a:hover
|
ul#menu li a:hover
|
||||||
{ color: #FC9C04;}
|
{ color: #FC9C04;}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1200px){
|
||||||
|
.container {
|
||||||
|
width:970px;}
|
||||||
|
}
|
||||||
#site_content
|
#site_content
|
||||||
{ /*width: 858px;*/
|
{ /*width: 858px;
|
||||||
overflow: hidden;
|
overflow: hidden;*/
|
||||||
margin: 0 auto 0 auto;
|
margin: 0 auto 0 auto;
|
||||||
padding: 10px 20px 20px 20px;
|
/*padding: 0px 15px 0px 30px;*/
|
||||||
background: #F6F6F0 url(back.png) repeat-y;
|
background: #F6F6F0 url(back.png) repeat-y;
|
||||||
border: 15px solid #FFF;}
|
border: 15px solid #FFF;*/}
|
||||||
|
|
||||||
.sidebar
|
.sidebar
|
||||||
{ float: right;
|
{ /*float: right;
|
||||||
width: 190px;
|
width: 190px;*/
|
||||||
padding: 0 15px 20px 15px;}
|
padding: 0 15px 20px 15px;
|
||||||
|
background:#ededed;
|
||||||
|
border-left: 1px solid;
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 640px){
|
||||||
|
.sidebar {
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
.sidebar ul
|
.sidebar ul
|
||||||
{ width: 178px;
|
{ width: 178px;
|
||||||
padding: 4px 0 0 0;
|
padding: 4px 0 0 0;
|
||||||
@ -240,8 +259,8 @@ ul#menu li a:hover
|
|||||||
|
|
||||||
#content
|
#content
|
||||||
{ text-align: left;
|
{ text-align: left;
|
||||||
width: 615px;
|
/*width: 615px;*/
|
||||||
padding: 0;}
|
}
|
||||||
|
|
||||||
#content ul
|
#content ul
|
||||||
{ margin: 2px 0 22px 0px;}
|
{ margin: 2px 0 22px 0px;}
|
||||||
@ -254,7 +273,7 @@ ul#menu li a:hover
|
|||||||
line-height: 1.5em;}
|
line-height: 1.5em;}
|
||||||
|
|
||||||
#footer
|
#footer
|
||||||
{ width: 916px;
|
{ /*width: 916px;*/
|
||||||
font-family: 'trebuchet ms', sans-serif;
|
font-family: 'trebuchet ms', sans-serif;
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
Loading…
Reference in New Issue
Block a user