132 lines
3.5 KiB
Plaintext
132 lines
3.5 KiB
Plaintext
<%@ 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" %>
|
|
<%@ page import="java.io.*" %>
|
|
|
|
<%
|
|
response.setHeader("Expires", "0");
|
|
response.setHeader("Pragma", "no-cache");
|
|
response.setHeader("Cache-Control", "no-cache");
|
|
HttpSession sesion = request.getSession(true);
|
|
int usuario = 0;
|
|
String strusu = "";
|
|
|
|
//parametro usuario
|
|
strusu = sesion.getAttribute("U").toString();
|
|
usuario = Integer.parseInt(strusu);
|
|
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<title>Simulación usuarios</title>
|
|
<link rel="shortcut icon" href="../../img/logo.ico" />
|
|
<link rel="STYLESHEET" type="text/css" href="../../css/estilos.css">
|
|
<link rel="STYLESHEET" type="text/css" href="<%=request.getContextPath() %>/css/jquery.modal.css">
|
|
<script language="JavaScript" src="../../js/inicio_tarisan.js"></script>
|
|
<script language="JavaScript" src="../../js/menu_adm.js"></script>
|
|
<script language="JavaScript" src="../../js/bloques_tarisan.js"></script>
|
|
<script language="JavaScript" src="../../js/jquery-1.11.3.js"></script>
|
|
<script language="JavaScript" src="<%=request.getContextPath()%>/js/jquery.modal.min.js"></script>
|
|
|
|
<script language="JavaScript" type="text/javascript">
|
|
<!--
|
|
|
|
function entrar()
|
|
{
|
|
if(document.frm_simular.USUARIO.value.length == 0)
|
|
{
|
|
//alert("Introduce un numero de medico o pulse en Cancelar");
|
|
modal({type:'error',title:'¡Atención!',text:'Introduce un numero de medico o pulse en Cancelar.',});
|
|
document.frm_simular.USUARIO.focus();
|
|
}
|
|
else
|
|
{
|
|
document.frm_simular.SIMULADO.value=1;
|
|
document.frm_simular.submit();
|
|
}
|
|
}
|
|
|
|
|
|
function cancelar()
|
|
{
|
|
document.frm_simular.USUARIO.value=<%= usuario%>;
|
|
document.frm_simular.SIMULADO.value=0;
|
|
document.frm_simular.submit();
|
|
}
|
|
|
|
function volver()
|
|
{
|
|
document.frm_volver.submit();
|
|
}
|
|
|
|
function SePulsaEnter(event) {
|
|
if (event.which == 13 && !event.shiftKey) {
|
|
event.preventDefault();
|
|
entrar();
|
|
}
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
|
|
</head>
|
|
<body alink="#43881A" bgcolor="#FFFFFF" onload="javascript:document.frm_simular.USUARIO.focus();" style="background-color:#FFFFFF">
|
|
<div style="width:250px; margin:0 auto; margin-top:30px; border:1px solid rgb(192, 35, 49);">
|
|
<table border="0" align="center" width="100%" >
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tituloTabla" align="center">SIMULACIÓN DE USUARIOS</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<form name="frm_simular" action="../../servlet/Login" method="post" >
|
|
<input type="hidden" name="SIMULADO" id="SIMULADO" value="1">
|
|
<table border="0" align="center">
|
|
<tr>
|
|
<td align="right">
|
|
<span class="txtnegrita">Usuario:</span>
|
|
</td>
|
|
<td>
|
|
<input size="20" type="text" class="txt" id="USUARIO" name="USUARIO" value="" onkeypress="SePulsaEnter(event)"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right"></td>
|
|
<td align="right">
|
|
<a href="javascript:entrar()" class="enlace">Entrar</a> <a href="javascript:volver()" class="enlace">Cancelar</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<form name="frm_volver" action="../../html/login.html" method="post" >
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|