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
/* | |
La función obtiene el tiempo laboral en segundos de un empleado en los días de los extremos. | |
Esta función trabaja sobre una tabla de horarios por empleado donde cada empleado puede tener muchos horarios por día. | |
Se asume que no hay traslapes de horarios. | |
Un ejemplo de la tabla podría ser así: | |
dia|hora_inicio|hora_fin|empleado | |
2 |08:00 |13:00 |15 |
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
/* | |
La función obtiene el tiempo laboral en segundos de un empleado en un día específico (lunes, martes, ...). | |
Esta función trabaja sobre una tabla de horarios por empleado donde cada empleado puede tener muchos horarios por día. | |
Se asume que no hay traslapes de horarios. | |
Un ejemplo de la tabla podría ser así: | |
dia|hora_inicio|hora_fin|empleado | |
2 |08:00 |13:00 |15 |
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 init() { | |
// quit if this function has already been called | |
if (arguments.callee.done) return; | |
// flag this function so we don't do the same thing twice | |
arguments.callee.done = true; | |
// kill the timer | |
if (_timer) clearInterval(_timer); | |
// do stuff, call the function you want on the body onload | |
example(); |
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
<html> | |
<head> | |
<script> | |
function loadXMLDoc() | |
{ | |
var xmlhttp; | |
var pal; | |
//Campo de Texto que tendrá la plabra o dígito que deseemos enviar como parámetro para consultar | |
pal = document.getElementById("txtPalabraBusqueda").value |
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
//Esta funcion va en el body onload | |
function CapturadorDeEventos(){ | |
if (window.addEventListener) { | |
window.addEventListener("keydown", compruebaTecla, false); | |
} else if (document.attachEvent) { | |
document.attachEvent("onkeydown", compruebaTecla); | |
} | |
} | |
function compruebaTecla(evt){ |
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
<%@Language=VBScript %> | |
<% | |
option explicit | |
Response.Buffer = true | |
Response.Expires = 0 | |
Response.AddHeader "pragma","no-cache" | |
Response.AddHeader "cache-control","private" | |
Response.CacheControl = "no-cache" | |
%> |
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 ReemplazaCadena(cadena) | |
'Minusculas | |
cadena = replace(cadena,"á","á") | |
cadena = replace(cadena,"é","é") | |
cadena = replace(cadena,"í","í") | |
cadena = replace(cadena,"ó","ó") | |
cadena = replace(cadena,"ú","ú") | |
cadena = replace(cadena,"ñ","ñ") | |
cadena = replace(cadena,"ü","ü") | |
'Mayusculas |
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 isNumeric(value){ | |
return typeof value === 'number' || !isNaN(Number(value.replace(/^\s*$/, 'a'))); | |
} |
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
.titulo{/*COLOR: #1848A8;*/COLOR: #142050;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 18px;FONT-STYLE: italic;FONT-WEIGHT: bolder; text-align:center} | |
.filaTipoImpar{BACKGROUND-COLOR: #EEEEEE; COLOR: black;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 12px;FONT-STYLE: normal;FONT-WEIGHT: normal} | |
.filaTipoPar{BACKGROUND-COLOR: #E5E5E5;COLOR: #12214d;FONT-FAMILY: Arial, Helvetica, sans-serif;FONT-SIZE: 12px;FONT-STYLE: normal;FONT-WEIGHT: normal} | |
.mensajeError | |
{ | |
color:#96122e; | |
font-weight:bold; | |
font-size:10pt; | |
text-align:center; | |
} |
NewerOlder