Foros del Web » Programando para Internet » Javascript »

Identificar lenguaje

Estas en el tema de Identificar lenguaje en el foro de Javascript en Foros del Web. Buen dia, Alguien por favor me colabora y me ayuda a saber que lenguaje es este. Gracias <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.*" errorPage="" %> ...
  #1 (permalink)  
Antiguo 09/02/2011, 08:26
 
Fecha de Ingreso: marzo-2009
Mensajes: 26
Antigüedad: 15 años, 1 mes
Puntos: 0
Identificar lenguaje

Buen dia,


Alguien por favor me colabora y me ayuda a saber que lenguaje es este.

Gracias

<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.*" errorPage="" %>
<%@include file="../usuarios/eliminar_cache.jsp"%>
<%@include file="../usuarios/verificar_autenticacion.jsp"%>
<jsp:useBean id="con" class="BaseDatos.Conexion"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Reporte Fecha <%=request.getParameter("fecha")%></title>
<link href="../css/situct.css" rel="stylesheet" type="text/css" />
</head>
<center>
<body>
<table width="800" class="color_tabla_reporte">
<tr>
<th class="titulo_reporte_negro">INGRESOS TASA DE USO
</table>
<table width="800" class="color_tabla_reporte">
<tr align="left">
<form name="formulario" id="formulario" method="post" action="../reportes/fecha.jsp">
<input name="fecha" id="fecha" value="<%=request.getParameter("fecha")%>" type="hidden"/>
<input name="empresas" id="empresas" value="si" type="hidden"/>
</form>
<th colspan="6" class="titulo_reporte_negro">FECHA: <%=request.getParameter("fecha")%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="salir" id="salir" type="button" value="Salir" onclick="document.formulario.submit();"/>
</th>
<tr>
<th>
</th>
</table>

<table width="800" cellpadding="0" cellspacing="0" border="1" bordercolor="#000000" class="color_tabla_reporte">
<tr class="titulo_casilla_reporte" align="center">
<td width="200">EMPRESAS </td>
<td width="100">TOTAL</td>
<td width="100">PRUEBA ALCOHOL </td>
<td width="100">20% PRUEBA</td>
<td width="100">TRANSITO</td>
<td width="100">ORIGEN</td>

<%
int total = 0;
int prueba = 0;
int pru = 0;
int por = 1;
float porcentaje = 0;
int transito = 0;
int origen = 0;
ResultSet rs = con.consultar("select distinct nom_empresa from turno t inner join tasa_uso tu on t.id_turno=tu.id_turno where fecha='"+request.getParameter("fecha")+"' and placa!='ANULADO' order by nom_empresa");
while(rs.next())
{
ResultSet sume = con.consultar("select sum(tasa_origen) as origen,sum(tasa_prueba) as prueba,sum(tasa_transito) as transito,sum(tasa_origen)+sum(tasa_prueba)+sum(tas a_transito) as total from turno t inner join tasa_uso tu on t.id_turno=tu.id_turno where fecha='"+request.getParameter("fecha")+"' and nom_empresa='"+rs.getString("nom_empresa")+"'");
sume.first();
total+=sume.getInt("total");
prueba+=sume.getInt("prueba");
porcentaje+=sume.getInt("prueba")*0.20;
document.write(Math.floor("porcentaje")
transito+=sume.getInt ("transito");
origen+=sume.getInt("origen");
%>

<tr class="titulo_casilla_reportes" align="center">
<td height="27" align="left"><%=rs.getString("nom_empresa")%></td>
<td align="right">$<%=sume.getInt("total")%></td>
<td align="right">$<%=sume.getInt("prueba")%></td>
<%
pru = 1;
pru*=sume.getInt("prueba")*0.20;
%>
<td align="right">$<%=pru%></td>
<td align="right">$<%=sume.getInt("transito")%></td>
<td align="right">$<%=sume.getInt("origen")%></td>
<%
sume.close();
}
rs.close();
%>
<tr class="titulo_casilla_reporte" align="center">
<td align="center" class="titulo_reporte_negro">TOTALES</td>
<td align="right">$<%=total%></td>
<td align="right">$<%=prueba%></td>
<%por*=porcentaje;%>
<td align="right">$<%=por%></td>
<td align="right">$<%=transito%></td>
<td align="right">$<%=origen%></td>
<tr class="titulo_casilla_reporte" align="center">
<td align="center" class="titulo_reporte_negro">$<%=total%></td>
<td align="center"></td>
<td align="center">80% PRUEBA</td>
<%
prueba*=0.80;
%>
<td align="right">$<%=prueba%></td>
<td align="center"></td>
<td align="center"></td>
</table>


<%
con.cerrar();
%>
</body>
</center>
</html>
  #2 (permalink)  
Antiguo 09/02/2011, 08:27
Avatar de IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Identificar lenguaje

es jscript

Última edición por IsaBelM; 09/02/2011 a las 08:36
  #3 (permalink)  
Antiguo 09/02/2011, 08:31
 
Fecha de Ingreso: marzo-2009
Mensajes: 26
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: Identificar lenguaje

Gracias hermano,


Disculpa una pregunta


Como hago para redondear unos numero en este lenguaje?
  #4 (permalink)  
Antiguo 09/02/2011, 08:36
Avatar de IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Identificar lenguaje

para redondear decimales tienes la función round(). si tienes alguna otra pregunta sobre este lenguaje, pregunta en el foro de asp

Etiquetas: lenguaje, identificador
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:18.