<%@ page import="com.ejie.p06b.general.P06BPaginas,com.ejie.p06b.general.P06BConstantes" %>
<%@ taglib uri="/WEB-INF/tld/p06bTags.tld" prefix="p06b" %>
<html>
<head>
	<title><p06b:p06bResEtiquetasTag resource="titulo"/></title>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" href="<%=P06BPaginas.P06B_STYLES_PATH%>/Styles/p06estilos.css" type="text/css">	
	<link rel="stylesheet" href="<%=P06BPaginas.P06B_STYLES_PATH%>/Styles/portal.css" type="text/css">
	<link rel="stylesheet" href="<%=P06BPaginas.P06B_STYLES_PATH%>/Styles/comunPortal.css" type="text/css">
</head>	
<body>
<script type="text/javascript">
	var rutaCabecera;	//Parametro a pasar desde cada jsp que indique la ruta del mismo
	rutaCabecera = "<a class='migaja' href='"+'<%=P06BPaginas.P06B_JSP_TEST_INJSP%>'+"'>\\"+'<p06b:p06bResEtiquetasTag resource="pantallas.test.titulo"/>'+"<\/a>";

	function ejecutarPDF(servlet){
		var h=650;
		var w=900;
		var url = '';		
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',menubar=no,resizable=yes,scrollbars=yes,titlebar=yes,toolbar=no'
		window.open(servlet+"?tipoPDF="+'<%=P06BConstantes.P06B_LISTADOTESTPDF%>',"PDF",settings);
	}
	
	function ejecutarEXCEL(servlet){
		var h=650;
		var w=900;
		var url = '';		
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',menubar=no,resizable=yes,scrollbars=yes,titlebar=yes,toolbar=no'
		window.open(servlet+"?tipoEXCEL="+'<%=P06BConstantes.P06B_TESTEXCEL%>',"EXCEL",settings);
	}
	
</script>
<%@ include file="/p06bComunJSP/p06bCabecera.inc"%>
<p>
<%@ include file="/p06bComunJSP/p06bMenuJsp.inc"%>
<div id="cuerpo">
<!--Aqui va el cuerpo de la página -->
	<TABLE class="general" cellpadding="0" cellspacing="0">
	    <tr> 
	      <td height="20"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="<%=(P06BPaginas.P06B_JSP_SERVLETTESTMANAGER_INJSP+"?codigo=1")%>" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test1"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	    <%if(request.getParameter("resultado")!=null
	      				&& !request.getParameter("resultado").equals("")){%>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
	      		<div style="FONT-FAMILY: Verdana;FONT-SIZE: 7pt;color: 000000;" align="left">
	      			<b>Resultado: </b><%=request.getParameter("resultado")%>	   
	      		</div>
	      	</div>
	      </td>
	    </tr>
	    <%}%>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="<%=(P06BPaginas.P06B_JSP_SERVLETTESTERROR_INJSP+"?tipoError=1")%>" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test2"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="<%=(P06BPaginas.P06B_JSP_SERVLETTESTERROR_INJSP+"?tipoError=2")%>" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test3"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="<%=(P06BPaginas.P06B_JSP_SERVLETTESTMANAGER_INJSP+"?tipo=pruebaEJB&error=false&codigo=99")%>" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test4"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	    <%if((request.getParameter("resultadoEJB")!=null
	      				&& !request.getParameter("resultadoEJB").equals(""))
	         && (request.getParameter("error")!=null
	      				&& request.getParameter("error").equals("false"))){%>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
	      		<div style="FONT-FAMILY: Verdana;FONT-SIZE: 7pt;color: 000000;" align="left">
	      			<b>Resultado: </b><%=request.getParameter("resultadoEJB")%>	   
	      		</div>
	      	</div>
	      </td>
	    </tr>
	    <%}%>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="<%=(P06BPaginas.P06B_JSP_SERVLETTESTMANAGER_INJSP+"?tipo=pruebaEJB&error=true&codigo=99")%>" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test5"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	    <%if((request.getParameter("resultadoEJB")!=null
	      				&& !request.getParameter("resultadoEJB").equals(""))
	      	 &&(request.getParameter("error")!=null
	      				&& request.getParameter("error").equals("true"))){%>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
	      		<div style="FONT-FAMILY: Verdana;FONT-SIZE: 7pt;color: 000000;" align="left">
	      			<b>Resultado: </b><%=request.getParameter("resultadoEJB")%>	   
	      		</div>
	      	</div>
	      </td>
	    </tr>
	    <%}%>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="<%=P06BPaginas.P06B_JSP_VALIDATION_INJSP%>" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test6"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="javascript:ejecutarPDF('<%=P06BPaginas.P06B_JSP_SERVLETTESTPDF_INJSP%>')" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test7"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	    <tr> 
	      <td height="10"></td>
	    </tr>
	    <tr> 
	      <td width="100%">
	      	<div class="headText">
		      	<div align="left">
		      		<a style="FONT-FAMILY: Verdana;FONT-SIZE: 8pt;color: 000000;" href="javascript:ejecutarEXCEL('<%=P06BPaginas.P06B_JSP_SERVLETEXCEL%>')" ><p06b:p06bResEtiquetasTag resource="pantallas.test.test8"/></a>
		      	</div>
	      	</div>
	      </td>
	    </tr>
	     <tr> 
	      <td height="20"></td>
	    </tr>
  	</TABLE>
<!--Fin Aqui va el cuerpo de la página -->
</div>
<%@ include file="/p06bComunJSP/p06bPie.inc"%>
</body>
</html>