Foros del Web » Programando para Internet » PHP »

Galeria Emergente no muestra Thumbnails

Estas en el tema de Galeria Emergente no muestra Thumbnails en el foro de PHP en Foros del Web. Saludos realizando una galeria de productos me encuento con q cuando le doy click a sus thumbnails para q bara en la ventana emergente no ...
  #1 (permalink)  
Antiguo 16/04/2008, 13:53
Avatar de T4ke0veR  
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Galeria Emergente no muestra Thumbnails

Saludos
realizando una galeria de productos me encuento con q cuando le doy click a sus thumbnails para q bara en la ventana emergente no me muestra los thumbnails en la nueva ventana..
mi idea es en el ficha del productos hay 6 imagenes pequeñas q al darle click se muestra la imagen en emergente... pero en la emergente tambien quiero q se sigan mostrando los thumbnails pero no los muestran... no me da error ni nada
aqui les dejo los codigos...

verimagen.php (emergente)
Código PHP:
<?php require_once('Connections/incomed.php'); ?>
<?php

if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  
$theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch (
$theType) {
    case 
"text":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? "'" doubleval($theValue) . "'" "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}
$colname_Recordset1 "-1";
if (isset(
$_GET['id'])) {
  
$colname_Recordset1 $_GET['id'];
}
$colname_Recordset2 "-1";
if (isset(
$_GET['id'])) {
  
$colname_Recordset2 $_GET['id'];
}
mysql_select_db($database_incomed$incomed);
$query_Recordset1 sprintf("SELECT * FROM imagenes WHERE id = %s"GetSQLValueString($colname_Recordset1"int"));
$Recordset1 mysql_query($query_Recordset1$incomed) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 mysql_num_rows($Recordset1);

mysql_select_db($database_incomed$incomed);
$query_Recordset2 sprintf("SELECT * FROM productos WHERE id = %s"GetSQLValueString($colname_Recordset1"int"));
$Recordset2 mysql_query($query_Recordset1$incomed) or die(mysql_error());
$row_Recordset2 mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 mysql_num_rows($Recordset2);

?>
<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
.style1 {color: #999999}
-->
</style></head>


<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
  <tr>
    <td height="40" colspan="3" align="center" bgcolor="#666666"><span class="style1"><img src="images/galeria.jpg" width="470" height="40" /></span></td>
  </tr>
  <tr>
    <td colspan="3" align="center" bgcolor="#666666"><img src="images2/<?php echo $row_Recordset1['img']; ?>" border="1" borderclor="#FFFFFF" /></td>
  </tr>
  <tr>
    <td height="40" colspan="3" align="center" bgcolor="#666666"><span class="style1"></span></td>
  </tr>
  <tr>
    <td height="5" colspan="3" align="center" bgcolor="#333333"></td>
  </tr>
  <tr>
    <td width="10%" align="center">&nbsp;</td>
    <td align="center"><?php         $producto_id=$row_Recordset2['id'];
                                include(
'img_inc2.php');
 
?></td>
    <td width="10%" align="center">&nbsp;</td>
  </tr>
</table>
<?php
mysql_free_result
($Recordset1);
mysql_free_result($Recordset2);
?>
img_inc2.php
Código PHP:
<?php include('Connections/incomed.php');

// Variables de Configuración -----------------------------------
// Define el numero de Filas
$n_filas=6;

//***************************************************************
@$cat=$_REQUEST['id_pro'];
//$cat=6;

$fotos = array();
        
$sql="SELECT * FROM imagenes where id_pro=".$producto_id"  ORDER BY id ASC";
mysql_select_db ('incomed');
    
$sql_exec=mysql_query($sql);
    function 
imagengrande() 

window.open("verimagen.php?imagen=/iamges2/<?=$imagen;?>""""width=450,height=300"); 
}
    
/*while($row=mysql_fetch_assoc($sql_exec)){
            $tottal=mysql_affected_rows(); // Calculo el numero total de itms a listar
            }*/
$tottal=113;
// ------------------------------------------------------------------------------------------------------------------
$vert=$tottal/$n_filas;
$vert=round($vert);

?><style type="text/css">
<!--
body {
    margin-top: 0px;
    margin-left: 0px;
}
-->
</style>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="2">
  <!--DWLayoutTable-->
  <tr>
    <td width="100%" height="70"><table width="19%" height="70" border="0" align="center" cellpadding="0" cellspacing="5">
        
        <?php
        $a
=0;// Colocando el contador horizontal en 0
        
$i=1;// Colocando el contador vertical en 0
        
$w=0;//Colocando un contador para el mensaje de "No hay articulos en esta acategoria"
        
            
while($rowa=mysql_fetch_assoc($sql_exec)){
            
$w=w+1;
                if (
$a==0){
                echo 
'<tr>';
                }
                
$a=$a+1;
                
$fotos[$i.'-'.$a] = $rowa['img'];
                
                echo 
"<td height='80' width='53' border='0' ><a href='verimagen.php?id=".$rowa['id']."; '><img src='images2/".$rowa['img']."' width='80' height='53' border='0'/></a>";
            
                
$r=$a;// contador remanente para listar imagenes sin exceso
                
                    
if ($a >= $n_filas) {
                    
$a=0;// reiniciando el contador horizontal
                    
$i=$i+1;// aumentando el contador vertical
                    
echo '</tr>';
                    } 
            if (empty(
$rowa)) {
        echo
"<table width='0' border='0' align='center' cellpadding='0' cellspacing='0'>
          <tr>
            <td width='257'><div align='center'>No hay articulos en esta categoria </div></td>
          </tr>
        </table>
        "
;
        break 
1;}
            
            }
            
         echo 
'</td>';
        
?>
        <?php /*if (empty($w)) {
        echo"<table width='0' border='0' align='center' cellpadding='0' cellspacing='0'>
          <tr>
            <td width='492'><div align='center'>No hay articulos en esta categoria </div></td>
          </tr>
        </table>
        ";
        exit;}
        */
?>
    </table></td>
  </tr>
</table>
No se si es q no esta pasando el id ... pero deberia de mostrarme los thumbnails en la emergente tambien!!!!

Gracias de antemano
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...
  #2 (permalink)  
Antiguo 17/04/2008, 07:34
Avatar de T4ke0veR  
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Re: Galeria Emergente no muestra Thumbnails

nadie sabe donde esta mi error??
aqui les dejo un link para q vean q pasa

http://indexa.com.ve/incomed/ficha_prod.php?id=1
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...
  #3 (permalink)  
Antiguo 17/04/2008, 08:14
Avatar de T4ke0veR  
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Re: Galeria Emergente no muestra Thumbnails

bueno... caso resuleto :)
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:04.