Título: mostrar imagenes en php Publicado por: loogico en 17 Noviembre 2015, 03:30 am Hola deseo que alguien me ayude con esta rutina php que solo me muetra 6 imagene cuando se ejecuta y to deseo motrar 12
<!-- Middle Block2 area starts --> <?php if(isset($right1) && !empty($right1)) { ?> <div class="product_listing_Horizontal"> <div class="heading"><?php if(isset($right1title)) echo $right1title;?></div> <ul style="height:auto; "> <?php $i = 0; foreach($right1 as $ft) { $i++; if($i % 5 == 0) $stylemargin = 'style="margin: 0 0 0 0"'; else $stylemargin = ""; ?> <li <?php echo $stylemargin;?>> <div> <div class="prdct_img"> <?php $pure_product_name = cleanspecialchars($ft["Product"]["pname"]); $pure_product_desc = cleanspecialchars($ft["Product"]["descr"]); //$url ='products/show/'.$pure_product_name.'/'.$ft["Product"]["id"]; $url =$html->url('/products/show/'.$pure_product_name.'/'.$ft["Product"]["id"]); // Product Image $imgOrig = $imgUrl = $imgClass = NULL; $imgPath = '/img/noimages_disp.gif'; if(isset($ft["Productimages"]) && $ft["Productimages"] <> '') { $imgInfo = array(); $img = $ext = NULL; $imgInfo = pathinfo($ft["Productimages"]); $img=$imgInfo['filename']; $ext='.'.$imgInfo['extension']; if(is_file(WWW_ROOT.IMAGES_URL.'products/'.$img.'_thumb'.$ext)){ $imgOrig = $cnfg["sitebasefolder"].'/img/products/'.$img.$ext; $imgPath = '/img/products/'.$img.'_disp'.$ext; } } // Product Image End ?> <a href='<?php echo $imgUrl; ?>' class="<?php echo $imgClass; ?>" onclick="return redirectPage('<?php echo $url;?>');"> <?php echo $html->image($imgPath,array('border' => '0','width' => '250','height' => '230')); ?> </a> Título: Re: mostrar imagenes en php Publicado por: gAb1 en 17 Noviembre 2015, 10:37 am Por favor, da un poco más de información: 1º Qué estas intentando hacer y 2º Cual es tu problema.
Y ordena un poco tu código: aplicale un estilo básico (https://es.wikipedia.org/wiki/Estilo_de_programaci%C3%B3n) y envuelvelo en las etiquetas de código php o no podremos enterarnos de que estás intentando hacer. |