This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Title</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Latest compiled and minified CSS --> |
This file contains 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
<?php | |
/*** | |
* Create a PHP function that takes an array of 32 boolean values | |
* (zeroes and ones) as parameter, and answers with a numeric value. | |
* The result value must be calculated by processing the array | |
* parameter, which symbolizes an IEE-754 compliant Floating Point | |
* Single Precision 32bit value. | |
* | |
* More docs @wikipedia: https://en.wikipedia.org/wiki/Single-precision_floating-point_format |
This file contains 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
// Portrait | |
var isPortrait = window.matchMedia("only screen and (max-device-width: 586px) and (orientation : portrait)"); | |
// Mobile detection < 586px : not suported | |
var isMobileMinor586Landscape = window.matchMedia("only screen and (max-device-width: 585px) and (orientation : landscape)"); | |
// Mobile detection 586 x 320 px | |
var isMobileBeetween586and640Landscape = window.matchMedia("only screen and (max-device-width: 639px) and (min-device-width: 586px) and (orientation : landscape)"); | |
// Mobile detection 640 x 360 px | |
var isMobileBeetween640and900Landscape = window.matchMedia("only screen and (max-device-width: 900px) and (min-device-width: 640px) and (orientation : landscape)"); | |
if (isPortrait.matches) |
This file contains 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
Array | |
( | |
[fecha_ingreso] => 27/08/2015 | |
[diagnostico_ingreso] => ACC VASCULAR ENCEFALICO AGUDO, NO ESPEC COMO HEMORRAGICO O ISQUEMICO | |
[estaInternado] => 1 | |
[dias] => 4 | |
[fulldias] => 0 meses, 4 dias | |
[esMedico] => 1 | |
[hc] => | |
[apeynom_paciente] => Lara , Cristina |
This file contains 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
... | |
, setListadoPracticas: function(ps) { | |
listado_practicas = ps | |
} | |
, getListadoPracticas: function() { | |
return listado_practicas | |
} |
This file contains 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
SELECT * | |
FROM `internacion_movimiento` as mov | |
INNER JOIN `internacion_persona` as pi | |
WHERE mov.persona_internacion_id = pi.id | |
AND pi.persona_id = 5703 | |
AND mov.tipo_evento_id IS NULL ; |
This file contains 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 getAsArrayBy($field,$value) | |
{ | |
return $this->_em->createQuery("SELECT e FROM ".$this->_entityName." e where e.$field='". $value."'")->getArrayResult(); | |
} |
This file contains 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 insert_estado_solicitud() { | |
$usuarioid=self::get_admin_userid(); | |
$sql=<<<SQL | |
INSERT INTO `far_estado_solicitud` (`id`, `creado_por_id`, `modificado_por_id`, `nombre`, `codigo`, `creado_en`, `modificado_en`, `activo`) VALUES | |
(1, {$usuarioid}, {$usuarioid}, 'Pendiente', 'pendiente', '2014-11-21 00:00:00', '2014-11-21 00:00:00', 1); | |
INSERT INTO `far_estado_solicitud` (`id`, `creado_por_id`, `modificado_por_id`, `nombre`, `codigo`, `creado_en`, `modificado_en`, `activo`) VALUES | |
(2, {$usuarioid}, {$usuarioid}, 'Aceptada', 'aceptada', '2014-11-21 00:00:00', '2014-11-21 00:00:00', 1); |
This file contains 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
<?php | |
class turnoenfermeria_form extends generic_controller_form_lite { | |
public function __construct() { | |
parent::__construct(); | |
//Seteo de los parametros basicos del controlador | |
$this->setTitle('Turnos Enfermeria'); | |
$this->setModel('turnosEnfermeria'); | |
$this->setModule('admin'); |
This file contains 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
<?php | |
class turnoenfermeria_form extends generic_controller_form_lite { | |
public function __construct() { | |
parent::__construct(); | |
//Seteo de los parametros basicos del controlador | |
$this->setTitle('Turnos Enfermeria'); | |
$this->setModel('turnosEnfermeria'); | |
$this->setModule('admin'); |
NewerOlder