This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2017-12-22T07:59:52.885Z","extensionVersion":"v2.8.7"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2017-04-05T11:30:00.158Z","extensionVersion":"v2.6.2"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Helper function to clone a given object instance | |
* @param {Object} obj Object that is going to be cloned | |
* @return {Object} Object cloned | |
*/ | |
function clone (obj) | |
{ | |
// Handle the 3 simple types, and null or undefined | |
if (null === obj || "object" != typeof obj) return obj; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FIXERR1002: Función de ordenación para las columnas de las vistas | |
function sortByKey(array, key, asc) { | |
return array.sort(function(a, b) { | |
if (key == "id" || | |
key == "cid" || | |
key == "eid" || | |
key == "nexp" || | |
key == "dni" || | |
key == "poblacion" || | |
key == "provincia" || |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# Ruta al inicio de la aplicación: /web/index.php | |
RewriteRule ^(.*)$ /web/index.php [QSA,L] | |
# Redirección de carpetas de imágenes, estilos y js para las plantillas TWIG | |
Redirect /img /web/img | |
Redirect /css /web/css | |
Redirect /js /web/js | |
</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>{% block title %}{% endblock %}</title> | |
<link>{% block url %}{% endblock %}</link> | |
<description>{% block descripcion %}{% endblock %}</description> | |
<language>{% block idioma %} | |
{{ app.request.locale }} | |
{% endblock %}</language> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function esDniValido(ExecutionContext $context) | |
{ | |
$dni = $this->getDni(); | |
// Comprobar que el formato sea correcto | |
if (0 === preg_match("/\d{1,8}[a-z]/i", $dni)) { | |
$context->addViolationAtSubPath('dni', 'El DNI introducido no tiene el formato correcto (entre 1 y 8 números seguidos de una letra, sin guiones y sin dejar ningún espacio en blanco)', array(), null); | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is_valid_email($email) | |
{ | |
$result = TRUE; | |
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) { | |
$result = FALSE; | |
} | |
return $result; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Validación y llamada AJAX para enviar el correo */ | |
$("#submit").click(function() { | |
var nombre = $("#nombre").val(); | |
email = $.trim($("#email").val()); | |
validacion_email = /^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/; | |
asunto = $("#asunto").val(); | |
mensaje = $("#mensaje").val(); | |
if ((nombre == "") || (nombre == $("#nombre").attr('placeholder'))){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-role="page" id="contacto"> | |
<div data-role="header" data-theme="a" data-position="fixed"> | |
<div class="ui-grid-b"> | |
<div class="ui-block-a" style="width:25%"><a href="#home" data-role="button" data-icon="home" data-iconpos="notext" data-direction="reverse">Inicio</a></div> | |
<div class="ui-block-b" style="width:50%"><center><img src="imgs/santosdesign_peq.fw.png" width="160" height="50"></center></div> | |
<div class="ui-block-c" style="width:25%"> </div> | |
</div><!-- /grid-b --> | |
</div><!-- /header --> | |
<div data-role="content" data-theme="a"> | |
<h1><img src="imgs/contacto.fw.png" width="40" height="40" alt="Inicio"> ¿Hablamos?</h1> |
NewerOlder