<?php
require_once('config/BD.php');
require_once 'ResizePicture.php';
$queryprod = "SELECT * FROM productos ORDER BY RAND() DESC LIMIT 0,9";
function imageResize($width, $height, $target) {
if ($width > $height) {
$percentage = ($target / $width);
} else {
$percentage = ($target / $height);
}
$width = round($width * $percentage); $height = round($height * $percentage);
return "width=\"$width\" height=\"$height\"";
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $Titulo;?></title>
<link href="adm/Estilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
/*background-image: url(imagenes/fondo.gif);*/
background:#CCCCCC;
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
-->
</style>
</head>
<!--<body leftmargin="0" topmargin="13" bgcolor="#F7FEE1" marginheight="0" marginwidth="0">-->
<body>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="940">
<tbody>
<tr>
<!--<td width="21" height="88"><img src="imagenes/izq.png" width="21" height="88"></td>
<td background="imagenes/full.png" height="88"></td>
<td width="21" height="88"><img src="imagenes/dere.png" width="21" height="88"></td>-->
<!--TEMPORAL--><td background="imagenes/fondo2.png" height="88"></td>
</tr>
</tbody>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="940" height="30">
<tbody>
<tr>
<td background="imagenes/fondo3.png"><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="574" height="35" align="right">
<param name="movie" value="imagenes/Menu.swf">
<param name="quality" value="high">
<embed src="imagenes/Menu.swf" width="574" height="35" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object> </td>
</tr>
</tbody>
</table>
<table align="center" bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="5" width="940">
<tbody>
<tr>
<td width="2"></td>
<td align="left" height="23" valign="top" width="168">
<br>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="175">
<tbody>
<tr>
<td width="19"><img src="imagenes/Cu1.png" height="43" width="19"></td>
<td align="left" background="imagenes/bg1.png" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="right" valign="top">Categorias</td>
<td align="right" valign="top" width="10"></td>
</tr>
</tbody>
</table>
</td>
<td width="19"><img src="imagenes/Cu2.png" height="43" width="19"></td>
</tr>
<tr>
<td background="imagenes/bg2.png" width="19"></td>
<td bgcolor="#C7C4C4">
<table border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td height="5"></td>
<td height="5"></td>
</tr>
<?php do { ?>
<tr>
<td valign="top" width="7"><img src="imagenes/lider/Arrow_01.gif" height="11" width="7"></td>
<td><?php echo $rowcate['nombre']; ?></td>
</tr>
</tbody>
</table>
</td>
<td background="imagenes/bg3.png" width="19"></td>
</tr>
<tr>
<td align="left" width="19"><img src="imagenes/Cu3.png" height="35" width="19"></td>
<td background="imagenes/bg4.png"></td>
<td align="right" width="19"><img src="imagenes/Cu4.png" height="35" width="19"></td>
</tr>
</tbody>
</table>
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td>
Pagina
</td>
<td align="right">
<br>
<form action="searchresult.asp" method="get">
<table border="0" cellpadding="0" cellspacing="0" width="177">
<tr>
<td>
<select name="select" onChange="MM_jumpMenu('parent',this,0)" id="Select1">
<option selected="selected">Buscador de Productos</option>
<?php do { ?>
<option value="<?php echo $rowcate1['ID']; ?>"><?php echo $rowcate1['nombre']; ?></option>
</select>
</td>
</tr>
<tr>
<td>
<input name="Criteria" size="20" type="text">
</td>
<td>
<input name="Enviar" value="Buscar" border="0" type="submit">
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td colspan="2" align="center" height="3"></td>
</tr>
<tr>
<td align="center" height="45">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="paginas_texto">
<tr>
<td>
<br>
</td>
</tr>
</table>
</td>
<td align="center" valign="top">
</td>
</tr>
<tr>
<td colspan="2">
<!--Productos Destacados-->
<table border="0" align="center" cellspacing="5">
<?php
$endRow = 0;
$columns = 3; // Numero de Columnas
$hloopRow1 = 0; // Flag
do
{
if($endRow == 0 && $hloopRow1++ != 0)
echo "<tr>";
echo "<td>";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td width="11"><img src="imagenes/imgesq1.png" height="12" width="11" /></td>
<td height="12" background="imagenes/imgful1.png"></td>
<td width="11"><img src="imagenes/imgesq2.png" height="12" width="11" /></td>
</tr>
<tr>
<td background="imagenes/imgful3.png" width="11"></td>
<td>
<?php
$raiz="C:/AppServ/www/imagenes/productos/";
$imgs= $productosrow['img'];
$fil=".jpg";
$completo=$raiz
.$imgs
.$fil;
$width=$pix[0]/1.5;
$height=$pix[1]/1.5;
?>
<img src="/imagenes/productos/<?php echo $imgs; ?>.jpg" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
</td>
<td background="imagenes/imgful4.png" width="11"></td>
</tr>
<tr>
<td width="11"><img src="imagenes/imgesq3.png" height="12" width="11" /></td>
<td height="12" background="imagenes/imgful2.png"></td>
<td width="11"><img src="imagenes/imgesq4.png" height="12" width="11" /></td>
</tr>
<tbody>
</table>
<?php
echo "</td>";
$endRow++;
if($endRow >= $columns)
{
echo "</tr>";
$endRow = 0;
}
}
?>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td width="2"></td>
</tr>
</tbody>
</table>
</body>