21/11/2008, 07:58
|
| | Fecha de Ingreso: marzo-2008
Mensajes: 171
Antigüedad: 16 años, 11 meses Puntos: 0 | |
Respuesta: [URGENTE - NO ES MI SEMANA] PROBLEMA OTRA VEZ EN IE y PHP ?
Código:
<?php require_once('Connections/colecciones.php'); ?>
<?php
$colname_categorias = "-1";
if (isset($_GET['IDCategoria'])) {
$colname_categorias = (get_magic_quotes_gpc()) ? $_GET['IDCategoria'] : addslashes($_GET['IDCategoria']);
}
mysql_select_db($database_colecciones, $colecciones);
$query_categorias = sprintf("SELECT * FROM categoria WHERE IDCategoria = %s", $colname_categorias);
$categorias = mysql_query($query_categorias, $colecciones) or die(mysql_error());
$row_categorias = mysql_fetch_assoc($categorias);
$totalRows_categorias = mysql_num_rows($categorias);
$colname_producto = "-1";
if (isset($_GET['IDCategoria'])) {
$colname_producto = (get_magic_quotes_gpc()) ? $_GET['IDCategoria'] : addslashes($_GET['IDCategoria']);
}
mysql_select_db($database_colecciones, $colecciones);
$query_producto = sprintf("SELECT * FROM producto WHERE IDCategoria = %s ORDER BY Nombre ASC", $colname_producto);
$producto = mysql_query($query_producto, $colecciones) or die(mysql_error());
$row_producto = mysql_fetch_assoc($producto);
$totalRows_producto = mysql_num_rows($producto);
mysql_select_db($database_colecciones, $colecciones);
$query_modelo = "SELECT * FROM modelo ORDER BY IDProducto ASC";
$modelo = mysql_query($query_modelo, $colecciones) or die(mysql_error());
$row_modelo = mysql_fetch_assoc($modelo);
$totalRows_modelo = mysql_num_rows($modelo);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Polo Club | Coleccion Adultos</title>
<style type="text/css">
<!--
#contenedor {
height:1200px;
position:relative;
width:840px;
margin: 0 auto;
background-image: url(pasto-fondo.jpg);
background-repeat: repeat;
top: 20px;
left: 0px;
}
#botonera {
position: absolute;
height: 130px;
width: 840px;
left: 0px;
top: 0px;
background-image: url(fondo_flash.png);
}
#titulo {
position: absolute;
height: 20px;
width: 150px;
left: 347px;
top: 0px;
font-family: "Adobe Garamond Pro";
font-size: 13px;
font-weight: bold;
color: #C1B067;
}
#nombre {
position: absolute;
height: 20px;
width: 130px;
top: 10px;
left: 0px;
}
#productos {
position: absolute;
height: 874px;
width: 689px;
top: 11px;
left: -1px;
}
#titulo_franq {
font-family: "Adobe Garamond Pro";
font-size: 13px;
font-weight: bold;
color: #C1B067;
position: absolute;
height: 20px;
width: 150px;
top: 0px;
left: 347px;
}
.puntos_franq {
line-height: 21px;
}
#barra_der {
position: absolute;
height: 895px;
width: 24px;
left: 776px;
top: 74px;
background-image: url(linea-derecha.gif);
}
.texto_ventas {
position: absolute;
height: 169px;
width: 380px;
left: 272px;
top: 12px;
}
#caja_ventas {
position: absolute;
height: 890px;
width: 700px;
top: 74px;
left: 78px;
}
#locales {
position: absolute;
height: 200px;
width: 712px;
top: 40px;
left: 65px;
}
.foto {
position: absolute;
top: 34px;
left: 0px;
height: 306px;
width: 206px;
}
.texto_franq_1 {
font-family: "Adobe Garamond Pro";
font-size: 13px;
color: #666666;
font-weight: 200;
}
#textos_franq {
position: absolute;
height: 395px;
width: 385px;
top: 0px;
left: 300px;
}
.texto_franq {
position: absolute;
height: 398px;
width: 372px;
left: 310px;
top: 2px;
}
.linead_ventas {
position: absolute;
height: 205px;
width: 15px;
left: 233px;
top: 0px;
}
body {
margin-top: 0px;
background-image: url(pasto-fondo.jpg);
background-repeat: repeat;
}
.linea_dor_fran {
position: absolute;
height: 390px;
width: 1px;
left: 284px;
top: 0px;
}
#tit_main_store {
position: absolute;
height: 360px;
width: 241px;
top: 40px;
left: 75px;
}
.linea_dorada {
position: absolute;
height: 352px;
width: 15px;
top: 0px;
left: 220px;
}
#barra_abajo {
position: absolute;
height: 100px;
width: 790px;
top: 1095px;
left: 25px;
background-image: url(barra-baja2.png);
}
#barra_arriba {
position: absolute;
height: 24px;
width: 760px;
top: 50px;
left: 40px;
background-image: url(barra-divisoria1.gif);
}
#barra_izq {
position: absolute;
height: 895px;
width: 24px;
left: 40px;
top: 74px;
background-image: url(linea-izquierda.gif);
}
#texto_fran_1 {
position: absolute;
height: 10px;
width: 380px;
top: 0px;
left: 0px;
}
#texto_fran_2 {
position: absolute;
height: 30px;
width: 370px;
top: 25px;
left: 0px;
}
#texto_fran_3 {
position: absolute;
height: 30px;
width: 370px;
top: 115px;
left: 0px;
color: #BCAB67;
font-weight: bold;
font-size: 14px;
}
#texto_fran_4 {
position: absolute;
height: 120px;
width: 350px;
top: 165px;
left: 0px;
}
#texto_fran_5 {
position: absolute;
height: 20px;
width: 380px;
top: 370px;
left: 0px;
}
#texto_fran_6 {
position: absolute;
height: 20px;
width: 380px;
top: 62px;
left: 0px;
}
#contenido {
position: absolute;
height: 965px;
width: 840px;
top: 130px;
background-repeat: repeat;
background-image: url(fondo_cont.png);
}
body,td,th {
font-family: Times New Roman;
}
.nombre_prod {
font-family: "Adobe Garamond Pro";
font-size: 14px;
color: #C1B067;
font-weight: bold;
}
#form { position: absolute;
height: 401px;
width: 380px;
left: 297px;
top: 0px;
}
.Estilo17 {
font-family: Arial;
font-size: 12px;
}
.Estilo1 { font-size: 12px;
font-weight: bold;
font-family: Arial;
}
#cat_colad { position: absolute;
height: 20px;
width: 425px;
left: 5px;
top: 25px;
font-family: "Adobe Garamond Pro";
font-size: 14px;
color: #2C7E51;
text-align: center;
font-style: italic;
}
#menu_adultos { position: absolute;
height: 50px;
width: 435px;
left: 220px;
top: 1px;
}
#tit_colecc { position: absolute;
height: 15px;
width: 425px;
left: 5px;
top: 3px;
font-family: "Adobe Garamond Pro";
font-size: 14px;
font-weight: bold;
color: #C1B067;
text-align: center;
}
a:link {
color: #2C7E51;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #2C7E51;
}
a:hover {
text-decoration: none;
color: #2C7E51;
}
a:active {
text-decoration: none;
color: #2C7E51;
}
-->
</style>
</head>
<body>
<div id="contenedor">
<div id="botonera">
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="760" height="130">
<param name="movie" value="botonera.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="botonera.swf" width="760" height="130" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</div>
</div>
<div id="contenido">
<div id="barra_arriba"></div>
<div id="barra_izq"></div>
<div id="barra_der"></div>
<div id="caja_ventas"><img src="pixel_dorado.jpg" width="1" height="1" />
<div id="productos">
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="242"><?php do { ?>
<table width="138" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="138" height="159" valign="top"><table width="127" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="96%" height="64"><table width="127" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="127"><div align="center"><a href="detalle_prod.php?IDProducto=<?php echo $row_producto['IDProducto']; ?>"><iframe src ="img_modc.php?IDProducto=<?php echo $row_producto['IDProducto']; ?>" width="130" height="195" scrolling="no" frameborder="0" id="img" name="img"> </iframe></a></div></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" valign="top"><div align="center" class="nombre_prod"><?php echo $row_producto['Nombre']; ?></div></td>
</tr>
</table>
<?php } while ($row_producto = mysql_fetch_assoc($producto)); ?></td>
</tr>
</table>
</div>
</div>
<div id="menu_adultos">
<div id="tit_colecc">COLECCION / ADULTOS </div>
<div id="cat_colad">camisas <a href="coleccion_adultoscmc.php?IDCategoria=31">mc</a> - <a href="coleccion_adultoscml.php?IDCategoria=32">ml</a> / <a href="coleccion_adultos.php?IDCategoria=33">chombas</a> / <a href="coleccion_adultos.php?IDCategoria=34">remeras</a> / <a href="coleccion_adultos.php?IDCategoria=41">bermudas</a> / <a href="coleccion_adultos.php?IDCategoria=42">pantalones</a> / <a href="coleccion_adultos.php?IDCategoria=43">shorts</a> / <a href="coleccion_adultoscamp.php?IDCategoria=44">camperas</a></div>
</div>
</div>
<div id="barra_abajo"></div>
</div>
</body>
</html>
<?php
mysql_free_result($categorias);
mysql_free_result($producto);
mysql_free_result($modelo);
?>
|