añado jsp
This commit is contained in:
@@ -0,0 +1,457 @@
|
||||
<%@ page import="com.tarisan.control.*" %>
|
||||
<%@ page import="com.tarisan.data.*" %>
|
||||
<%@ page import="com.tarisan.excepcion.*" %>
|
||||
<%@ page import="com.tarisan.log.*" %>
|
||||
<%@ page import="com.tarisan.util.Utilidades" %>
|
||||
<%@ page import="java.sql.*" %>
|
||||
<%@ page import="java.util.Vector" %>
|
||||
|
||||
<%
|
||||
//LogTarisan.logger.log(NivelLog.INFO, "Inicio página de gestión de pacientes (pac/gestor.jsp)");
|
||||
|
||||
response.setHeader("Expires", "0");
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
HttpSession sesion = request.getSession(true);
|
||||
|
||||
String mensaje = null;
|
||||
mensaje = (String)sesion.getAttribute("ERROR");
|
||||
sesion.setAttribute("ERROR", "");
|
||||
String aviso = null;
|
||||
aviso = (String)sesion.getAttribute("AVISO");
|
||||
sesion.setAttribute("AVISO", "");
|
||||
|
||||
if(sesion.isNew() || (sesion.getAttribute("USUARIO") == null))
|
||||
{
|
||||
LogTarisan.logger.log(NivelLog.INFO, "Sesión invalidada");
|
||||
response.sendRedirect("../../html/login.html");
|
||||
}
|
||||
else
|
||||
{
|
||||
LogTarisan.logger.log(NivelLog.INFO, ((Usuario)sesion.getAttribute("USUARIO")).getMedico() + " -Inicio página de gestión de pacientes (pac/gestor.jsp)");
|
||||
|
||||
|
||||
//Obtención del perfil del usuario conectado
|
||||
StringBuffer perfil = new StringBuffer();
|
||||
perfil.append("|");
|
||||
perfil.append(sesion.getAttribute("PERFIL"));
|
||||
perfil.append("|");
|
||||
|
||||
//String noticia = Utilidades.leerNoticias("/root/apache-tomcat-6.0.20/webapps/tarisan/noticias.txt");
|
||||
Integer medico = Integer.valueOf( ((Usuario)sesion.getAttribute("USUARIO")).getMedico() );
|
||||
int intEspecialidad = ((Usuario)sesion.getAttribute("USUARIO")).getEspecialidad();
|
||||
|
||||
boolean mostrarNoticia = true;
|
||||
PersistenciaTanoticias perTaNo = new PersistenciaTanoticias();
|
||||
Vector vSeleccionNot = perTaNo.obtener_noticias_cabecera();
|
||||
Vector vNoticias = new Vector();
|
||||
String strNoticia = "";
|
||||
String noticias ="";
|
||||
String separador = " ---//--- ";
|
||||
if(vSeleccionNot.size()==0){
|
||||
mostrarNoticia = false;
|
||||
}else{
|
||||
mostrarNoticia = true;
|
||||
Tanoticias tanoticia = null;
|
||||
for(int i = 0; i < vSeleccionNot.size(); i++)
|
||||
{
|
||||
tanoticia = (Tanoticias)vSeleccionNot.elementAt(i);
|
||||
if (i!=0){
|
||||
strNoticia = strNoticia + separador + tanoticia.getNoticia();
|
||||
}else{
|
||||
strNoticia = tanoticia.getNoticia();
|
||||
}
|
||||
strNoticia = strNoticia.replaceAll("<br/>", " ");
|
||||
}
|
||||
}
|
||||
|
||||
String path = request.getContextPath();
|
||||
String pathSpgif = request.getContextPath();
|
||||
if (request.getContextPath().indexOf("tarisan")==-1){
|
||||
path = path + "/tarisan";
|
||||
pathSpgif = path + "/..";
|
||||
}
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Módulo de Gestión de Pacientes</title>
|
||||
<link rel="shortcut icon" href="<%=path%>/img/logo.ico" />
|
||||
<link rel="STYLESHEET" type="text/css" href="<%=path%>/css/estilos.css">
|
||||
<link rel="STYLESHEET" type="text/css" href="<%=path%>/css/jquery.modal.css">
|
||||
|
||||
<script language="JavaScript" src="<%=path%>/js/inicio_tarisan.js"></script>
|
||||
<script language="JavaScript" src="<%=path%>/js/menu_pac.js"></script>
|
||||
<script language="JavaScript" src="<%=path%>/js/bloques_tarisan.js"></script>
|
||||
<script language="JavaScript" src="<%=path%>/js/funciones.js"></script>
|
||||
<script language="JavaScript" src="<%=path%>/js/jquery-1.11.3.js"></script>
|
||||
<script language="JavaScript" src="<%=path%>/js/jquery.modal.min.js"></script>
|
||||
<!-- No lleva pNG puesto que primero hay que pasar la tarjeta del paciente //-->
|
||||
</head>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function validar()
|
||||
{
|
||||
if(document.frmTarjeta.TARJETA.value != "")
|
||||
{
|
||||
document.frmTarjeta.submit();
|
||||
}
|
||||
else
|
||||
{
|
||||
/*alert("Tiene que pasar la Tarjeta del Paciente");*/
|
||||
modal({type:'error',title:'Atención!',text:'Tiene que pasar la Tarjeta del Paciente.',});
|
||||
document.frmTarjeta.TARJETA.value = "";
|
||||
document.frmTarjeta.TROQUELADO.value="";
|
||||
document.frmTarjeta.TARJETA.focus();
|
||||
document.frmTarjeta.TROQUELADO.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function borrarCampo()
|
||||
{
|
||||
document.frmTarjeta.TARJETA.value = "";
|
||||
document.frmTarjeta.TARJETA.focus();
|
||||
}
|
||||
|
||||
function validar_embosado()
|
||||
{
|
||||
|
||||
var troque = document.frmTarjeta.TROQUELADO.value;
|
||||
while(troque.indexOf(' ')>0){
|
||||
troque = troque.replace(' ','');
|
||||
}
|
||||
|
||||
if(document.frmTarjeta.TARJETA.value != "" && troque != "" && troque.length <= 40)
|
||||
{
|
||||
document.frmTarjeta.TROQUELADO.value = troque;
|
||||
document.frmTarjeta.submit();
|
||||
}
|
||||
else
|
||||
{
|
||||
/*alert("Para conseguir una mejor gestión de los desplazados necesitamos que vuelva a pasar la tarjeta en el campo correspondiente y que introduzca los dígitos que aparecen en la tarjeta, como se muestra en la imagen \nGracias.");*/
|
||||
modal({type:'error',title:'Atención!',text:'Para conseguir una mejor gestión de los desplazados necesitamos que vuelva a pasar la tarjeta en el campo correspondiente y que introduzca los dígitos que aparecen en la tarjeta, como se muestra en la imagen \nGracias.',});
|
||||
document.frmTarjeta.TARJETA.value = "";
|
||||
document.frmTarjeta.TROQUELADO.value="";
|
||||
document.frmTarjeta.TARJETA.focus();
|
||||
document.frmTarjeta.TROQUELADO.focus();
|
||||
document.frmTarjeta.TROQUELADO.value="";
|
||||
}
|
||||
}
|
||||
|
||||
function detecta(){
|
||||
var navegador = navigator.vendor;
|
||||
alert(navigator.vendor);
|
||||
switch (navegador)
|
||||
{
|
||||
case "Microsoft Internet Explorer":
|
||||
/*alert("Su navegador es Internet Explorer");*/
|
||||
modal({type:'error',title:'Atención!',text:'Su navegador es Internet Explorer.',});
|
||||
break;
|
||||
case "Netscape":
|
||||
/*alert("Su navegador es Mozilla o Google Chrome");*/
|
||||
modal({type:'error',title:'Atención!',text:'Su navegador es Mozilla o Google Chrome.',});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function leer()
|
||||
{
|
||||
document.frmNoticias.submit();
|
||||
}
|
||||
|
||||
function noticia_importante()
|
||||
{
|
||||
VerText('mensajes1',1);
|
||||
document.frmTarjeta.TARJETA.value="";
|
||||
document.frmTarjeta.TARJETA.focus();
|
||||
var obj = document.frmTarjeta.TROQUELADO;
|
||||
if(obj)
|
||||
{
|
||||
document.frmTarjeta.TROQUELADO.value="";
|
||||
document.frmTarjeta.TROQUELADO.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function clear(){
|
||||
var texto = document.getElementById('usrtxt');
|
||||
texto.value ="";
|
||||
texto.setAttribute("autocomplete", "off");
|
||||
texto = document.getElementById('pwdtxt');
|
||||
texto.value="";
|
||||
texto.setAttribute("autocomplete", "off");
|
||||
texto = document.getElementById('usrtxt');
|
||||
texto.focus();
|
||||
}
|
||||
|
||||
function VerText(m,s)
|
||||
{
|
||||
obj=document.getElementById(m);
|
||||
if(s==1)obj.style.display="block";
|
||||
if(s==0)obj.style.display="none";
|
||||
}
|
||||
|
||||
function disableautocompletion(id){
|
||||
var passwordControl = document.getElementById(id);
|
||||
passwordControl.setAttribute("autocomplete", "off");
|
||||
}
|
||||
|
||||
function setFocus(){
|
||||
document.getElementById("tartxt").focus();
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" alink="#43881A" bgcolor="#FFFFFF" onload="noticia_importante();setFocus();">
|
||||
<div class="marco">
|
||||
<!-- Logotipo de IMQ de Navarra
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<tr valign="bottom">
|
||||
<td align="center"><img src="../../img/Logo_rosca.jpg" border="0"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>//-->
|
||||
|
||||
<!-- Datos del usuario conectado //-->
|
||||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
|
||||
<tr>
|
||||
<td class="tdLogoCabecera"><img src="<%=request.getContextPath()%>/img/logo.png" class="logoCabecera"></td>
|
||||
<td>
|
||||
<table width="100%">
|
||||
<tr><td class="tituloTablaMedico" align="center"><%= sesion.getAttribute("USUARIO") %></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="contenedorNoticia">
|
||||
<br>
|
||||
<div class="tituloNoticia">
|
||||
<p class="marquee"><%=strNoticia %></p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<td bgcolor="#C02331"><img src="img/sp.gif" width="746" height="1" border="0"></td>
|
||||
</tr> -->
|
||||
</table>
|
||||
|
||||
<!--<div id="contenedorNoticia">
|
||||
<br>
|
||||
<div class="tituloNoticia">
|
||||
<span class="noticiaSpan">NOTICIAS:</span>
|
||||
<p class="marquee"><%=strNoticia %></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<br>-->
|
||||
|
||||
<!-- Cabecera de Navegación superior //-->
|
||||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
|
||||
<tr>
|
||||
<td><script language="JavaScript">bloques();</script></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<!-- Cuerpo de la página //-->
|
||||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
|
||||
<tr valign="top">
|
||||
<!--<td width="180">//-->
|
||||
<td width="5%">
|
||||
<!-- Menú de navegación del módulo de navegación (zona izquierda) //-->
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr valign="top">
|
||||
<td colspan="2"><img src="../../img/sp.gif" width="180" height="12" border="0"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="165">
|
||||
<tr valign="top">
|
||||
<td width="16" class="menuBack"><img src="../../img/gen_bullet_cerrado.gif" name="bullet" width="16" height="12" border="0"></td>
|
||||
<td width="150" class="menuOn"><b>TARJETA DE PACIENTE</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<span id="mensajes1" class="mensajes">
|
||||
<!-- <p>Atención:<br/>Ya pueden pasar las tarjetas de TODOS LOS DESPLAZADOS, excepto en ATS, Rehabilitación, Podología y Analistas. <br/><a href="https://tarisan.imqnavarra.com/tarisan/COMPANIASALASQUEDACOBERTURAELCUADROMEDICOPERTENECIENTEAIMQ.pdf" target="_blank">Ver compañias incluidas</a></p> -->
|
||||
<p>No pasar tarjetas de DESPLAZADOS en ATS, Rehabilitación, Podología y Analistas. <br/><a href="https://tarisan.imqnavarra.com/tarisan/COMPANIASALASQUEDACOBERTURAELCUADROMEDICOPERTENECIENTEAIMQ.pdf" target="_blank">Ver compañias incluidas</a></p>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--<tr valign="top">
|
||||
<td align="center"><img src="<%=request.getContextPath()%>/img/Logo_rosca.jpg" border="0" width="75%"></td>
|
||||
</tr>-->
|
||||
</table>
|
||||
</td>
|
||||
<!--<td bgcolor="#CCCCCC"><img src="<%=request.getContextPath()%>/img/sp.gif" width="1" height="12" border="0"></td> -->
|
||||
<td width="565">
|
||||
<!-- Tabla con el contenido de la página (zona central-derecha) //-->
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<!--<td><img src="<%=request.getContextPath()%>/img/sp.gif" width="4" height="261" border="0"></td>-->
|
||||
<td width="1px" bgcolor="#CCCCCC"></td>
|
||||
<td class="txt" valign="top">
|
||||
<img src="../../img/sp.gif" width="1" height="11" border="0"><br>
|
||||
<table border="0" width="100%" align="center">
|
||||
<%
|
||||
if (aviso!=null && aviso.length() > 0){
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="4" align="center" class="menuOn"><%=aviso %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
if (mensaje!=null && mensaje.length() > 0){
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="4" align="center" class="menuOn"><%=mensaje %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
if(request.getParameter("embosado")!=null)
|
||||
{
|
||||
LogTarisan.logger.log(NivelLog.DEBUG, ((Usuario)sesion.getAttribute("USUARIO")).getMedico() + " - Página para introducir el troquelado");
|
||||
%>
|
||||
<form name="frmTarjeta" action="../../servlet/GestorPacientes?OPCION=<%=Constantes.OPC_PAC_PASO_TARJETA %>" method="post" autocomplete="off">
|
||||
<tr>
|
||||
<td align="center" class="txtnegrita">Introduzca los números de la tarjeta:</td>
|
||||
<td><input type="text" size="40" name="TROQUELADO" id="trqld" class="txt" value=""></td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="txtnegrita">Pase la tarjeta:</td>
|
||||
<td><input type="password" size="40" name="TARJETA" id="tar" class="txt" value="" onfocus="javascript:document.frmTarjeta.TARJETA.text=''"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center"><a href="javascript:validar_embosado()" class="enlace">Validar</a></td>
|
||||
</tr>
|
||||
</form>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
%>
|
||||
<form name="frmTarjeta" action="../../servlet/GestorPacientes?OPCION=<%=Constantes.OPC_PAC_PASO_TARJETA %>" method="post">
|
||||
<tr>
|
||||
<!-- <td align="center" class="txtnegrita">Pase la tarjeta:</td>-->
|
||||
<td align="center" class="txtnegrita">Pase la tarjeta: <input type="password" size="40" name="TARJETA" class="txt" id="tartxt" value="" onlostfocus="javascript:detecta()" onfocus="javascript:document.frmTarjeta.TARJETA.text=''"> <a href="javascript:validar()" class="enlace">Validar</a> <a href="javascript:borrarCampo()" class="enlace">Borrar</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td colspan="2" align="center"><a href="javascript:validar()" class="enlace">Validar</a></td>
|
||||
</tr>-->
|
||||
</form>
|
||||
<!-- <tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td align="center" class="txtnegrita">INTRODUCción MANUAL DEL TROQUELADO DE LA TARJETA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="txtnegrita">Si no funciona el pase de la Tarjeta utilice esta opción para identificar al asegurado:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center"><a href="troquelado.jsp" class="enlace">Introducir Troquelado</a></td>
|
||||
</tr>
|
||||
</table> -->
|
||||
<%
|
||||
|
||||
}%>
|
||||
<%
|
||||
if(request.getParameter("embosado")!=null)
|
||||
{
|
||||
%>
|
||||
<table border="0" width="100%" align="center">
|
||||
<tr><td align="center" class="txtnegrita">Para conseguir una mejor gestión de los desplazados necesitamos que vuelva a pasar la tarjeta en el campo correspondiente y que introduzca los dígitos que aparecen en la tarjeta, como se muestra en la imagen a continuación:</td></tr>
|
||||
<tr><td align="center"><img src="https://tarisan.imqnavarra.com/tarisan/img/tarjeta_embossado.jpg" width="400" height="130"/></td></tr>
|
||||
</table>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<table border="0" width="100%" align="center">
|
||||
<tr><td align="center" class="txt"><a href="https://tarisan.imqnavarra.com/tarisan/manual.pdf" target="_blank"><img src="<%=request.getContextPath()%>/img/iconoManual.gif"></a></td></tr>
|
||||
</table>
|
||||
<!--<br/> -->
|
||||
<div id="thawteseal" style="text-align:center;" title="Click para Verificar - Este sitio confía en Thawte SSL para asegurar la confidencialidad de sus comunicaciones.">
|
||||
<div><script type="text/javascript" src="https://seal.thawte.com/getthawteseal?host_name=tarisan.imqnavarra.com&size=S&lang=es"></script></div>
|
||||
<div><a href="http://www.thawte.com/products/" target="_blank" style="color:#000000; text-decoration:none; font:bold 10px arial,sans-serif; margin:0px; padding:0px;">Acerca de los certificados SSL</a></div>
|
||||
</div>
|
||||
</table>
|
||||
<br/>
|
||||
|
||||
</td>
|
||||
<!-- <td width="15%">
|
||||
<div class="noticiaLateral">
|
||||
<span>Noticias en el lateral derecho</span>
|
||||
</div>
|
||||
</td>-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
//Basta con ponerle a cualquier elemento el id="idAviso"
|
||||
if(document.getElementById ("idAviso")){
|
||||
window.setInterval (parpadear, 500);
|
||||
var color = "#C02331"; //color del blink
|
||||
function parpadear () {
|
||||
var aviso = document.getElementById ("idAviso");
|
||||
color = (color == "#C02331")? "#000000" : "#C02331";
|
||||
aviso.style.color = color;
|
||||
}
|
||||
}
|
||||
|
||||
if(document.getElementById ("fondoParpadeo")){
|
||||
window.setInterval (parpadear, 500);
|
||||
var color = "#F3D195"; //color del blink
|
||||
function parpadear () {
|
||||
var fondo = document.getElementById ("fondoParpadeo");
|
||||
color = (color == "#F3D195")? "#E8AD79" : "#F3D195";
|
||||
fondo.style.background = color;
|
||||
}
|
||||
}
|
||||
|
||||
var jsMostrarNoticia = <%=mostrarNoticia %>;
|
||||
if (!jsMostrarNoticia){
|
||||
document.getElementById('contenedorNoticia').style.display="none";
|
||||
}else{
|
||||
<% strNoticia = strNoticia.replaceAll("\"", "'"); %>
|
||||
var not = "<%=strNoticia %>";
|
||||
tamanioNoticia(not);
|
||||
marquee($('.tituloNoticia'), $('.marquee'),not);
|
||||
}
|
||||
</script>
|
||||
<%
|
||||
}
|
||||
LogTarisan.logger.log(NivelLog.INFO, ((Usuario)sesion.getAttribute("USUARIO")).getMedico() + " - Final página de gestión de pacientes (pac/gestor.jsp)");
|
||||
}
|
||||
%>
|
||||
Reference in New Issue
Block a user