Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/08/2010, 08:34
bfam
 
Fecha de Ingreso: diciembre-2008
Mensajes: 9
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: Ayuda con columnas fijas en I6

[CENTER]Esto es el codigo de la jsp:

Código:
<script type="text/javascript" src="./js/funcionesTabla.js"></script>
<table class="tablaHoras" id="mainTable">
    <thead>
        <tr>
            <th><bean:message key="label.actividad"/></th>
            <th><bean:message key="label.operacion"/></th>                
            <logic:iterate id="auditoria" name="auditResumenForm" property="listaCabAudit">
                <th><bean:write name="auditoria" property="fechaEjec"/></th>
            </logic:iterate>
        </tr>
    </thead>
    <tbody>
        <logic:iterate id="operacion" name="auditResumenForm" property="listaResumenAuditorias" indexId="indice">
            <tr>
                <logic:notEmpty name="operacion" property="codActividad">
                    <th nowrap="nowrap" style="    font-weight: bold;" class="cab"><bean:write name="operacion" property="desActividad"/></th>
                    <th id="columnaAnchoMinimo" nowrap="nowrap" class="cab">&nbsp;</th>
                </logic:notEmpty>                                
                <logic:empty name="operacion" property="codActividad">
                    <th nowrap="nowrap" class="cab">&nbsp;</th>
                    <th id="columnaAnchoMinimo" nowrap="nowrap" class="cab"><bean:write name="operacion" property="desOperacion"/></th>
                </logic:empty>
                <logic:iterate id="porcentaje" name="operacion" property="listaValores">
                    <logic:notEmpty name="operacion" property="codActividad">
                        <td nowrap="nowrap" class="negrita"><bean:write name="porcentaje" property="valor"/> %</td>
                    </logic:notEmpty>
                    <logic:empty name="operacion" property="codActividad">
                        <td nowrap="nowrap"><bean:write name="porcentaje" property="valor"/> %</td>
                    </logic:empty>        
                </logic:iterate>
            </tr>                            
        </logic:iterate>
        <tr>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab"> &nbsp;</th>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab">&nbsp;</th>
            <logic:iterate id="auditoria" name="auditResumenForm" property="listaCabAudit">
                <td nowrap="nowrap">&nbsp;</td>
            </logic:iterate>
        </tr>                                
        <tr>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab">&nbsp;</th>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab"><bean:message key="label.totalM"/></th>
            <logic:iterate id="total" name="auditResumenForm" property="listaAuditTotales">
                <td nowrap="nowrap" class="negrita"><bean:write name="total" property="valor"/> %</td>
            </logic:iterate>
        </tr>
        <tr>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab">&nbsp;</th>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab"><bean:message key="label.observaciones"/></th>
                <c:url value="/auditoriasResumen.do" var="buscador">                        
                    <c:param name="do">verObservacionesAudit</c:param>                        
                </c:url>
            <logic:iterate id="observacion" name="auditResumenForm" property="listaObservaciones">
                <logic:notEmpty name="observacion" property="tipEstado">
                    <td nowrap="nowrap" style="text-align:center;"><html:img srcKey="imagenes.observaciones" altKey="label.observaciones" onclick="javascript:verObservacionAudit('${buscador}','${observacion.id.codInforme}');"/></td>
                </logic:notEmpty>    
                <logic:empty name="observacion" property="tipEstado">
                    <td nowrap="nowrap" style="text-align:center;">&nbsp;</td>
                </logic:empty>                                            
            </logic:iterate>
        </tr>                                
        <tr>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab">&nbsp;</th>
            <th nowrap="nowrap" style="    font-weight: bold;" class="cab"><bean:message key="label.auditoria.plandeaccion"/></th>
            <logic:iterate id="planAccion" name="auditResumenForm" property="listaPlanAccion">                                        
            <td nowrap="nowrap" style="text-align:center;">
                <c:url value="/auditoriasResumen.do" var="buscador">                        
                    <c:param name="do">verPlanAccionAudit</c:param>                        
                </c:url>
                <html:hidden  value="${planAccion.tipEstado}" styleId="${planAccion.id.codInforme}" name="planAccion" property="algunaAudit"/>
                <html:img styleId="img_${planAccion.id.codInforme}" src="<%=messages.getMessage("imagenes.blanco")%>" altKey="" onclick="javascript:verPlanAccionAudit('${buscador}','${planAccion.id.codInforme}');"/>                                    
            </td>                                            
            </logic:iterate>
        </tr>                                                                    
    </tbody>
</table>
<script type="text/javascript">
    if(typeof tableScroll == 'function'){tableScroll('mainTable');}
</script>


Entonces, yo tngo esa tabla, y las columnas son variables, es decir desde 1 columna hasta n, en realidad son auditorias.

Y creo que el codigo js es lo del final, lo que va despues del tag /table

Y el codigo js como es algo extenso lo subo a MU

[URL]http://www.megaupload.com/?d=RG384S20[/URL]