<% Session("activo")=true conectar() %> ::: CONGRESO PERUANO DE EDUCACION MEDICA :::
  LISTA DE VALIDADOS - LISTA DE REGISTRADOS - LISTA DE TRABAJOS
<% 'entre " " va el nombre de la tabla, y luego de la "," se indica la BD que contiene esa tabla. 'El número que le sigue, el "1", es la forma de abrir la tabla. Sql= "SELECT i.nom_par, i.apep_par, i.apem_par, i.pais_par, i.tipo_par, i.doc_par, i.uni_par, i.esp_par, " Sql= Sql & " i.codgen_pas, i.email1_par, t.titulo " Sql= Sql & " FROM inscritos2007 as i, trabajos as t " Sql= Sql & " WHERE i.inscrito=1 and i.codgen_pas=t.codpar and t.valido=1 ORDER BY i.apep_par, i.apem_par" x=0 p=0 e=0 rs.Open Sql, Conn do while not rs.eof x=x+1 if (rs("tipo_par")="p") then p=p+1 else e=e+1 end if %> <%rs.movenext loop rs.close %>
Nombre
<%=x%> <% =rs("codgen_pas") %>
<% =rs("titulo") %>
  "><%=rs("apep_par")&" "&rs("apem_par")&", "&rs("nom_par")%>
ESTADISTICAS
Profesionales
<%=p %> <% if (x>0) then response.Write(formatnumber(100*p/x,2)) else response.Write(0) end if %> %
Estudiantes
<%=e %> <% if (x>0) then response.Write(formatnumber(100*e/x,2)) else response.Write(0) end if %> %