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 generateMatricula() { | |
| $numbers = '0123456789'; | |
| $characters = 'BCDFGHIJKLMNPQRSTVWXYZ'; | |
| $randomString = ''; | |
| for ($i = 0; $i < 4; $i++) { | |
| $randomString .= $numbers[rand(0, strlen($numbers) - 1)]; | |
| } | |
| for ($i = 0; $i < 3; $i++) { | |
| $randomString .= $characters[rand(0, strlen($characters) - 1)]; | |
| } |
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
| INSERT INTO tabla ( id, nombre, activo, fecha ) SELECT $id, $nombre, $activo, now() WHERE NOT EXISTS ( SELECT id FROM tabla WHERE nombre = $nombre AND activo = $activo ) |
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
| AddDefaultCharset UTF-8 | |
| #Por defecto para todos | |
| AddCharset ISO-8850-1 .js | |
| #Cambiarlo para un conjunto de archivos |
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
| INSERT INTO contents_languages ( | |
| id_content, | |
| id_language, | |
| friendly, | |
| title, | |
| abstract, | |
| text, | |
| place | |
| ) | |
| VALUES |
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
| CREATE FUNCTION CAP_FIRST (input VARCHAR(255)) | |
| RETURNS VARCHAR(255) | |
| DETERMINISTIC | |
| BEGIN | |
| DECLARE len INT; | |
| DECLARE i INT; |
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
| .objeto_animado{ | |
| -webkit-animation-name: escala; | |
| -webkit-animation-duration: 0.6s; | |
| -webkit-animation-iteration-count:1; | |
| -ms-animation-name: escala; | |
| -ms-animation-duration: 0.6s; | |
| -ms-animation-iteration-count:1; | |
| -moz-animation-name: escala; | |
| -moz-animation-duration: 0.6s; | |
| -moz-animation-iteration-count:1; |
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
| $("#"+formid).find("input[name^='losqempiecenpor']").each(function () { | |
| var $element = $(this); | |
| $element.rules('add', { required: true, maxlength:30 }); | |
| }); |
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
| .text_ellipsis{ | |
| white-space: nowrap; | |
| text-overflow: ellipsis; | |
| overflow-x: hidden; | |
| display: block; | |
| } |
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
| $dom = new DOMDocument("1.0","utf-8"); | |
| $elemento = $dom->createElement("elemento"); | |
| $dom->appendChild($elemento); | |
| $xml = $dom->saveXML(); |