public function grabarTurnoProgramar($datos) { $oLRrhh = new LRrhh(); $respuesta = $oLRrhh->grabarTurnoProgramar($datos); if (is_array($respuesta)) { if ($respuesta[0][0] == 'ok') { $respuesta = "<h2 style='color: blue'>Se Agregó Corectamente.</h2>"; } else { if ($respuesta[0][0] == 'existe') { $respuesta = "<h2 style='color: red'>El código " . $datos["idTurnoProgramar"] . " que intenta ingresar ya existe.</h2>"; } else { $respuesta = "<h2 style='color: red'>Fallo el registro.</h2>"; } } } return $respuesta; }