afficher les images sur plus d'une colonne
Posté : 06 juin 2007, 10:06
Salut,
Ce module permet d'afficher 10 images sur une seulle colonne.
Moi je voudrais qu'il me les affichent sur plusieurs colonnes de 3 images chacunes avec du texte à gauche de chaqu'image..
Je vous passe le code source du module afin que vous puissiez mz venir en aide:
<?php
/**
* @version $Id: mod_ppolaroid.php 07 2005-11-03 19:15:40Z rabencor $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_live_site;
$orientation = $params->get( 'orientation' );
$imagepath = $mosConfig_live_site.$params->get( 'imgfolder' );
$imagewidth = $params->get( 'imgw' );
$imageheight = $params->get( 'imgh' );
$imagespacing = $params->get( 'imgspace' );
$image01 = $params->get( 'img01' );
$image02 = $params->get( 'img02' );
$image03 = $params->get( 'img03' );
$image04 = $params->get( 'img04' );
$image05 = $params->get( 'img05' );
$image06 = $params->get( 'img06' );
$image07 = $params->get( 'img07' );
$image08 = $params->get( 'img08' );
$image09 = $params->get( 'img09' );
$image10 = $params->get( 'img10' );
$links = $params->get( 'links' );
$link01 = $params->get( 'link01' );
$link02 = $params->get( 'link02' );
$link03 = $params->get( 'link03' );
$link04 = $params->get( 'link04' );
$link05 = $params->get( 'link05' );
$link06 = $params->get( 'link06' );
$link07 = $params->get( 'link07' );
$link08 = $params->get( 'link08' );
$link09 = $params->get( 'link09' );
$link10 = $params->get( 'link10' );
$frame = $params->get( 'frameimg' );
$framewidth = $params->get( 'framewidth' );
$framebg = $params->get( 'framebg' );
$frameborder = $params->get( 'frameborder' );
$framebcolor = $params->get( 'framebcolor' );
$container = $params->get( 'container' );
$containerpad = $params->get( 'containerpad' );
$containerbg = $params->get( 'containerbg' );
$containerb = $params->get( 'containerborder' );
$containerbcol = $params->get( 'containerbcolor' );
$imagelist = array($image01, $image02, $image03, $image04, $image05, $image06, $image07, $image08, $image09, $image10);
$linklist = array($link01, $link02, $link03, $link04, $link05, $link06, $link07, $link08, $link09, $link10);
$absimage = $imagepath.$image01;
$imgdim = getimagesize($absimage);
if ($imagewidth=='') { $imagewidth = $imgdim[0]; };
if ($imageheight=='') { $imageheight = $imgdim[1]; };
if(!$container) { $containerpad = 0; $containerbg = 0; $containerb = 'none'; };
if($links) { $tg = '_blank'; } else { $tg = '_self'; };
echo '<div align="center">';
echo '<table><tr>';
if ($orientation) {
echo '<td align="center" valing="middle" style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<table cellpadding="0" cellspacing="'.$framewidth.'">';
for ($i = 0; $i <= 9; $i++) {
if($imagelist[$i]) {
echo '<tr><td style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<a href="http://'.$linklist[$i].'" target="'.$tg.'">';
echo '<img src="'.$imagepath.$imagelist[$i].'" width="'.$imagewidth.'" height="'.$imageheight.'" border=0"/></a> <br/>';
echo '</td></tr>';
};
};
echo '</table>';
echo '</td>';
} else {
echo '<td valing="middle" style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<table cellpadding="0" cellspacing="'.$framewidth.'"><tr>';
for ($i = 0; $i <= 9; $i++) {
if($imagelist[$i]) {
echo '<td style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<a href="http://'.$linklist[$i].'" target="'.$tg.'">';
echo '<img src="'.$imagepath.$imagelist[$i].'" style="margin:'.$imagespacing.'px; width="'.$imagewidth.'" height="'.$imageheight.'" border=0 <br/>"/></a>';
echo '</td>';
};
};
echo '</tr></table>';
echo '</td>';
};
echo '</tr></table>';
echo '</div>';
?>
Merci.
Bauer
www.kwalai.com/kwalai
Ce module permet d'afficher 10 images sur une seulle colonne.
Moi je voudrais qu'il me les affichent sur plusieurs colonnes de 3 images chacunes avec du texte à gauche de chaqu'image..
Je vous passe le code source du module afin que vous puissiez mz venir en aide:
<?php
/**
* @version $Id: mod_ppolaroid.php 07 2005-11-03 19:15:40Z rabencor $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_live_site;
$orientation = $params->get( 'orientation' );
$imagepath = $mosConfig_live_site.$params->get( 'imgfolder' );
$imagewidth = $params->get( 'imgw' );
$imageheight = $params->get( 'imgh' );
$imagespacing = $params->get( 'imgspace' );
$image01 = $params->get( 'img01' );
$image02 = $params->get( 'img02' );
$image03 = $params->get( 'img03' );
$image04 = $params->get( 'img04' );
$image05 = $params->get( 'img05' );
$image06 = $params->get( 'img06' );
$image07 = $params->get( 'img07' );
$image08 = $params->get( 'img08' );
$image09 = $params->get( 'img09' );
$image10 = $params->get( 'img10' );
$links = $params->get( 'links' );
$link01 = $params->get( 'link01' );
$link02 = $params->get( 'link02' );
$link03 = $params->get( 'link03' );
$link04 = $params->get( 'link04' );
$link05 = $params->get( 'link05' );
$link06 = $params->get( 'link06' );
$link07 = $params->get( 'link07' );
$link08 = $params->get( 'link08' );
$link09 = $params->get( 'link09' );
$link10 = $params->get( 'link10' );
$frame = $params->get( 'frameimg' );
$framewidth = $params->get( 'framewidth' );
$framebg = $params->get( 'framebg' );
$frameborder = $params->get( 'frameborder' );
$framebcolor = $params->get( 'framebcolor' );
$container = $params->get( 'container' );
$containerpad = $params->get( 'containerpad' );
$containerbg = $params->get( 'containerbg' );
$containerb = $params->get( 'containerborder' );
$containerbcol = $params->get( 'containerbcolor' );
$imagelist = array($image01, $image02, $image03, $image04, $image05, $image06, $image07, $image08, $image09, $image10);
$linklist = array($link01, $link02, $link03, $link04, $link05, $link06, $link07, $link08, $link09, $link10);
$absimage = $imagepath.$image01;
$imgdim = getimagesize($absimage);
if ($imagewidth=='') { $imagewidth = $imgdim[0]; };
if ($imageheight=='') { $imageheight = $imgdim[1]; };
if(!$container) { $containerpad = 0; $containerbg = 0; $containerb = 'none'; };
if($links) { $tg = '_blank'; } else { $tg = '_self'; };
echo '<div align="center">';
echo '<table><tr>';
if ($orientation) {
echo '<td align="center" valing="middle" style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<table cellpadding="0" cellspacing="'.$framewidth.'">';
for ($i = 0; $i <= 9; $i++) {
if($imagelist[$i]) {
echo '<tr><td style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<a href="http://'.$linklist[$i].'" target="'.$tg.'">';
echo '<img src="'.$imagepath.$imagelist[$i].'" width="'.$imagewidth.'" height="'.$imageheight.'" border=0"/></a> <br/>';
echo '</td></tr>';
};
};
echo '</table>';
echo '</td>';
} else {
echo '<td valing="middle" style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<table cellpadding="0" cellspacing="'.$framewidth.'"><tr>';
for ($i = 0; $i <= 9; $i++) {
if($imagelist[$i]) {
echo '<td style="padding:'.$containerpad.'px; background-color:'.$containerbg.'; border:'.$containerb.'px solid '.$containerbcol.';">';
echo '<a href="http://'.$linklist[$i].'" target="'.$tg.'">';
echo '<img src="'.$imagepath.$imagelist[$i].'" style="margin:'.$imagespacing.'px; width="'.$imagewidth.'" height="'.$imageheight.'" border=0 <br/>"/></a>';
echo '</td>';
};
};
echo '</tr></table>';
echo '</td>';
};
echo '</tr></table>';
echo '</div>';
?>
Merci.
Bauer
www.kwalai.com/kwalai