elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado:


  Mostrar Mensajes
Páginas: [1]
1  Programación / PHP / mostrar imagenes en php 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>
                                   
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines