![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/10/2010, 14:43
|
![Avatar de stramin](http://static.forosdelweb.com/customavatars/avatar223191_4.gif) | | | Fecha de Ingreso: marzo-2008 Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 11 meses Puntos: 336 | |
Respuesta: Problema con imagenes cierto, se hace con HTML, en una tabla por ejemplo:
if ($myhandle = opendir(JPATH_ROOT.DS.'images'.DS.'com_jea'.DS.'im ages'.DS.$row->id.DS.'secondary'.DS.'preview')) { echo "<table><tr>"; $w=0; // Para contar la cantidad de columnas
while (false !== ($file = readdir($myhandle))) {
if ($file != "." && $file != "..") { echo "<td>";
$text .= '<img src="http://' .$_SERVER['SERVER_NAME'].DS.'images'.DS.'com_jea'.DS.'images'.DS.$row->id.DS.'secondary'.DS.'preview'.DS.$file.'">'; echo "</td>";
$w++; if($w>4){ echo "</tr><tr>"; $w=0; };// Si ya tiene 5 columnas comenzar una nueva
}
}
} echo "</tr></table>"; |