Ver Mensaje Individual
  #5 (permalink)  
Antiguo 08/08/2007, 19:55
stephen64_14
 
Fecha de Ingreso: julio-2007
Ubicación: barranquilla, colombia
Mensajes: 16
Antigüedad: 16 años, 9 meses
Puntos: 0
Re: ayuda sobre rowspan

Código HTML:
<!--#include VIRTUAL="/Calculator/conexion.asp" -->

<script language="JavaScript" type="text/javascript" src="/Common/JS/funciones.js"></script>
<center><br>

<table width="92%" cellspacing="0" cellpadding="0" align="center" class="borde_azulclaro">

<tr>
       <td width="296" height="14" align="center" valign="top" background="../../Common/JS/zpgrid/themes/lightblue/headBlueLight.jpg" class="texto_negro" style="font-weight: bold">CLIENTE</td>

       <td width="222" align="center" valign="top" background="../../Common/JS/zpgrid/themes/lightblue/headBlueLight.jpg" class="texto_negro" style="font-weight: bold">MODELO PRODUCTO</td>

       <td width="130" align="center" background="../../Common/JS/zpgrid/themes/lightblue/headBlueLight.jpg" class="texto_negro" style="font-weight: bold">CANTIDAD</td>

    <td width="5"></td>
</tr>

<%
Set rs1 = conexion.Execute("select C.Consecutivo, C.Nombre, C.Empresa from Calc_Clientes C where C.Consecutivo in (Select ConsecutivoCliente from Calc_Quick_Tableros where ConsecutivoCliente=C.Consecutivo) order by Empresa")

do while not rs1.eof

StrSQL2="select S.ConsecutivoGLES, count(S.ConsecutivoGLES) from Calc_Quick_Tableros_Solucion S, Calc_Quick_Tableros T, Calc_Clientes C where S.ConsecutivoTablero=T.Consecutivo and T.Activo=1 and T.ConsecutivoCliente=C.Consecutivo and C.Consecutivo="&rs1(0)&" group by ConsecutivoGLES"

Set rs2 = conexion.Execute(StrSQL2)

do while not rs2.eof

StrEquipo="Select EquipoNombre, EquipoAmps, EquipoVoltaje from Calc_Equipos where consecutivo=" & rs2(0)

set rs3=conexion.execute(StrEquipo)

%>

   <tr>

          <td height="23" class="texto_negro_12" valign="top"><%=rs1("Empresa")%></td>      

         <td class="texto_negro_12" valign="top"><%=rs3(0)&"&nbsp"&rs3(1)&"@"&rs3(2)%></td>

         <td class="texto_negro_12" align="center" valign="top"><%=rs2(1)%></td>

         <td>&nbsp;</td>

   </tr>

    <tr bgcolor="#CCCCCC"> 

    <td height="1" colspan="4" align="center"><img src="/Common/Images/spacer.gif" width="17" height="1"></td>

    </tr>

<%

rs2.movenext    
loop

rs1.movenext    
loop
%>
</table> 

lo q quiero hacer es un rowspan donde me muestre una sola vez el nombre del cliente y en la celda de al lado el modelo de productos q pueden ser varios...pero para hacer ese rowspan "creo" q tengo q hacer una consulta...

Última edición por stephen64_14; 08/08/2007 a las 20:06