Tema: anidar div
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/03/2007, 02:30
Avatar de chikiya
chikiya
 
Fecha de Ingreso: mayo-2006
Mensajes: 46
Antigüedad: 18 años
Puntos: 0
Re: anidar div

<div style="overflow:visible;background-repeat: no-repeat;width: 750px;height: 405px;position: relative;left: 215px;font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size: 10px;font-style: normal;color: #4C5D93; font-weight: normal;line-height: 1.4em;overflow:visible;">
<table>
<tr>
<td valign="top">
<div id="descripcion_servicio">
<span class="texto_secserv">
<ics:getvar name="textoDescripcion" encoding="default" output="txt"/><render:stream variable="txt"/></span>
<script language="javascript">
var documentos = Array();
function abrirDocumento(numDoc){
if (documentos[numDoc]){
window.location = documentos[numDoc];
}else{
alert("No se ha encontrado el documento solicitado.");
}
}
</script>
<%
int numDocumentos = 1;
%>
<table width="80%">
<%
String mostrarTitulo = "false";
for (int i=1;i<21;i++){
if ( ics.GetVar("a:urldocumento"+i+"_file")!=null && !(ics.GetVar("a:urldocumento"+i+"_file")).equals(" ") ){
if (mostrarTitulo.equals("false")){
mostrarTitulo = "true";
%>
<tr><br><br></tr>
<tr><td colspan="2"><STRONG>Documentos anexos:</STRONG></td></tr>
<tr><td colspan="2"></td></tr>
<%
}
if (numDocumentos % 2 != 0) {
%>
<tr>
<%
}
%>
<td width="50%">
<%
String nombre = "a:urldocumento"+i+"_file";
int indice = ics.GetVar(nombre).lastIndexOf(".");
String extension = ics.GetVar(nombre).substring(indice+1);
String consulta = "SELECT mimetype FROM MimeType WHERE extension='" + extension + "'";
String header = "";
%>
<ics:sql sql='<%=consulta%>' listname="lstMime" table="MimeType"/>
<%
IList lstMime = ics.GetList("lstMime");
if (lstMime!=null && lstMime.hasData()){
header = lstMime.getValue("mimetype");
lstMime.flush();
}
%>
<render:getbloburl blobnocache="true" blobheader='<%=header%>' blobtable="Servicio" blobcol='<%="urldocumento"+i%>' blobkey="id" blobwhere='<%=ics.GetVar("idS")%>' outstr="urlpath">
<render:argument name="blobheadername0" value="content-type"/>
<render:argument name="blobheadervalue0" value="application/octet-stream"/>
<render:argument name="blobheadername1" value="content-disposition"/>
<render:argument name="blobheadervalue1" value='<%= "attachment; filename="+ics.GetVar(nombre)%>'/>
</render:getbloburl>
<p><img src="img/icono_<%=extension%>.gif" width="20" height="20" valign="top" align="left" vspace="0" hspace="0">&nbsp;&nbsp;<a href='<%=ics.GetVar("urlpath")%>'/><ics:getvar name='<%=nombre%>'/></a></p>
<script language="javascript">
documentos[<%=i%>] = '<%=ics.GetVar("urlpath")%>';
</script>

</td>
<%
if(numDocumentos % 2 == 0) {
%>
</tr>
<%
}
numDocumentos ++;
}
}//fin del for

if(numDocumentos % 2 == 0 ) {
%>
<td width="50%"></td></tr>
<%
}
%>
</table>
</div>

<div style="display:block;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size: 10px;font-style: normal;color: #000B6E;padding-top: 30px;position: relative;">
<a href="javascript:history.back()"><img src="img/bot_volver_on.gif"/></a><br><br><br><br>
</div>

</td>
</tr>
</table>
</div>

Bueno, ahi esta, quite algun codigo por medio de content server, porque sino es un rollo, pero no cierro el tr ni el td antes del div.y pinta el ultimo div por debajo del pie de pagina...
__________________

La belleza verdadera es la de las almas buenas