Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 00122cf57d | |||
| 45fc15edf6 | |||
| 5db340bd4e | |||
| ecb6f07835 | |||
| 47f4b14cb4 | |||
| 3b35a49852 | |||
| e6ec77a78c | |||
| dd89620ad7 | |||
| 75bd9cca22 | |||
| 9b70b1e4c4 | |||
| 63c49a542c | |||
| 8ef9b1d0d8 | |||
| 96fdd18317 | |||
| a6ab8ef822 | |||
| 75fbfda1ac | |||
| ffa3c4cf6a | |||
| 8359b37ae0 | |||
| 6ecee0038a | |||
| 5a48ec0c94 | |||
| 3896dd5f75 |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.6 KiB |
BIN
_bann/168clave.psd
Normal file
BIN
_bann/168clave_ant.gif
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
_imgs/Thumbs.db
BIN
_imgs/fondo.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
_imgs/ios-linen.psd
Normal file
@ -8,7 +8,7 @@
|
||||
.oferta_foto {
|
||||
overflow: hidden;
|
||||
width: 160px;
|
||||
height: 110px;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.oferta_marca {
|
||||
@ -27,7 +27,7 @@
|
||||
.oferta_precio {
|
||||
font-family: "Times New Roman", Times, serif;
|
||||
position: relative;
|
||||
font-size: 36px;
|
||||
font-size: 24px;
|
||||
color: #CB2C54;
|
||||
font-weight: normal;
|
||||
top: 12px;
|
||||
@ -35,6 +35,7 @@
|
||||
|
||||
.oferta_texto {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
color: #555555;
|
||||
font-size: 10px;
|
||||
position: relative;
|
||||
top: 14px;
|
||||
@ -71,6 +72,13 @@ a.lmod:hover {
|
||||
height: 95px;
|
||||
}
|
||||
|
||||
.destacado_foto_ofertas {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
width: 247px;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.destacado_tipo {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
|
||||
@ -5,6 +5,7 @@ body {
|
||||
margin-top: 0px;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 0px;
|
||||
/* background: #36373f url(../_imgs/fondo.jpg) top center repeat-y; */
|
||||
}
|
||||
|
||||
/*
|
||||
@ -127,6 +128,7 @@ a:hover {
|
||||
}
|
||||
|
||||
.azul{color: #00539D;}
|
||||
.rojo{color: #CB2C54;}
|
||||
.title{font:bold 16px Verdana, Arial, sans-serif;padding:8px;}
|
||||
.mini{
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
@ -158,3 +160,6 @@ a:hover {
|
||||
|
||||
.sombra{background: #FFFFFF url(../_imgs/sombra.gif) repeat-x}
|
||||
|
||||
#menu {font:normal 11px Verdana, Arial, sans-serif;color:#555555;text-align:center;background:url(../_imgs/banda.png) repeat-x;padding-bottom:3px;}
|
||||
#menu a{text-decoration:none;color:#555555;}
|
||||
#menu a:hover{text-decoration:underline;color:blue}
|
||||
|
||||
@ -17,6 +17,19 @@
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.producto_precio_ocasion1 {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.producto_precio_ocasion2 {
|
||||
font-family: "Times New Roman", Times, serif;
|
||||
font-size: 24px;
|
||||
color: #CB2C54;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.producto_texto {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
|
||||
@ -12,6 +12,7 @@ var $cuantas;
|
||||
var $numOfertas;
|
||||
var $curTipo;
|
||||
|
||||
//LA QUE VIENE POR DEFECTO CON LA TIENDA - (NO SE USA)
|
||||
function shoopOfertas($cuantos, $categoria = '', $tipo = 1){
|
||||
// esta es mi entrada en la clase, aqu? inicializo las globales.
|
||||
$this->numOfertas = 0;
|
||||
@ -63,26 +64,26 @@ var $curTipo;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class shoopOcasion{
|
||||
//Esta clase sale para hacer ofertas igual que ocasiones, segun como ya viene hecho
|
||||
class shoopOfertaNueva{
|
||||
var $result;
|
||||
var $cuantas;
|
||||
var $numOfertas;
|
||||
var $curTipo;
|
||||
|
||||
function shoopOcasionSurtiditos($cuantos) {
|
||||
function shoopOfertaNueva($cuantos, $categoria = '', $tipo = 1){
|
||||
// esta es mi entrada en la clase, aqu? inicializo las globales.
|
||||
$this->numOfertas = 0;
|
||||
$this->contador = 0;
|
||||
$this->result = false;
|
||||
$this->curTipo = $tipo;
|
||||
|
||||
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = 'SELECT ocasion_categoria AS CATEGORIA, ocasion_nombre AS NOMBRE, ocasion_estado AS ESTADO, ocasion_pvp AS PVP, ocasion_precio AS PRECIO, ocasion_descripcion AS TEXTO
|
||||
FROM shoop_ocasion
|
||||
WHERE ocasion_unidades > 0
|
||||
ORDER BY RAND() LIMIT ' . $cuantos;
|
||||
$query = 'SELECT oferta_id, oferta_fab_id, oferta_categoria, oferta_nombre, oferta_estado, oferta_pvp, oferta_descripcion
|
||||
FROM shoop_oferta
|
||||
WHERE oferta_unidades > 0
|
||||
ORDER BY RAND() LIMIT '. $cuantos;
|
||||
|
||||
$this->result = mysql_query($query, $conn);
|
||||
$this->numOfertas = mysql_num_rows($this->result);
|
||||
@ -93,10 +94,80 @@ var $curTipo;
|
||||
return $this->numOfertas;
|
||||
}
|
||||
|
||||
function getNext(){
|
||||
return mysql_fetch_array($this->result);
|
||||
}
|
||||
function getNextOferta(){
|
||||
$oferta = '';
|
||||
|
||||
if($this->contador < $this->numOfertas) {
|
||||
$row = mysql_fetch_array($this->result);
|
||||
$this->contador ++;
|
||||
// if(file_exists('_ofr/' . $row['oferta_id'] . ($this->curTipo != 2 ? '_168.jpg' : '_247.jpg'))) {
|
||||
$oferta = array ( 'categoria_id' => $row['oferta_categoria'],
|
||||
'nombre' => $row['oferta_nombre'],
|
||||
'id' => $row['oferta_id'],
|
||||
'estado' => $row['oferta_estado'],
|
||||
'fab_id' => $row['oferta_fab_id'],
|
||||
'pvp' => $row['oferta_pvp'],
|
||||
'descripcion' => $row['oferta_descripcion']);
|
||||
// } else {
|
||||
// $oferta = $this->getNextOferta();
|
||||
// }
|
||||
}
|
||||
return $oferta; // es un array
|
||||
}
|
||||
}
|
||||
|
||||
class shoopOcasion{
|
||||
var $result;
|
||||
var $cuantas;
|
||||
var $numOfertas;
|
||||
var $curTipo;
|
||||
|
||||
function shoopOcasion($cuantos, $categoria = '', $tipo = 1){
|
||||
// esta es mi entrada en la clase, aqu? inicializo las globales.
|
||||
$this->numOcasiones = 0;
|
||||
$this->contador = 0;
|
||||
$this->result = false;
|
||||
$this->curTipo = $tipo;
|
||||
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = 'SELECT ocasion_id, ocasion_categoria, ocasion_nombre, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_descripcion, ocasion_fab_id, fab_nombre
|
||||
FROM shoop_ocasion
|
||||
LEFT JOIN shoop_fabricantes on (ocasion_fab_id=fab_id)
|
||||
WHERE (ocasion_unidades > 0)
|
||||
ORDER BY RAND() LIMIT '. $cuantos;
|
||||
|
||||
$this->result = mysql_query($query, $conn);
|
||||
$this->numOcasiones = mysql_num_rows($this->result);
|
||||
}
|
||||
}
|
||||
|
||||
function getNum() {
|
||||
return $this->numOcasiones;
|
||||
}
|
||||
|
||||
function getNextOcasion(){
|
||||
$ocasion = '';
|
||||
|
||||
if($this->contador < $this->numOcasiones) {
|
||||
$row = mysql_fetch_array($this->result);
|
||||
$this->contador ++;
|
||||
// if(file_exists('_ocs/' . $row['ocasion_id'] . ($this->curTipo != 2 ? '_168.jpg' : '_247.jpg'))) {
|
||||
$ocasion = array ( 'categoria_id' => $row['ocasion_categoria'],
|
||||
'nombre' => $row['ocasion_nombre'],
|
||||
'id' => $row['ocasion_id'],
|
||||
'fab_id' => $row['ocasion_fab_id'],
|
||||
'fab_nombre' => $row['fab_nombre'],
|
||||
'estado' => $row['ocasion_estado'],
|
||||
'precio' => $row['ocasion_precio'],
|
||||
'pvp' => $row['ocasion_pvp'],
|
||||
'descripcion' => $row['ocasion_descripcion']);
|
||||
// } else {
|
||||
// $ocasion = $this->getNextOcasion();
|
||||
// }
|
||||
}
|
||||
return $ocasion; // es un array
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
BIN
_logos/c/197.gif
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 59 KiB |
@ -12,4 +12,5 @@
|
||||
<li><a href="shoop/categorias.php" target="contenido">Categorías</a></li>
|
||||
<li><a href="shoop/productos.php" target="contenido">Productos</a></li></ul></li>
|
||||
<li class="mudo"><a href="shoop/ocasion.php" target="contenido" class="parent">OCASIÓN</a></li>
|
||||
<li class="mudo"><a href="shoop/oferta.php" target="contenido" class="parent">OFERTAS</a></li>
|
||||
<li class="mudo"><a href="shoop/pedidos.php" target="contenido" class="parent"">PEDIDOS</a></li></ul>
|
||||
@ -17,7 +17,7 @@ include('../db.php');
|
||||
<body>
|
||||
<table border="0" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
<td width="200"><a href="ocasion_edit.php?op=add" class="button">[ añadir producto ]</a></td>
|
||||
<td width="200"><a href="ocasion_edit.php?op=add" class="button">[ añadir ocasión ]</a></td>
|
||||
<tr><td colspan="5"><img src="../_imgs/d.gif" width="200" height="5"></td></tr>
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
|
||||
@ -13,11 +13,13 @@ if (!session_is_registered("clave_audio")) {
|
||||
if (!$continuar) exit;
|
||||
}
|
||||
include('../db.php');
|
||||
include('upload.php');
|
||||
|
||||
if(isset($_REQUEST['op'])){
|
||||
$operacion = $_REQUEST['op'];
|
||||
|
||||
// here I read the variables passed by the calling page.
|
||||
// here I read the variables passed by the calling page.
|
||||
$id = $_REQUEST['id'];
|
||||
$ocasion_categoria=$_REQUEST['ocasion_categoria'];
|
||||
$ocasion_nombre=$_REQUEST['ocasion_nombre'];
|
||||
$ocasion_descripcion=$_REQUEST['ocasion_descripcion'];
|
||||
@ -25,27 +27,41 @@ $ocasion_estado=$_REQUEST['ocasion_estado'];
|
||||
$ocasion_pvp=$_REQUEST['ocasion_pvp'];
|
||||
$ocasion_precio=$_REQUEST['ocasion_precio'];
|
||||
$ocasion_unidades=$_REQUEST['ocasion_unidades'];
|
||||
$ocasion_fab_id=$_REQUEST['ocasion_fab_id'];
|
||||
|
||||
|
||||
if(db_connect()) {
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
switch($operacion) {
|
||||
case "add":
|
||||
$sql = 'INSERT INTO shoop_ocasion(ocasion_categoria, ocasion_nombre, ocasion_descripcion, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_unidades) VALUES("' . $ocasion_categoria . '", "' . $ocasion_nombre . '", "' . $ocasion_descripcion . '", "' . $ocasion_estado . '", "' . $ocasion_pvp . '", "' . $ocasion_precio . '", "' . $ocasion_unidades . '");';
|
||||
$sql = 'INSERT INTO shoop_ocasion(ocasion_categoria, ocasion_nombre, ocasion_descripcion, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_unidades, ocasion_fab_id) VALUES("' . $ocasion_categoria . '", "' . $ocasion_nombre . '", "' . $ocasion_descripcion . '", "' . $ocasion_estado . '", "' . $ocasion_pvp . '", "' . $ocasion_precio . '", "' . $ocasion_unidades . '", "' . $ocasion_fab_id . '");';
|
||||
$result = mysql_query($sql, $conn) or header('Location: ../error.php');
|
||||
$id = mysql_insert_id($conn);
|
||||
break;
|
||||
|
||||
case "edit":
|
||||
$sql = 'UPDATE shoop_ocasion SET ocasion_categoria="' . $ocasion_categoria . '", ocasion_nombre="' . $ocasion_nombre . '", ocasion_descripcion="' . $ocasion_descripcion . '", ocasion_estado="' . $ocasion_estado . '", ocasion_pvp="' . $ocasion_pvp . '", ocasion_precio="' . $ocasion_precio . '", ocasion_unidades="' . $ocasion_unidades . '" WHERE ocasion_id = ' . $_REQUEST['id'];
|
||||
break;
|
||||
$sql = 'UPDATE shoop_ocasion SET ocasion_categoria="' . $ocasion_categoria . '", ocasion_nombre="' . $ocasion_nombre . '", ocasion_descripcion="' . $ocasion_descripcion . '", ocasion_estado="' . $ocasion_estado . '", ocasion_pvp="' . $ocasion_pvp . '", ocasion_precio="' . $ocasion_precio . '", ocasion_unidades="' . $ocasion_unidades . '", ocasion_fab_id="' . $ocasion_fab_id .'" WHERE ocasion_id = ' . $id;
|
||||
$result = mysql_query($sql, $conn) or header('Location: ../error.php');
|
||||
break;
|
||||
|
||||
case "del":
|
||||
$sql = 'DELETE FROM shoop_ocasion WHERE ocasion_id = ' . $_REQUEST['id'];
|
||||
$sql = 'DELETE FROM shoop_ocasion WHERE ocasion_id = ' . $id;
|
||||
$result = mysql_query($sql, $conn) or header('Location: ../error.php');
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
$result = mysql_query($sql) or header('Location: ../error.php');
|
||||
header('Location: ocasion.php');
|
||||
|
||||
|
||||
if ($operacion != "del") {
|
||||
// modifico la imagen.
|
||||
uploadImagenOcasion($id, 348, 248, 168, 102);
|
||||
uploadImagenOcasion($id, 247, 95, 108, 108);
|
||||
// y vuelvo a la pantalla correspondiente
|
||||
header('Location: ocasion_edit.php?op=edit&id=' . $id);
|
||||
}
|
||||
else
|
||||
header('Location: ocasion.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -33,6 +33,7 @@ $ocasion_estado = "";
|
||||
$ocasion_pvp = "";
|
||||
$ocasion_precio = "";
|
||||
$ocasion_unidades = "";
|
||||
$ocasion_fab_id = "";
|
||||
|
||||
switch($operacion)
|
||||
{
|
||||
@ -42,7 +43,7 @@ switch($operacion)
|
||||
case "edit";
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = "SELECT ocasion_id, ocasion_categoria, ocasion_nombre, ocasion_descripcion, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_unidades FROM shoop_ocasion WHERE ocasion_id = " . $id;
|
||||
$query = "SELECT ocasion_id, ocasion_fab_id, ocasion_categoria, ocasion_nombre, ocasion_descripcion, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_unidades FROM shoop_ocasion WHERE ocasion_id = " . $id;
|
||||
$result = mysql_query($query, $conn);
|
||||
if (mysql_num_rows($result)) {
|
||||
$row = mysql_fetch_array($result);
|
||||
@ -53,56 +54,130 @@ switch($operacion)
|
||||
$ocasion_pvp = $row['ocasion_pvp'];
|
||||
$ocasion_precio = $row['ocasion_precio'];
|
||||
$ocasion_unidades = $row['ocasion_unidades'];
|
||||
$ocasion_fab_id = $row['ocasion_fab_id'];
|
||||
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$max_size = 1024 * 1536; // the max. size for uploading
|
||||
define("MAX_SIZE", $max_size);
|
||||
?>
|
||||
<form method="post" action="ocasion_db.php" name="formulario" enctype="multipart/form-data">
|
||||
<input name="op" type="hidden" value="<?= $operacion; ?>">
|
||||
<input name="id" type="hidden" value="<?= $id; ?>">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr><td class="lbl12">Detalles del producto de ocasión</td></tr>
|
||||
<tr><td bgcolor="#777777"><img src="../../_imgs/d.gif" width="100" height="1"></td></tr>
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="200" class= "lbl">Categoría</td></tr>
|
||||
<tr><td width="" class="data"><select name="ocasion_categoria" id="ocasion_categoria" style="width:250px">
|
||||
<option value="1">Altavoces</option>
|
||||
<tr>
|
||||
<td class= "lbl">Categoría</td>
|
||||
<td class= "lbl"> Imagen</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select name="ocasion_categoria" id="ocasion_categoria" style="width:250px">
|
||||
<option value="1">Altavoces</option>
|
||||
<option value="2">Electrónicas</option>
|
||||
<option value="3">Reproductores de CD, convertidores D/A, etc.</option>
|
||||
<option value="4">Varios</option>
|
||||
</select></td></tr>
|
||||
<script language="JavaScript" type="text/JavaScript"> selectOption('ocasion_categoria', '<?= $ocasion_categoria; ?>'); </script>
|
||||
<tr><td><img src="img/d.gif" width="100" height="5"></td></tr>
|
||||
</select>
|
||||
<script language="JavaScript" type="text/JavaScript"> selectOption('ocasion_categoria', '<?= $ocasion_categoria; ?>'); </script>
|
||||
</td>
|
||||
|
||||
<td rowspan="16" valign="top">
|
||||
<table width="250" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input name="prod_imagen" type="file" style="width:250px" class="data"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
if(file_exists('../../_ocs/' . $id . '_247.jpg')) {
|
||||
?>
|
||||
<table width="247" border="1" cellspacing="0" cellpadding="0" bordercolor="#333333" style="margin-top:10px; border-style:solid; border-color:#444444; border:1px; border-padding:1px;">
|
||||
<tr>
|
||||
<td align="center"><img src="../../_ocs/<?php echo $id; ?>_247.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if(file_exists('../../_ocs/' . $id . '_168.jpg')) {
|
||||
?>
|
||||
<table width="168" border="1" cellspacing="0" cellpadding="0" bordercolor="#333333" style="margin-top:10px; border-style:solid; border-color:#444444; border:1px; border-padding:1px;">
|
||||
<tr>
|
||||
<td align="center"><img src="../../_ocs/<?php echo $id; ?>_168.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="200" class= "lbl">Marca</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<!--tr>
|
||||
<td class="data"><select name="ocasion_fab_id" id="ocasion_fab_id" style="width:200px" class="data">
|
||||
<option value="" selected>Marcas</option>
|
||||
<?php //include("menu_marcas.php"); ?>
|
||||
</select>
|
||||
<script language="JavaScript" type="text/JavaScript"> selectOption('ocasion_fab_id', '<?php echo $ocasion_fab_id; ?>'); </script>
|
||||
</td>
|
||||
</tr-->
|
||||
|
||||
<tr>
|
||||
<td width="200" class= "lbl">Nombre</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr><td width="" class="data"><input name="ocasion_nombre" id="ocasion_nombre" type="text" size="50" maxlength="100" value="<?= $ocasion_nombre; ?>"></td></tr>
|
||||
<tr><td><img src="img/d.gif" width="100" height="5"></td></tr>
|
||||
|
||||
<tr><td width="200" class= "lbl">Descripción</td></tr>
|
||||
<tr><td width="" class="data"><textarea name="ocasion_descripcion" cols="50"><?= $ocasion_descripcion; ?></textarea></td></tr>
|
||||
<tr><td><img src="img/d.gif" width="100" height="5"></td></tr>
|
||||
|
||||
<tr><td width="200" class= "lbl">Estado</td></tr>
|
||||
<tr><td width="" class="data"><input name="ocasion_estado" style="width:px" value="<?= $ocasion_estado; ?>">
|
||||
<tr><td><img src="img/d.gif" width="100" height="5"></td></tr>
|
||||
|
||||
<tr><td width="200" class= "lbl">PVP</td></tr>
|
||||
<tr><td width="" class="data"><input name="ocasion_pvp" type="text" value="<?= $ocasion_pvp; ?>" size="10" maxlength="10"></td></tr>
|
||||
<tr><td><img src="img/d.gif" width="100" height="5"></td></tr>
|
||||
|
||||
<tr><td width="200" class= "lbl">Precio</td></tr>
|
||||
<tr><td width="" class="data"><input name="ocasion_precio" type="text" value="<?= $ocasion_precio; ?>" size="10" maxlength="10"></td></tr>
|
||||
<tr><td><img src="img/d.gif" width="100" height="5"></td></tr>
|
||||
|
||||
<tr><td width="200" class= "lbl">Unidades</td></tr>
|
||||
<tr><td width="" class="data"><input name="ocasion_unidades" type="text" value="<?= $ocasion_unidades; ?>" size="3" maxlength="3"></td></tr>
|
||||
<tr><td><img src="img/d.gif" width="100" height="5"></td></tr>
|
||||
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="ocasion.php" class="button">[ atrás ]</a>
|
||||
<a href="javascript:doSubmit();" class="button">[ <?= $operacion; ?> ]</a>
|
||||
<a href="javascript:doSubmit();" class="button">[ Ok ]</a>
|
||||
</td>
|
||||
<?php
|
||||
if($operacion == 'edit') {
|
||||
?>
|
||||
<td>
|
||||
<a href="ocasion_db.php?op=del&id=<?= $prod_id; ?>" onClick="return confirm('Estás seguro de querer borrar este artículo?')" class="button">[ borrar ]</a>
|
||||
<a href="ocasion_db.php?op=del&id=<?= $id; ?>" onClick="return confirm('Estás seguro de querer borrar este artículo?')" class="button">[ borrar ]</a>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
|
||||
83
admin/shoop/oferta.php
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!session_is_registered("clave_audio")) {
|
||||
include("../login.php");
|
||||
if (!$continuar) exit;
|
||||
}
|
||||
include('../db.php');
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Oferta</title>
|
||||
<link href="../sformi.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
<td width="200"><a href="oferta_edit.php?op=add" class="button">[ añadir oferta ]</a></td>
|
||||
<tr><td colspan="5"><img src="../_imgs/d.gif" width="200" height="5"></td></tr>
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<?php
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = "SELECT oferta_id, oferta_categoria, oferta_nombre, oferta_estado, oferta_pvp, oferta_unidades, oferta_descripcion
|
||||
FROM shoop_oferta
|
||||
ORDER BY oferta_categoria, oferta_id";
|
||||
$result = mysql_query($query, $conn);
|
||||
?>
|
||||
<tr>
|
||||
<td width="455" valign="top" class="hdr">Nombre</td>
|
||||
<td width="100" valign="top" class="hdr" align="right">PVP</td>
|
||||
<td width="100" valign="top" class="hdr"> </td>
|
||||
</tr>
|
||||
<?php
|
||||
$secciones = array('', 'Altavoces', 'Electrónicas', 'Reproductores de CD, convertidores D/A, etc.', 'Varios');
|
||||
$curSeccion='';
|
||||
while ($row = mysql_fetch_array($result))
|
||||
{
|
||||
$oferta_id = $row['oferta_id'];
|
||||
$oferta_categoria = $row['oferta_categoria'];
|
||||
$oferta_nombre = $row['oferta_nombre'];
|
||||
$oferta_estado = $row['oferta_estado'];
|
||||
$oferta_pvp = $row['oferta_pvp'];
|
||||
$oferta_unidades = $row['oferta_unidades'];
|
||||
$oferta_descripcion = $row['oferta_descripcion'];
|
||||
?>
|
||||
<tr>
|
||||
<td valign="top" class="data"> <?php echo '<span class="lbl">' . $oferta_nombre . '</span>' . (strlen($oferta_estado) ? ' (' . $oferta_estado . ')': "") . (strlen($oferta_descripcion) ? '<br> <i>' . $oferta_descripcion . '</i>': "") ; ?></td>
|
||||
<td valign="top" align="right" class="data"><?php echo number_format($oferta_pvp, 2, ',', '.');; ?></td>
|
||||
<td valign="top" class="data" align="center"> <a href="oferta_edit.php?op=edit&id=<?php echo $oferta_id; ?>" class="button">[ editar ]</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#DBDEE6" colspan=7><img src="img/d.gif" width="5" height="1"></td>
|
||||
</tr>
|
||||
<?php
|
||||
} // while
|
||||
} else { // IF CONN
|
||||
echo '<p>An error has occurred while accessing the database: ' . mysql_error();
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
67
admin/shoop/oferta_db.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// this file has been generated by sformi, the clever tool for lazy developers.
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
session_start();
|
||||
if (!session_is_registered("clave_audio")) {
|
||||
include("../login.php");
|
||||
if (!$continuar) exit;
|
||||
}
|
||||
include('../db.php');
|
||||
include('upload.php');
|
||||
|
||||
if(isset($_REQUEST['op'])){
|
||||
$operacion = $_REQUEST['op'];
|
||||
|
||||
// here I read the variables passed by the calling page.
|
||||
$id = $_REQUEST['id'];
|
||||
$oferta_categoria=$_REQUEST['oferta_categoria'];
|
||||
$oferta_nombre=$_REQUEST['oferta_nombre'];
|
||||
$oferta_descripcion=$_REQUEST['oferta_descripcion'];
|
||||
$oferta_estado=$_REQUEST['oferta_estado'];
|
||||
$oferta_pvp=$_REQUEST['oferta_pvp'];
|
||||
$oferta_fab_id=$_REQUEST['oferta_fab_id'];
|
||||
$oferta_unidades=$_REQUEST['oferta_unidades'];
|
||||
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
switch($operacion) {
|
||||
case "add":
|
||||
$sql = 'INSERT INTO shoop_oferta(oferta_categoria, oferta_nombre, oferta_descripcion, oferta_estado, oferta_pvp, oferta_fab_id, oferta_unidades) VALUES("' . $oferta_categoria . '", "' . $oferta_nombre . '", "' . $oferta_descripcion . '", "' . $oferta_estado . '", "' . $oferta_pvp . '", "' . $oferta_fab_id . '", "' . $oferta_unidades . '");';
|
||||
$result = mysql_query($sql, $conn) or header('Location: ../error.php');
|
||||
$id = mysql_insert_id($conn);
|
||||
break;
|
||||
|
||||
case "edit":
|
||||
$sql = 'UPDATE shoop_oferta SET oferta_categoria="' . $oferta_categoria . '", oferta_nombre="' . $oferta_nombre . '", oferta_descripcion="' . $oferta_descripcion . '", oferta_estado="' . $oferta_estado . '", oferta_pvp="' . $oferta_pvp . '", oferta_fab_id="' . $oferta_fab_id . '", oferta_unidades="' . $oferta_unidades . '" WHERE oferta_id = ' . $id;
|
||||
$result = mysql_query($sql, $conn) or header('Location: ../error.php');
|
||||
break;
|
||||
|
||||
case "del":
|
||||
$sql = 'DELETE FROM shoop_oferta WHERE oferta_id = ' . $id;
|
||||
$result = mysql_query($sql, $conn) or header('Location: ../error.php');
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if ($operacion != "del") {
|
||||
// modifico la imagen.
|
||||
uploadImagenOferta($id, 348, 248, 168, 102);
|
||||
uploadImagenOferta($id, 247, 95, 108, 108);
|
||||
uploadPDFOferta($id);
|
||||
// y vuelvo a la pantalla correspondiente
|
||||
header('Location: oferta_edit.php?op=edit&id=' . $id);
|
||||
}
|
||||
else
|
||||
header('Location: oferta.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
189
admin/shoop/oferta_edit.php
Normal file
@ -0,0 +1,189 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if (!session_is_registered("clave_audio")) {
|
||||
include("../login.php");
|
||||
if (!$continuar) exit;
|
||||
}
|
||||
|
||||
include('../db.php');
|
||||
include("../../_incl/code.php");
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>oferta</title>
|
||||
<link href="../sformi.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../_incl/code.js"></script>
|
||||
<script language="JavaScript" type="text/JavaScript">function doSubmit() { document.formulario.submit(); }</script>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
if(isset($_REQUEST['op'])) {
|
||||
$operacion = $_REQUEST['op'];
|
||||
$id = $_REQUEST['id'];
|
||||
} else {
|
||||
$operacion = "add";
|
||||
}
|
||||
|
||||
$oferta_categoria = "";
|
||||
$oferta_nombre = "";
|
||||
$oferta_descripcion = "";
|
||||
$oferta_estado = "";
|
||||
$oferta_pvp = "";
|
||||
$oferta_fab_id = "";
|
||||
$oferta_unidades = "";
|
||||
|
||||
switch($operacion)
|
||||
{
|
||||
case "add";
|
||||
break;
|
||||
|
||||
case "edit";
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = "SELECT oferta_id, oferta_categoria, oferta_nombre, oferta_descripcion, oferta_estado, oferta_pvp, oferta_fab_id, oferta_unidades FROM shoop_oferta WHERE oferta_id = " . $id;
|
||||
$result = mysql_query($query, $conn);
|
||||
if (mysql_num_rows($result)) {
|
||||
$row = mysql_fetch_array($result);
|
||||
$oferta_categoria = $row['oferta_categoria'];
|
||||
$oferta_nombre = $row['oferta_nombre'];
|
||||
$oferta_descripcion = $row['oferta_descripcion'];
|
||||
$oferta_estado = $row['oferta_estado'];
|
||||
$oferta_pvp = $row['oferta_pvp'];
|
||||
$oferta_fab_id = $row['oferta_fab_id'];
|
||||
$oferta_unidades = $row['oferta_unidades'];
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$max_size = 1024 * 1536; // the max. size for uploading
|
||||
define("MAX_SIZE", $max_size);
|
||||
?>
|
||||
<form method="post" action="oferta_db.php" name="formulario" enctype="multipart/form-data">
|
||||
<input name="op" type="hidden" value="<?= $operacion; ?>">
|
||||
<input name="id" type="hidden" value="<?= $id; ?>">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr><td class="lbl12">Detalles del producto de oferta</td></tr>
|
||||
<tr><td bgcolor="#777777"><img src="../../_imgs/d.gif" width="100" height="1"></td></tr>
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<!--td><span class="lbl">Categoría</span><br/>
|
||||
<select name="oferta_categoria" id="oferta_categoria" style="width:250px">
|
||||
<option value="1">Altavoces</option>
|
||||
<option value="2">Electrónicas</option>
|
||||
<option value="3">Reproductores de CD, convertidores D/A, etc.</option>
|
||||
<option value="4">Varios</option>
|
||||
</select>
|
||||
<script language="JavaScript" type="text/JavaScript"> selectOption('oferta_categoria', '<?= $oferta_categoria; ?>'); </script>
|
||||
</td-->
|
||||
|
||||
<td rowspan="16" valign="top">
|
||||
<table width="250" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><span class="lbl">Folleto PDF</span><br/><input name="ofr_pdf" type="file" style="width:250px" class="data"><br/>
|
||||
<?php
|
||||
if(file_exists('../../_ofr/' . $id . '.pdf')) {
|
||||
echo "<a href='../../_ofr/". $id .".pdf' >Folleto PDF </a>";
|
||||
}
|
||||
?>
|
||||
<br/><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="lbl">Imagen</span><br/><input name="ofr_imagen" type="file" style="width:250px" class="data"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
if(file_exists('../../_ofr/' . $id . '_348.jpg')) {
|
||||
?>
|
||||
<table width="348" border="1" cellspacing="0" cellpadding="0" bordercolor="#333333" style="margin-top:10px; border-style:solid; border-color:#444444; border:1px; border-padding:1px;">
|
||||
<tr>
|
||||
<td align="center"><img src="../../_ofr/<?php echo $id; ?>_348.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if(file_exists('../../_ofr/' . $id . '_168.jpg')) {
|
||||
?>
|
||||
<table width="168" border="1" cellspacing="0" cellpadding="0" bordercolor="#333333" style="margin-top:10px; border-style:solid; border-color:#444444; border:1px; border-padding:1px;">
|
||||
<tr>
|
||||
<td align="center"><img src="../../_ofr/<?php echo $id; ?>_168.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!--tr>
|
||||
<td width="200" class= "lbl">Marca</td>
|
||||
<td></td>
|
||||
</tr-->
|
||||
|
||||
<!--tr>
|
||||
<td class="data"><select name="oferta_fab_id" id="oferta_fab_id" style="width:200px" class="data">
|
||||
<option value="" selected>Marcas</option>
|
||||
<?php include("menu_marcas.php"); ?>
|
||||
</select>
|
||||
<script language="JavaScript" type="text/JavaScript"> selectOption('oferta_fab_id', '<?php echo $oferta_fab_id; ?>'); </script>
|
||||
</td>
|
||||
</tr-->
|
||||
|
||||
<tr>
|
||||
<td width="200" class= "lbl">Nombre</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr><td width="" class="data"><input name="oferta_nombre" id="oferta_nombre" type="text" size="50" maxlength="100" value="<?= $oferta_nombre; ?>"></td></tr>
|
||||
|
||||
<tr><td width="200" class= "lbl">Descripción</td></tr>
|
||||
<tr><td width="" class="data"><textarea name="oferta_descripcion" cols="50"><?= $oferta_descripcion; ?></textarea></td></tr>
|
||||
|
||||
<!--tr><td width="200" class= "lbl">Estado</td></tr>
|
||||
<tr><td width="" class="data"><input name="oferta_estado" style="width:px" value="<?= $oferta_estado; ?>"-->
|
||||
|
||||
<tr><td width="200" class= "lbl">PVP</td></tr>
|
||||
<tr><td width="" class="data"><input name="oferta_pvp" type="text" value="<?= $oferta_pvp; ?>" size="10" maxlength="10"></td></tr>
|
||||
|
||||
<tr><td width="200" class= "lbl">Unidades</td></tr>
|
||||
<tr><td width="" class="data"><input name="oferta_unidades" type="text" value="<?= $oferta_unidades; ?>" size="3" maxlength="3"></td></tr>
|
||||
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="oferta.php" class="button">[ atrás ]</a>
|
||||
<a href="javascript:doSubmit();" class="button">[ Ok ]</a>
|
||||
</td>
|
||||
<?php
|
||||
if($operacion == 'edit') {
|
||||
?>
|
||||
<td>
|
||||
<a href="oferta_db.php?op=del&id=<?= $id; ?>" onClick="return confirm('Estás seguro de querer borrar este artículo?')" class="button">[ borrar ]</a>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@ -51,6 +51,93 @@
|
||||
}
|
||||
}
|
||||
|
||||
function uploadImagenOcasion($prodID, $size1_w, $size1_h, $size2_w=0, $size2_h=0, $mascara='') {
|
||||
$path = "../../_ocs/"; // este directorio tiene que tener chmod 777
|
||||
$upload_file_name = "prod_imagen"; // el nombre del campo tipo file de nuestro formulario
|
||||
$acceptable_file_types = "image/gif|image/jpeg|image/pjpeg"; // acepta GIF et JPEG
|
||||
$default_extension = "";
|
||||
$mode = 1; // OPTIONS:
|
||||
// 1 = overwrite mode
|
||||
// 2 = create new with incremental extention
|
||||
// 3 = do nothing if exists, highest protection
|
||||
|
||||
|
||||
// un poco de limpieza previa
|
||||
// este es el temporal
|
||||
$glob = glob($path . $prodID. '_tmp');
|
||||
limpia($glob);
|
||||
|
||||
limpia($path . '_' . $size1_w . '.jpg');
|
||||
limpia($path . '_' . $size2_w . '.jpg');
|
||||
// fin de la limpia
|
||||
|
||||
if(strlen($_FILES['prod_imagen']['name'])) {
|
||||
$my_uploader = new uploader('es'); // Create a new instance of the class
|
||||
$my_uploader->max_filesize(150000); // OPTIONAL: set the max filesize of uploadable files in bytes
|
||||
$my_uploader->max_image_size(1600, 1600); // OPTIONAL: if you're uploading images, you can set the max pixel dimensions
|
||||
// UPLOAD the file
|
||||
if ($my_uploader->upload($upload_file_name, $acceptable_file_types, $default_extension)) {
|
||||
$my_uploader->save_file($path, $prodID . '_tmp', $mode);
|
||||
if (!$my_uploader->error) {
|
||||
$my_uploader->resize($prodID . '_' . $size1_w . '.jpg', $size1_w, $size1_h, 60);
|
||||
if($size2_w) {
|
||||
$my_uploader->resize($prodID . '_' . $size2_w . '.jpg', $size2_w, $size2_h, 60);
|
||||
}
|
||||
$my_uploader->delete_file;
|
||||
}
|
||||
}
|
||||
if ($my_uploader->error) {
|
||||
echo $my_uploader->error;
|
||||
}
|
||||
|
||||
$glob = glob($path . $proid. '_tmp');
|
||||
limpia($glob);
|
||||
}
|
||||
}
|
||||
|
||||
function uploadImagenOferta($prodID, $size1_w, $size1_h, $size2_w=0, $size2_h=0, $mascara='') {
|
||||
$path = "../../_ofr/"; // este directorio tiene que tener chmod 777
|
||||
$upload_file_name = "ofr_imagen"; // el nombre del campo tipo file de nuestro formulario
|
||||
$acceptable_file_types = "image/gif|image/jpeg|image/pjpeg"; // acepta GIF et JPEG
|
||||
$default_extension = "";
|
||||
$mode = 1; // OPTIONS:
|
||||
// 1 = overwrite mode
|
||||
// 2 = create new with incremental extention
|
||||
// 3 = do nothing if exists, highest protection
|
||||
|
||||
|
||||
// un poco de limpieza previa
|
||||
// este es el temporal
|
||||
$glob = glob($path . $prodID. '_tmp');
|
||||
limpia($glob);
|
||||
|
||||
limpia($path . '_' . $size1_w . '.jpg');
|
||||
limpia($path . '_' . $size2_w . '.jpg');
|
||||
// fin de la limpia
|
||||
|
||||
if(strlen($_FILES['ofr_imagen']['name'])) {
|
||||
$my_uploader = new uploader('es'); // Create a new instance of the class
|
||||
$my_uploader->max_filesize(150000); // OPTIONAL: set the max filesize of uploadable files in bytes
|
||||
$my_uploader->max_image_size(1600, 1600); // OPTIONAL: if you're uploading images, you can set the max pixel dimensions
|
||||
// UPLOAD the file
|
||||
if ($my_uploader->upload($upload_file_name, $acceptable_file_types, $default_extension)) {
|
||||
$my_uploader->save_file($path, $prodID . '_tmp', $mode);
|
||||
if (!$my_uploader->error) {
|
||||
$my_uploader->resize($prodID . '_' . $size1_w . '.jpg', $size1_w, $size1_h, 60);
|
||||
if($size2_w) {
|
||||
$my_uploader->resize($prodID . '_' . $size2_w . '.jpg', $size2_w, $size2_h, 60);
|
||||
}
|
||||
$my_uploader->delete_file;
|
||||
}
|
||||
}
|
||||
if ($my_uploader->error) {
|
||||
echo $my_uploader->error;
|
||||
}
|
||||
|
||||
$glob = glob($path . $proid. '_tmp');
|
||||
limpia($glob);
|
||||
}
|
||||
}
|
||||
|
||||
function uploadImagenMarca($prodID, $size_w, $size_h, $mascara='') {
|
||||
$path = "../../_logos/c/"; // este directorio tiene que tener chmod 777
|
||||
@ -81,4 +168,44 @@
|
||||
}
|
||||
}
|
||||
|
||||
function uploadPDFOferta($prodID) {
|
||||
$path = "../../_ofr/"; // este directorio tiene que tener chmod 777
|
||||
$upload_file_name = "ofr_pdf"; // el nombre del campo tipo file de nuestro formulario
|
||||
$acceptable_file_types = ""; // acepta GIF et JPEG
|
||||
$default_extension = "";
|
||||
$mode = 1; // OPTIONS:
|
||||
// 1 = overwrite mode
|
||||
// 2 = create new with incremental extention
|
||||
// 3 = do nothing if exists, highest protection
|
||||
|
||||
|
||||
// un poco de limpieza previa
|
||||
// este es el temporal
|
||||
$glob = glob($path . $prodID. '_tmp');
|
||||
limpia($glob);
|
||||
limpia($path . '_' . $prodID . '.pdf');
|
||||
// fin de la limpia
|
||||
|
||||
if(strlen($_FILES['ofr_pdf']['name'])) {
|
||||
$my_uploader = new uploader('es'); // Create a new instance of the class
|
||||
$my_uploader->max_filesize(5000000); // OPTIONAL: set the max filesize of uploadable files in bytes
|
||||
// $my_uploader->max_image_size(1600, 1600); // OPTIONAL: if you're uploading images, you can set the max pixel dimensions
|
||||
// UPLOAD the file
|
||||
if ($my_uploader->upload($upload_file_name, $acceptable_file_types, $default_extension)) {
|
||||
$my_uploader->save_file($path, $prodID . '.pdf', $mode);
|
||||
if (!$my_uploader->error) {
|
||||
$my_uploader->delete_file;
|
||||
}
|
||||
}
|
||||
if ($my_uploader->error) {
|
||||
echo $my_uploader->error;
|
||||
}
|
||||
|
||||
$glob = glob($path . $proid. '_tmp');
|
||||
limpia($glob);
|
||||
}
|
||||
// else
|
||||
// limpia($path . $prodID . '.pdf');
|
||||
}
|
||||
|
||||
?>
|
||||
@ -1,4 +1,4 @@
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0">
|
||||
<tr><td width="160">
|
||||
<div class="oferta_foto">
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td valign="middle" align="center">
|
||||
|
||||
39
bann2_ocasion.php
Normal file
@ -0,0 +1,39 @@
|
||||
<div class="destacado">
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="247"><img src="_imgs/d.gif" width="247" height="1" alt=""></td>
|
||||
<td width="7"><img src="_imgs/d.gif" width="7" height="1" alt=""></td>
|
||||
<td width="270"><img src="_imgs/d.gif" width="270" height="1" alt=""></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="247" align="center" valign="middle">
|
||||
<div class="destacado_foto">
|
||||
<?php
|
||||
//LOGOTIPO FABRICANTE
|
||||
$path = '_logos/c/' . $arrayOcasion['fab_id'] . '.gif';
|
||||
if (file_exists($path)) {
|
||||
echo '<img src="'.$path.'"><br>';
|
||||
}
|
||||
?>
|
||||
<img src="_imgs/d.gif" height="6"><br>
|
||||
|
||||
<a href="ocasion_ficha.php?id=<?php echo $arrayOcasion['id']; ?>"><img src="_ocs/<?php echo $arrayOcasion['id']; ?>_247.jpg" border="0" alt=""></a>
|
||||
</div>
|
||||
<div class="destacado_precio"><?php echo ($arrayOcasion['precio'] == '-1' ? 'Consultar' : 'Ocasión ' . miNumberFormat($arrayOcasion['precio']) . '<span class="euro">€</span>'); ?></div>
|
||||
</td>
|
||||
|
||||
<td width="7"><img src="_imgs/d.gif" width="12" alt=""></td>
|
||||
|
||||
<td width="270" valign="top">
|
||||
<div class="destacado_tipo azul"><?php echo $arrayOcasion['nombre']; ?></div>
|
||||
<div class="destacado_modelo"><a href="ocasion_ficha.php?id=<?php echo $arrayOcasion['id']; ?>" class="lmod"><?php echo $arrayOcasion['nombre']; ?></a></div>
|
||||
<div class="oferta_texto"><?php if(strlen($arrayOcasion['descripcion'])) { echo substr($arrayOcasion['descripcion'], 0, 150) . '...'; } ?></div>
|
||||
|
||||
<div class="producto_ocasion1"><br />Precio PVP: <?php echo $arrayOcasion['pvp'];?> €</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</div>
|
||||
58
bann2_oferta.php
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="destacado">
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="247"><img src="_imgs/d.gif" width="247" height="1" alt=""></td>
|
||||
<td width="7"><img src="_imgs/d.gif" width="7" height="1" alt=""></td>
|
||||
<td width="270"><img src="_imgs/d.gif" width="270" height="1" alt=""></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="247" align="center" valign="top">
|
||||
|
||||
<div class="destacado_foto_ofertas">
|
||||
<?php
|
||||
//SI TIENE PDF la imagen irá al pdf si no a la ficha
|
||||
$path_pdf = '_ofr/' . $arrayOferta['id'] . '.pdf';
|
||||
$path_jpg = '_ofr/' . $arrayOferta['id'] . '_247.jpg';
|
||||
if (!file_exists($path_pdf))
|
||||
$path_pdf = "";
|
||||
if (!file_exists($path_jpg))
|
||||
$path_jpg = "";
|
||||
|
||||
if ($path_pdf != "") {
|
||||
$enlace = $path_pdf;
|
||||
}
|
||||
else
|
||||
$enlace = "oferta_ficha.php?id=". $arrayOferta['id'];
|
||||
?>
|
||||
|
||||
<a href="<?php echo $enlace; ?>">
|
||||
<?php
|
||||
if ($path_jpg != "") {
|
||||
?>
|
||||
<img src="<?php echo $path_jpg; ?>" border="0"></a><br />
|
||||
<?php } ?>
|
||||
<a href="<?php echo $enlace; ?>">Ver oferta</a>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td width="7"><img src="_imgs/d.gif" width="12" alt=""></td>
|
||||
|
||||
<td width="270" valign="top">
|
||||
<div class="tit azul"><a href="oferta_ficha.php?id=<?php echo $arrayOferta['id']; ?>" class="lmod"><?php echo $arrayOferta['nombre']; ?></a></div>
|
||||
|
||||
<?php $longitud=150;
|
||||
if (($arrayOferta['pvp']=="") || ($arrayOferta['pvp']==0)) {
|
||||
$longitud=200;
|
||||
}
|
||||
else {?>
|
||||
<div class="oferta_precio"><?php echo ($arrayOferta['pvp'] == '-1' ? 'Consultar' : miNumberFormat($arrayOferta['pvp']) . '<span class="euro">€</span>'); ?></div>
|
||||
<?php } ?>
|
||||
<div class="oferta_texto"><?php if(strlen($arrayOferta['descripcion'])) { echo substr($arrayOferta['descripcion'], 0, $longitud); } ?><a href="oferta_ficha.php?id=<?php echo $arrayOferta['id']; ?>" class="mas">[+]</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</div>
|
||||
41
bann_ocasion_home.php
Normal file
@ -0,0 +1,41 @@
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="160">
|
||||
<div class="oferta_foto">
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td valign="middle" align="center">
|
||||
<?php
|
||||
//SI TIENE PDF la imagen irá al pdf si no a la ficha
|
||||
$path_pdf = '_ocs/' . $arrayOcasion['id'] . '.pdf';
|
||||
$path_jpg = '_ocs/' . $arrayOcasion['id'] . '_168.jpg';
|
||||
if (!file_exists($path_pdf))
|
||||
$path_pdf = "";
|
||||
if (!file_exists($path_jpg))
|
||||
$path_jpg = "";
|
||||
|
||||
if ($path_pdf != "") {
|
||||
$enlace = $path_pdf;
|
||||
}
|
||||
else
|
||||
$enlace = "ocasion_ficha.php?id=". $arrayOcasion['id'];
|
||||
?>
|
||||
|
||||
<a href="<?php echo $enlace; ?>">
|
||||
<?php
|
||||
if ($path_jpg != "") {
|
||||
?>
|
||||
<img src="<?php echo $path_jpg; ?>" width="160" border="0"></a><br />
|
||||
<?php } ?>
|
||||
<a href="<?php echo $enlace; ?>">Ver ocasión</a>
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td width="8"></td>
|
||||
<td width="152" valign="top">
|
||||
<div class="oferta_marca"><?php echo $arrayOcasion['fab_nombre']; ?><br><span class="tit azul"><?php echo $arrayOcasion['nombre']; ?></span></div>
|
||||
<div class="oferta_precio"><?php echo ($arrayOcasion['precio'] == '-1' ? 'Consultar' : miNumberFormat($arrayOcasion['precio']) . '<span class="euro">€</span>'); ?></div>
|
||||
<div class="oferta_texto"><?php if(strlen($arrayOcasion['descripcion'])) { echo substr($arrayOcasion['descripcion'], 0, 150) . '...'; } ?></div>
|
||||
<div class="producto_ocasion1"><br />Precio PVP: <?php echo $arrayOcasion['pvp'];?> €</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
46
bann_oferta_home.php
Normal file
@ -0,0 +1,46 @@
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="160">
|
||||
<div class="oferta_foto">
|
||||
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td valign="top" align="center">
|
||||
<?php
|
||||
//SI TIENE PDF la imagen irá al pdf si no a la ficha
|
||||
$path_pdf = '_ofr/' . $arrayOfertas['id'] . '.pdf';
|
||||
$path_jpg = '_ofr/' . $arrayOfertas['id'] . '_168.jpg';
|
||||
if (!file_exists($path_pdf))
|
||||
$path_pdf = "";
|
||||
if (!file_exists($path_jpg))
|
||||
$path_jpg = "";
|
||||
|
||||
if ($path_pdf != "") {
|
||||
$enlace = $path_pdf;
|
||||
}
|
||||
else
|
||||
$enlace = "oferta_ficha.php?id=". $arrayOfertas['id'];
|
||||
?>
|
||||
|
||||
<a href="<?php echo $enlace; ?>">
|
||||
<?php
|
||||
if ($path_jpg != "") {
|
||||
?>
|
||||
<img src="<?php echo $path_jpg; ?>" width="160" border="0"></a><br />
|
||||
<?php } ?>
|
||||
<a href="<?php echo $enlace; ?>">Ver oferta</a>
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td>
|
||||
<td width="8"></td>
|
||||
<td width="152" valign="top">
|
||||
<div class="tit azul"><?php echo $arrayOfertas['nombre']; ?></div>
|
||||
<?php $longitud=50;
|
||||
if (($arrayOfertas['pvp']=="") || ($arrayOfertas['pvp']==0)) {
|
||||
$longitud=70;
|
||||
}
|
||||
else {?>
|
||||
<div class="oferta_precio"><?php echo ($arrayOfertas['pvp'] == '-1' ? 'Consultar' : miNumberFormat($arrayOfertas['pvp']) . '<span class="euro">€</span>'); ?></div>
|
||||
<?php } ?>
|
||||
<div class="oferta_texto"><?php if(strlen($arrayOfertas['descripcion'])) { echo substr($arrayOfertas['descripcion'], 0, $longitud); } ?><a href="oferta_ficha.php?id=<?php echo $arrayOfertas['id']; ?>" class="mas">[+]</a>
|
||||
</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
@ -35,11 +35,12 @@
|
||||
<li class="<?php echo $str_HT; ?>" id="menu_HT"><a href="#" class="parent" onclick="door(this, 'menu_HF', 'menu_IM', 'menu_CC', 'menu_AL');">HOME CINEMA</a>
|
||||
<ul class="item">
|
||||
<li><a href="tienda.php?cat=HT01">Amplificadores A/V</a></li>
|
||||
<li><a href="tienda.php?cat=HT02">Reproductores DVD</a></li>
|
||||
<!--li><a href="tienda.php?cat=HT02">Reproductores DVD</a></li-->
|
||||
<li><a href="tienda.php?cat=HT03">Procesadores A/V</a></li>
|
||||
<li><a href="tienda.php?cat=HT04">Etapas multicanal</a></li>
|
||||
<li><a href="tienda.php?cat=HT05">Grabadores A/V</a></li>
|
||||
<li><a href="tienda.php?cat=HT06">Sintonizadores HDTV</a></li>
|
||||
<li><a href="tienda.php?cat=HT07">Reproductores Blu Ray</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="<?php echo $str_IM; ?>" id="menu_IM"><a href="#" class="parent" onclick="door(this, 'menu_HF', 'menu_HT', 'menu_CC', 'menu_AL');">IMAGEN</a>
|
||||
@ -79,4 +80,5 @@
|
||||
</ul>
|
||||
</li>
|
||||
<li class="mudo"><a href="ocasion.php" class="parent">OCASIÓN</a></li>
|
||||
<li class="mudo"><a href="ofertas.php" class="parent">OFERTAS</a></li>
|
||||
</ul>
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
Clave Audio S.L. garantiza expresamente que los datos que usted nos facilite son mantenidos con absoluta confidencialidad.<br><br>
|
||||
<span class="E1 E2">2.Tratamiento de sus datos personales</span><br>
|
||||
Al objeto de procesar su pedido, requerimos que nos faciliten ciertos datos personales como el N.I.F., nombre y apellidos, dirección, teléfono y e-mail, datos que serán tratados de forma informatizada.Vd. autoriza a Clave Audio S.L. para el uso y tratamiento informático de los datos personales que facilite, que serán empleados para proporcionarle información de nuestras condiciones de distribución, la promoción de los productos y servicios de Clave Audio SL, y con fines históricos.<br><br>
|
||||
De conformidad con lo establecido en la Ley Orgánica 15/99, de 13 de Diciembre de Protección de Datos de Carácter Personal y en la normativa de desarollo, usted puede, en cualquier momento, ejercer su derecho de acceso, modificación o cancelación enviando un e-mail a datospersonales@claveaudio.com o mediante correo ordinario a nuestra <a href="#direccion" class="minilink">dirección de contacto.</a><br><br>
|
||||
De conformidad con lo establecido en la Ley Orgánica 15/99, de 13 de Diciembre de Protección de Datos de Carácter Personal y en la normativa de desarollo, usted puede, en cualquier momento, ejercer su derecho de acceso, modificación o cancelación enviando un e-mail a info@claveaudio.com o mediante correo ordinario a nuestra <a href="#direccion" class="minilink">dirección de contacto.</a><br><br>
|
||||
El tratamiento y gestión de los datos cumple lo estipulado en el Real Decreto 994/1999, de 11 de junio, por el que se aprueba el reglamento de medidas de seguridad de los ficheros automatizados que contengan datos de carácter personal.<br><br>
|
||||
Clave Audio S.L. no venderá, bajo ningún concepto, información sobre sus clientes a terceros ni cederá información alguna de sus datos.<br><br>
|
||||
<span class="E1 E2">3.Datos de tarjetas de crédito</span><br>
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
if($j == 4) {
|
||||
if($j == 2) {
|
||||
$j = 0;
|
||||
?>
|
||||
</tr>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<ul id="menuTree">
|
||||
<li class="mudo"><a href="clavequien.php" class="parent upper">Quiénes Somos</a></li>
|
||||
<li class="mudo"><a href="clavemarcas.php" class="parent upper">Nuestras Marcas</a></li>
|
||||
<li class="mudo"><a href="articulos2.php?t=2" class="parent upper">e-Learning</a></li>
|
||||
<li class="mudo"><a href="clavefaq.php" class="parent upper">Preguntas Frecuentes</a></li>
|
||||
<li class="mudo"><a href="clavelegal.php" class="parent upper">Información Legal</a></li></ul>
|
||||
127
index.php
@ -64,7 +64,9 @@ ini_set ('display_errors', '0');
|
||||
|
||||
?>
|
||||
<table width="708" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
|
||||
<!--Banners cabecera-->
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<table id="banner" width="708" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
@ -78,11 +80,17 @@ ini_set ('display_errors', '0');
|
||||
</tr>
|
||||
<tr><td colspan="2" class="sombra" height="10"></td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Separacion cuerpo -->
|
||||
<tr>
|
||||
<td><img src="_imgs/d.gif" width="348" height="1"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="1"></td>
|
||||
<td><img src="_imgs/d.gif" width="348" height="1"></td></tr>
|
||||
<td><img src="_imgs/d.gif" width="348" height="1"></td>
|
||||
</tr>
|
||||
|
||||
<!-- Cuerpo -->
|
||||
<tr>
|
||||
<td valign="top">
|
||||
|
||||
@ -96,7 +104,62 @@ ini_set ('display_errors', '0');
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="zona" width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<!--NUEVA ESTRUCTURA-->
|
||||
<table id="zona" width="348" border="1" cellpadding="0" cellspacing="0">
|
||||
<tr><td height="29"><img src="_imgs/zonatit.gif" style="margin-left:8px" /></td></tr>
|
||||
</table>
|
||||
|
||||
<table id="ofertas" width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td height="50">OFERTAS</td></tr>
|
||||
<tr><td height="5" colspan="3"><div class="sepa"></div></td></tr>
|
||||
|
||||
<?php
|
||||
$miOfertas = new shoopOfertaNueva(3, '');
|
||||
for ($i=0; $i < $miOfertas->getNum(); $i++){
|
||||
$arrayOfertas = $miOfertas->getNextOferta();
|
||||
if(!empty($arrayOfertas)){
|
||||
?>
|
||||
<tr><td> <?php include('bann_oferta_home.php');?> </td></tr>
|
||||
<tr><td height="5"><div class="sepa"></div></td></tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<p align="right" style="margin:0;padding:0"><a href="ofertas.php" class="pielink">Ver todo el material de Oferta >></a></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<table id="ocasion" width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td height="50">OCASIÓN</td></tr>
|
||||
<tr><td height="5" colspan="3"><div class="sepa"></div></td></tr>
|
||||
|
||||
<?php
|
||||
$miOcasion = new shoopOcasion(3, '');
|
||||
for ($i=0; $i < $miOcasion->getNum(); $i++){
|
||||
$arrayOcasion = $miOcasion->getNextOcasion();
|
||||
if(!empty($arrayOcasion)){
|
||||
?>
|
||||
<tr><td bgcolor="#FFFFFF"><?php include('bann_ocasion_home.php');?></td></tr>
|
||||
<tr><td height="5"><div class="sepa"></div></td></tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<p align="right" style="margin:0;padding:0"><a href="ocasion.php" class="pielink">Ver todo el material de Ocasión >></a></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
<!--FIN NUEVA ESTRUCTURA-->
|
||||
|
||||
|
||||
|
||||
<!--ZONA-->
|
||||
<!--table id="zona" width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td height="29"><img src="_imgs/zonatit.gif" style="margin-left:8px" /></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
@ -115,7 +178,7 @@ ini_set ('display_errors', '0');
|
||||
<div class="oferta">
|
||||
<?php
|
||||
// el parametro que paso es el nœmero de ofertas de tipo 1 de cualquier categoria que quiero
|
||||
$miOferta = new shoopOfertas(2);
|
||||
$miOferta = new shoopOfertas(4);
|
||||
if($miOferta->getNum()){
|
||||
$arrayOferta = $miOferta->getNextOferta();
|
||||
include('bann1.php');
|
||||
@ -197,34 +260,37 @@ ini_set ('display_errors', '0');
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table-->
|
||||
|
||||
</td>
|
||||
|
||||
<!--SEPARACION-->
|
||||
<td></td>
|
||||
|
||||
<!--LATERAL DERECHO-->
|
||||
<td valign="top">
|
||||
|
||||
<table id="novedades" width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<!--NOVEDADES-->
|
||||
<table id="novedades" width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="3" height="25"><img src="_imgs/novetit.gif" alt="novedades" width="129" height="13"></td></tr>
|
||||
<?php
|
||||
if($conn) {
|
||||
$query = 'SELECT articulo_id, articulo_titular, articulo_entradilla FROM edito_articulos ORDER BY articulo_id DESC LIMIT 1';
|
||||
$query = 'SELECT articulo_id, articulo_titular, articulo_entradilla FROM edito_articulos ORDER BY articulo_id DESC LIMIT 4';
|
||||
$result = mysql_query($query, $conn);
|
||||
if($result && mysql_num_rows($result)) {
|
||||
$row = mysql_fetch_array($result);
|
||||
if($result && (mysql_num_rows($result)>0)) {
|
||||
while ($row = mysql_fetch_array($result)){
|
||||
?>
|
||||
<tr>
|
||||
<td width="168" valign="top">
|
||||
<span class="tit azul"><?= $row['articulo_titular']; ?></span><br />
|
||||
<?= $row['articulo_entradilla']; ?> <a href="articulos.php?t=1&id=<?= $row['articulo_id']; ?>" class="mas">[+]</a></td>
|
||||
<td><img src="_imgs/d.gif" width="11" height="1" alt=""></td>
|
||||
<td valign="top">
|
||||
<tr>
|
||||
<td width="168" valign="top">
|
||||
<span class="tit azul"><?= $row['articulo_titular']; ?></span><br />
|
||||
<?= $row['articulo_entradilla']; ?> <a href="articulos.php?t=1&id=<?= $row['articulo_id']; ?>" class="mas">[+]</a></td>
|
||||
<td><img src="_imgs/d.gif" width="11" height="1" alt=""></td>
|
||||
<td valign="top">
|
||||
<?php
|
||||
$query = 'SELECT galeria_imagen_name FROM edito_galeria_imagenes WHERE galeria_articulo_id = ' . $row['articulo_id'] . ' ORDER BY galeria_imagen_name';
|
||||
$result = mysql_query($query, $conn);
|
||||
if($result){
|
||||
while($row_img = mysql_fetch_array($result)) {
|
||||
$result2 = mysql_query($query, $conn);
|
||||
if($result2){
|
||||
while($row_img = mysql_fetch_array($result2)) {
|
||||
$path_108 = '_pics/' . $row_img['galeria_imagen_name'] . '_348.jpg';
|
||||
if(file_exists($path_108)) {
|
||||
?>
|
||||
@ -237,15 +303,15 @@ ini_set ('display_errors', '0');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="25" colspan="3"><div class="sepa"></div></td></tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<!--BANNERS-->
|
||||
<table id="right" width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
|
||||
@ -265,14 +331,15 @@ ini_set ('display_errors', '0');
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="banner01">
|
||||
<?php
|
||||
// el par‡metro que paso es el nœmero de baners de tipo 1 que quiero
|
||||
$miBanner = new shoopBanners(1, 348);
|
||||
if($miBanner->getNum())
|
||||
echo $miBanner->getNextBanner();
|
||||
?>
|
||||
</div>
|
||||
$miBanner = new shoopBanners(2, 348);
|
||||
for ($i=0; $i < $miBanner->getNum(); $i++){
|
||||
?>
|
||||
<div class="banner01"><?php echo $miBanner->getNextBanner();?></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</td></tr></table>
|
||||
|
||||
23
ocasion.php
@ -25,8 +25,9 @@ if(!is_object($cart)) $cart = new wfCart();
|
||||
$result = false;
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = 'SELECT ocasion_id, ocasion_categoria, ocasion_nombre, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_descripcion
|
||||
$query = 'SELECT ocasion_id, ocasion_fab_id, fab_nombre, ocasion_categoria, ocasion_nombre, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_descripcion
|
||||
FROM shoop_ocasion
|
||||
LEFT JOIN shoop_fabricantes on (ocasion_fab_id=fab_id)
|
||||
WHERE ocasion_unidades > 0
|
||||
ORDER BY ocasion_categoria, ocasion_id';
|
||||
|
||||
@ -116,10 +117,11 @@ include('top.htm');
|
||||
// este es el destacado que aparece en la parte superior de todas las paginas de la tienda.
|
||||
|
||||
// quiero una oferta de tipo dos de la categoria que me han pasado (o de cualquiera si no hay categor’a)
|
||||
$miOferta = new shoopOfertas(1, '', '2');
|
||||
if($miOferta->getNum()){
|
||||
$arrayOferta = $miOferta->getNextOferta();
|
||||
include('bann2.php');
|
||||
$miOcasion = new shoopOcasion(1, '');
|
||||
if($miOcasion->getNum()){
|
||||
$arrayOcasion = $miOcasion->getNextOcasion();
|
||||
if(!empty($arrayOcasion))
|
||||
include('bann2_ocasion.php');
|
||||
?>
|
||||
</td></tr>
|
||||
<tr><td background="_imgs/ptoshb.gif"><img src="_imgs/d.gif" width="168" height="8"></td></tr>
|
||||
@ -153,6 +155,7 @@ include('top.htm');
|
||||
$ocasion_pvp = $row['ocasion_pvp'];
|
||||
$ocasion_precio = $row['ocasion_precio'];
|
||||
$ocasion_descripcion = $row['ocasion_descripcion'];
|
||||
$fab_nombre = $row['fab_nombre'];
|
||||
|
||||
if($ocasion_categoria != $curSeccion){
|
||||
$curSeccion = $ocasion_categoria;
|
||||
@ -167,18 +170,12 @@ include('top.htm');
|
||||
?>
|
||||
<tr onMouseOver="overRow(this);return false;" onMouseOut="outRow(this);return false;">
|
||||
<td width="10"></td>
|
||||
<td width="335" valign="top" class="data"><?= $ocasion_nombre . (strlen($ocasion_estado) ? ' (<i>' . $ocasion_estado . '</i>)': "") . (strlen($ocasion_descripcion) ? '<br><span class="seccion">' . $ocasion_descripcion . '</span>': "") ; ?></td>
|
||||
<td width="335" valign="top" class="data"><a href="ocasion_ficha.php?id=<?= $ocasion_id; ?> " class="pielink"><b>
|
||||
<?= $fab_nombre; ?> </b> <?= $ocasion_nombre . (strlen($ocasion_estado) ? ' (<i>' . $ocasion_estado . '</i>)': "") . (strlen($ocasion_descripcion) ? '<br><span class="seccion">' . $ocasion_descripcion . '</span>': "") ; ?></a></td>
|
||||
<td width="70" valign="top" align="right" class="data"><?= miNumberFormat($ocasion_pvp); ?></td>
|
||||
<td width="70" valign="top" align="right" class="data"><?= miNumberFormat($ocasion_precio); ?></td>
|
||||
<td width="30" align="right" valign="top"><a href="ocasion_add.php?id=<?= $ocasion_id; ?>&precio=<?= $ocasion_precio; ?>&modelo=<?= $ocasion_nombre; ?>" onMouseOver="MM_swapImage('comprar<?= $ocasion_id; ?>','','_imgs/comprbm.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="_imgs/compram.gif" name="comprar<?= $ocasion_id; ?>" width="16" height="13" border="0" id="comprar<?= $ocasion_id; ?>"></a></td></tr>
|
||||
|
||||
<?php
|
||||
/*
|
||||
<td width="240" valign="top" class="data"> <?= substr($prod_categoria, 0, 25) . (strlen($prod_categoria) > 25 ? '...' : ''); ?></td>
|
||||
<td width="330" valign="top" class="data"><?= '<a href="producto.php?id=' . $ocasion_id . '&cat=' . $prod_categoria_id . '" class="pielink"><b>' . $prod_fab_id . '</b> ' . $prod_modelo . '</a>'; ?></td>
|
||||
<td width="100" valign="top" class="data" align="right"><?= ($prod_precio == -1 ? '<a href="javascript:doConsultar(' . $ocasion_id . ', \'precio\', \'' . componProducto($prod_categoria, $seccion_nombre) . str_replace('&', 'etperse', $prod_fab_id) . ' ' . str_replace('&', 'etperse', $prod_modelo) . '\');" class="pielink"><b>CONSULTAR</b></a>' : miNumberFormat($prod_precio) . '€'); ?></td></tr>
|
||||
*/
|
||||
?>
|
||||
<tr>
|
||||
<td bgcolor="#EDEEF1" colspan="5"><img src="_imgs/d.gif" width="2" height="1"></td></tr>
|
||||
<?php
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
include("_incl/wfCart.php");
|
||||
|
||||
session_start();
|
||||
include('db.php');
|
||||
|
||||
// ####################################################
|
||||
// cargo el carrito o lo creo nuevo si fuera menester
|
||||
@ -24,16 +25,16 @@ session_start();
|
||||
'acabados'=>''));
|
||||
|
||||
// elimino el producto de la lista
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = 'SELECT ocasion_unidades FROM shoop_ocasion WHERE ocasion_id = ' . $_REQUEST['id'];
|
||||
$result = mysql_query($query);
|
||||
if($result) {
|
||||
$row = mysql_fetch_array($result);
|
||||
$cuantos = $row['ocasion_unidades'] - 1;
|
||||
$query = 'UPDATE shoop_ocasion SET ocasion_unidades="' . $cuantos . '" WHERE ocasion_id = ' . $_REQUEST['id'];
|
||||
$result = mysql_query($query);
|
||||
}
|
||||
}
|
||||
// $conn = db_connect();
|
||||
// if($conn) {
|
||||
// $query = 'SELECT ocasion_unidades FROM shoop_ocasion WHERE ocasion_id = ' . $_REQUEST['id'];
|
||||
// $result = mysql_query($query);
|
||||
// if($result) {
|
||||
// $row = mysql_fetch_array($result);
|
||||
// $cuantos = $row['ocasion_unidades'] - 1;
|
||||
// $query = 'UPDATE shoop_ocasion SET ocasion_unidades="' . $cuantos . '" WHERE ocasion_id = ' . $_REQUEST['id'];
|
||||
// $result = mysql_query($query);
|
||||
// }
|
||||
// }
|
||||
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
||||
?>
|
||||
263
ocasion_ficha.php
Normal file
@ -0,0 +1,263 @@
|
||||
<?php
|
||||
// ####################################################
|
||||
// producto.php
|
||||
// parte de shoop
|
||||
// © ff 2005
|
||||
|
||||
// wfcart siempre antes del inicio de sesion
|
||||
include("_incl/wfCart.php");
|
||||
session_start();
|
||||
|
||||
include('db.php');
|
||||
include("_incl/code.php");
|
||||
include("_incl/shoopBanners.php");
|
||||
|
||||
|
||||
// ####################################################
|
||||
// cargo el carrito o lo creo nuevo si fuera menester
|
||||
|
||||
$cart =& $_SESSION['cart'];
|
||||
if(!is_object($cart)) $cart = new wfCart();
|
||||
|
||||
$ocasion_id = $_REQUEST['id'];
|
||||
|
||||
$ocasion_categoria_id = "";
|
||||
$ocasion_categoria_nombre = "";
|
||||
$ocasion_nombre = "";
|
||||
$ocasion_descripcion = "";
|
||||
$ocasion_estado = "";
|
||||
$ocasion_pvp = "";
|
||||
$ocasion_precio = "";
|
||||
$ocasion_unidades = "";
|
||||
$ocasion_fab_id = "";
|
||||
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = 'SELECT ocasion_id, ocasion_categoria, ocasion_nombre, ocasion_descripcion, ocasion_estado, ocasion_pvp, ocasion_precio, ocasion_unidades, ocasion_fab_id
|
||||
FROM shoop_ocasion
|
||||
WHERE ocasion_id="' . $ocasion_id . '"';
|
||||
$result = mysql_query($query, $conn);
|
||||
if (mysql_num_rows($result)) {
|
||||
$row = mysql_fetch_array($result);
|
||||
$ocasion_categoria_id = $row['ocasion_categoria'];
|
||||
$ocasion_nombre = $row['ocasion_nombre'];
|
||||
$ocasion_descripcion = $row['ocasion_descripcion'];
|
||||
$ocasion_estado = $row['ocasion_estado'];
|
||||
$ocasion_pvp = $row['ocasion_pvp'];
|
||||
$ocasion_precio = $row['ocasion_precio'];
|
||||
$ocasion_unidades = $row['ocasion_unidades'];
|
||||
$ocasion_fab_id = $row['ocasion_fab_id'];
|
||||
|
||||
//PARCHE DE CATEGORIAS DE OCASION
|
||||
switch($ocasion_categoria_id) {
|
||||
case 1: $ocasion_categoria_nombre = 'Altavoces'; break;
|
||||
case 2: $ocasion_categoria_nombre = 'Electrónicas'; break;
|
||||
case 3: $ocasion_categoria_nombre = 'Reproductores de CD, convertidores D/A, etc.'; break;
|
||||
case 4: $ocasion_categoria_nombre = 'Varios'; break;
|
||||
default: $ocasion_categoria_nombre = 'N/A';
|
||||
}
|
||||
|
||||
|
||||
$topLabel = '<span class="seccion"><a href="tienda.php" class="pielink">Tienda ></a><a href="ocasion.php" class="pielink"> Ocasión</a></span>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>clave audio</title>
|
||||
<link href="_incl/ca.css" rel="stylesheet" type="text/css" />
|
||||
<link href="_incl/prod.css" rel="stylesheet" type="text/css" />
|
||||
<link href="_incl/banners.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="_incl/code.js"></script>
|
||||
</head>
|
||||
<body onLoad="MM_preloadImages('_imgs/comprb.gif')">
|
||||
<?php
|
||||
include("top.htm");
|
||||
?>
|
||||
<table border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="7"><img src="_bann/topTienda.jpg"></td></tr>
|
||||
<tr>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td></tr>
|
||||
<tr>
|
||||
<td valign="top" width="168">
|
||||
|
||||
<?php
|
||||
// ####################################################
|
||||
// la celda que contiene el buscador, el menu y el carrito.
|
||||
?>
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" id="colIzda">
|
||||
<tr>
|
||||
<td bgcolor="#7A706A"><img src="_imgs/d.gif" width="6" height="12"></td>
|
||||
<td bgcolor="#7A706A"><img src="_imgs/titSearch.gif" width="156" height="18"></td>
|
||||
<td bgcolor="#7A706A" align="right"><img src="_imgs/crnr.gif" width="6" height="18"></td></tr></table>
|
||||
<?php include("buscar.php"); ?>
|
||||
<img src="_imgs/d.gif" width="168" height="12"><br>
|
||||
<?php
|
||||
$menu_cat = (strlen($cat_str) ? substr($cat_str, 0, 2) : '');
|
||||
include("categorias.php");
|
||||
?>
|
||||
<img src="_imgs/d.gif" width="168" height="12"><br>
|
||||
<?php include("carrito.php"); ?></td>
|
||||
<td></td>
|
||||
<td colspan="3" width="348" valign="top">
|
||||
<?php echo $topLabel; ?><br><img src="_imgs/g.gif" width="348" height="1"><br><br>
|
||||
<table width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<form id="ocasion" name="ocasion" method="post" action="carrito_add.php">
|
||||
<input name="id" id="id" type="hidden" value="<?php echo $ocasion_id; ?>">
|
||||
<input name="ocasion_categoria_id" id="ocasion_categoria_id" type="hidden" value="<?php echo $ocasion_categoria_id; ?>">
|
||||
<input name="ocasion_categoria_nombre" id="ocasion_categoria_nombre" type="hidden" value="<?php echo $ocasion_categoria_nombre; ?>">
|
||||
<input name="ocasion_nombre" id="ocasion_nombre" type="hidden" value="<?php echo $ocasion_nombre; ?>">
|
||||
<input name="ocasion_descripcion" id="ocasion_descripcion" type="hidden" value="<?php echo $ocasion_descripcion; ?>">
|
||||
<input name="ocasion_estado" id="ocasion_estado" type="hidden" value="<?php echo $ocasion_estado; ?>">
|
||||
<input name="ocasion_pvp" id="ocasion_pvp" type="hidden" value="<?php echo $ocasion_pvp; ?>">
|
||||
<input name="ocasion_precio" id="ocasion_precio" type="hidden" value="<?php echo $ocasion_precio; ?>">
|
||||
<input name="ocasion_estado" id="ocasion_unidades" type="hidden" value="<?php echo $ocasion_unidades; ?>">
|
||||
|
||||
<tr>
|
||||
<td colspan="3" width="348" valign="top" class="producto_texto">
|
||||
<span class="producto_tipo azul"><?php echo $ocasion_categoria_nombre; ?></span><br>
|
||||
<span class="producto_modelo"><?php echo $ocasion_nombre; ?></span><br>
|
||||
<span class="producto_tipo azul"><?php echo $ocasion_estado; ?></span><!--span class="producto_tipo rojo"> <?php //echo $ocasion_unidades; ?> Unidades</span--><br>
|
||||
<span class="producto_modelo">PVP:</span> <span class="producto_precio_ocasion1"><?php echo $ocasion_pvp; ?><span class="euro">€</span><br>
|
||||
<span class="producto_modelo">Ocasión:</span> <span class="producto_precio_ocasion2"><?php echo $ocasion_precio; ?><span class="euro">€</span><br>
|
||||
<img src="_imgs/d.gif" width="170" height="6"><br>
|
||||
|
||||
<a href="ocasion_add.php?id=<?= $ocasion_id; ?>&precio=<?= $ocasion_precio; ?>&modelo=<?= $ocasion_nombre; ?>" onMouseOver="MM_swapImage('comprar','','_imgs/comprb.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="_imgs/compra.gif" name="comprar" width="61" height="13" border="0" id="comprar"></a>
|
||||
|
||||
<!--a href="javascript:document.producto.submit();" onMouseOver="MM_swapImage('comprar','','_imgs/comprb.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="_imgs/compra.gif" name="comprar" width="61" height="13" border="0" id="comprar"></a><br>
|
||||
<?php if($cart->find_item($prod_id)) echo $cart->find_item($prod_id) . ' unidad' . ($cart->find_item($prod_id) > 1 ? 'es' : '') . ' en su cesta'; ?>-->
|
||||
</td>
|
||||
<!--td></td>
|
||||
<td width="170" valign="top" align="center">
|
||||
|
||||
<?php
|
||||
//LOGOTIPO FABRICANTE
|
||||
/* $path = '_logos/c/' . $ocasion_fab_id . '.gif';
|
||||
if (file_exists($path)) {
|
||||
echo '<img src="'.$path.'"><br>';
|
||||
}
|
||||
*/
|
||||
?>
|
||||
<img src="_imgs/d.gif" width="170" height="6"><br></td-->
|
||||
<tr>
|
||||
<td width="170"><img src="_imgs/d.gif" width="170" height="12"></td><td width="8"><img src="_imgs/d.gif" width="8" height="1"></td><td width="170"><img src="_imgs/d.gif" width="170" height="1"></td></tr>
|
||||
|
||||
<?php
|
||||
if($prod_precio > 0) {
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<table width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<?php
|
||||
if(strlen($ocasion_descripcion)) {
|
||||
?>
|
||||
<tr><td class="tit azul">DESCRIPCIÓN</td></tr>
|
||||
<tr><td background="_imgs/ptoshg.gif"><img src="_imgs/d.gif" width="168" height="1"></td></tr>
|
||||
<tr><td width="348" class="producto_texto"><br><?php echo $ocasion_descripcion; ?></td></tr>
|
||||
<tr><td><img src="_imgs/d.gif" width="170" height="12"></td></tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(strlen($prod_intro)) {
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo str_replace("\r", "<br>", htmlentities(stripslashes($prod_intro))); ?></td></tr>
|
||||
<tr><td><img src="_imgs/d.gif" width="170" height="12"></td></tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(strlen($prod_dimensiones)){
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>Dimensiones:</b> ' . $prod_dimensiones; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
if(strlen($prod_peso) && $prod_peso != '0.00'){
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>Peso:</b> ' . $prod_peso; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
if(strlen($prod_volumen) && $prod_volumen != '0.00'){
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>Volumen:</b> ' . $prod_volumen; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($conn){
|
||||
$query = 'SELECT procat_valor, catop_label FROM shoop_prod_caracteristicas, shoop_cate_caracteristicas WHERE catop_id=procat_catop AND procat_producto=' . $prod_id ;
|
||||
$result = mysql_query($query, $conn);
|
||||
if($result){
|
||||
while($row = mysql_fetch_array($result)) {
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>' . $row['catop_label'] . ':</b> ' . $row['procat_valor']; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<tr><td align="center">
|
||||
<?php
|
||||
//SI TIENE PDF la imagen irá al pdf si no a la ficha
|
||||
$path_pdf = '_ocs/' . $ocasion_id . '.pdf';
|
||||
$path_jpg = '_ocs/' . $ocasion_id . '_348.jpg';
|
||||
if (!file_exists($path_pdf))
|
||||
$path_pdf = "";
|
||||
if (!file_exists($path_jpg))
|
||||
$path_jpg = "";
|
||||
|
||||
if ($path_pdf != "") {
|
||||
$enlace = $path_pdf;
|
||||
}
|
||||
else
|
||||
$enlace = "ocasion_ficha.php?id=". $ocasion_id;
|
||||
?>
|
||||
|
||||
<a href="<?php echo $enlace; ?>">
|
||||
<?php
|
||||
if ($path_jpg != "") {
|
||||
?>
|
||||
<img src="<?php echo $path_jpg; ?>" width="348" border="0"></a>
|
||||
<?php }
|
||||
|
||||
if ($path_pdf != "") {
|
||||
?>
|
||||
<a href="<?php echo $enlace; ?>">Ver ocasion</a>
|
||||
<?php } ?>
|
||||
|
||||
</td></tr>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td width="168" valign="top">
|
||||
<img src="_bann/168clave.gif" alt="ventajas" border="0">
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||||
<tr>
|
||||
<td colspan="7"><?php include("pie.htm"); ?></td>
|
||||
</tr>
|
||||
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
28
oferta_add.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// ####################################################
|
||||
// ocasion_add.php
|
||||
// parte de shoop
|
||||
// © ff 2005
|
||||
|
||||
include("_incl/wfCart.php");
|
||||
|
||||
session_start();
|
||||
include('db.php');
|
||||
|
||||
// ####################################################
|
||||
// cargo el carrito o lo creo nuevo si fuera menester
|
||||
|
||||
$cart =& $_SESSION['cart'];
|
||||
if(!is_object($cart)) $cart = new wfCart();
|
||||
|
||||
$cart->add_item($_REQUEST['id'],
|
||||
1,
|
||||
$_REQUEST['precio'],
|
||||
array( 'tipo'=>'OFERTA',
|
||||
'marca'=>'',
|
||||
'modelo'=>$_REQUEST['modelo'],
|
||||
'color'=>'',
|
||||
'acabados'=>''));
|
||||
|
||||
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
|
||||
?>
|
||||
248
oferta_ficha.php
Normal file
@ -0,0 +1,248 @@
|
||||
<?php
|
||||
// ####################################################
|
||||
// producto.php
|
||||
// parte de shoop
|
||||
// © ff 2005
|
||||
|
||||
// wfcart siempre antes del inicio de sesion
|
||||
include("_incl/wfCart.php");
|
||||
session_start();
|
||||
|
||||
include('db.php');
|
||||
include("_incl/code.php");
|
||||
include("_incl/shoopBanners.php");
|
||||
|
||||
|
||||
// ####################################################
|
||||
// cargo el carrito o lo creo nuevo si fuera menester
|
||||
|
||||
$cart =& $_SESSION['cart'];
|
||||
if(!is_object($cart)) $cart = new wfCart();
|
||||
|
||||
$oferta_id = $_REQUEST['id'];
|
||||
|
||||
$oferta_categoria_id = "";
|
||||
$oferta_categoria_nombre = "";
|
||||
$oferta_nombre = "";
|
||||
$oferta_descripcion = "";
|
||||
$oferta_estado = "";
|
||||
$oferta_pvp = "";
|
||||
$oferta_fab_id = "";
|
||||
$oferta_unidades = "";
|
||||
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = 'SELECT oferta_id, oferta_categoria, oferta_nombre, oferta_descripcion, oferta_estado, oferta_pvp, oferta_fab_id, oferta_unidades
|
||||
FROM shoop_oferta
|
||||
WHERE oferta_id="' . $oferta_id . '"';
|
||||
$result = mysql_query($query, $conn);
|
||||
if (mysql_num_rows($result)) {
|
||||
$row = mysql_fetch_array($result);
|
||||
$oferta_categoria_id = $row['oferta_categoria'];
|
||||
$oferta_nombre = $row['oferta_nombre'];
|
||||
$oferta_descripcion = $row['oferta_descripcion'];
|
||||
$oferta_estado = $row['oferta_estado'];
|
||||
$oferta_pvp = $row['oferta_pvp'];
|
||||
$oferta_fab_id = $row['oferta_fab_id'];
|
||||
$oferta_unidades = $row['oferta_unidades'];
|
||||
|
||||
//PARCHE DE CATEGORIAS DE OFERTA
|
||||
switch($oferta_categoria_id) {
|
||||
case 1: $oferta_categoria_nombre = 'Altavoces'; break;
|
||||
case 2: $oferta_categoria_nombre = 'Electrónicas'; break;
|
||||
case 3: $oferta_categoria_nombre = 'Reproductores de CD, convertidores D/A, etc.'; break;
|
||||
case 4: $oferta_categoria_nombre = 'Varios'; break;
|
||||
default: $oferta_categoria_nombre = 'N/A';
|
||||
}
|
||||
|
||||
|
||||
$topLabel = '<span class="seccion"><a href="tienda.php" class="pielink">Tienda ></a><a href="ocasion.php" class="pielink"> Oferta</a></span>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>clave audio</title>
|
||||
<link href="_incl/ca.css" rel="stylesheet" type="text/css" />
|
||||
<link href="_incl/prod.css" rel="stylesheet" type="text/css" />
|
||||
<link href="_incl/banners.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="_incl/code.js"></script>
|
||||
</head>
|
||||
<body onLoad="MM_preloadImages('_imgs/comprb.gif')">
|
||||
<?php
|
||||
include("top.htm");
|
||||
?>
|
||||
<table border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="7"><img src="_bann/topTienda.jpg"></td></tr>
|
||||
<tr>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td></tr>
|
||||
<tr>
|
||||
<td valign="top" width="168">
|
||||
|
||||
<?php
|
||||
// ####################################################
|
||||
// la celda que contiene el buscador, el menu y el carrito.
|
||||
?>
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" id="colIzda">
|
||||
<tr>
|
||||
<td bgcolor="#7A706A"><img src="_imgs/d.gif" width="6" height="12"></td>
|
||||
<td bgcolor="#7A706A"><img src="_imgs/titSearch.gif" width="156" height="18"></td>
|
||||
<td bgcolor="#7A706A" align="right"><img src="_imgs/crnr.gif" width="6" height="18"></td></tr></table>
|
||||
<?php include("buscar.php"); ?>
|
||||
<img src="_imgs/d.gif" width="168" height="12"><br>
|
||||
<?php
|
||||
$menu_cat = (strlen($cat_str) ? substr($cat_str, 0, 2) : '');
|
||||
include("categorias.php");
|
||||
?>
|
||||
<img src="_imgs/d.gif" width="168" height="12"><br>
|
||||
<?php include("carrito.php"); ?></td>
|
||||
<td></td>
|
||||
<td colspan="3" width="348" valign="top">
|
||||
<?php echo $topLabel; ?><br><img src="_imgs/g.gif" width="348" height="1"><br><br>
|
||||
<table width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<form id="ocasion" name="ocasion" method="post" action="carrito_add.php">
|
||||
<input name="id" id="id" type="hidden" value="<?php echo $oferta_id; ?>">
|
||||
<input name="oferta_categoria_id" id="oferta_categoria_id" type="hidden" value="<?php echo $oferta_categoria_id; ?>">
|
||||
<input name="oferta_categoria_nombre" id="oferta_categoria_nombre" type="hidden" value="<?php echo $oferta_categoria_nombre; ?>">
|
||||
<input name="oferta_nombre" id="oferta_nombre" type="hidden" value="<?php echo $oferta_nombre; ?>">
|
||||
<input name="oferta_descripcion" id="oferta_descripcion" type="hidden" value="<?php echo $oferta_descripcion; ?>">
|
||||
<input name="oferta_estado" id="oferta_estado" type="hidden" value="<?php echo $oferta_estado; ?>">
|
||||
<input name="oferta_pvp" id="oferta_pvp" type="hidden" value="<?php echo $oferta_pvp; ?>">
|
||||
<input name="oferta_precio" id="oferta_fab_id" type="hidden" value="<?php echo $oferta_fab_id; ?>">
|
||||
<input name="oferta_estado" id="oferta_unidades" type="hidden" value="<?php echo $oferta_unidades; ?>">
|
||||
|
||||
<tr>
|
||||
<td colspan="3" width="348" valign="top" class="producto_texto">
|
||||
<span class="producto_modelo"><?php echo $oferta_nombre; ?></span><br>
|
||||
<?php
|
||||
if (($oferta_pvp!="") && ($oferta_pvp>0)) {
|
||||
?>
|
||||
<span class="producto_precio_ocasion2">PVP: <?php echo $oferta_pvp; ?></span><span class="euro">€</span><br>
|
||||
<?php } ?>
|
||||
|
||||
<img src="_imgs/d.gif" width="170" height="6"><br>
|
||||
|
||||
<a href="oferta_add.php?id=<?= $oferta_id; ?>&precio=<?= $oferta_pvp; ?>&modelo=<?= $oferta_nombre; ?>" onMouseOver="MM_swapImage('comprar','','_imgs/comprb.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="_imgs/compra.gif" name="comprar" width="61" height="13" border="0" id="comprar"></a>
|
||||
</td>
|
||||
|
||||
<!--td></td>
|
||||
<td width="170" valign="top" align="center"></td-->
|
||||
<tr>
|
||||
<td width="170"><img src="_imgs/d.gif" width="170" height="12"></td><td width="8"><img src="_imgs/d.gif" width="8" height="1"></td><td width="170"><img src="_imgs/d.gif" width="170" height="1"></td></tr>
|
||||
|
||||
<?php
|
||||
if($prod_precio > 0) {
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<table width="348" border="0" cellpadding="0" cellspacing="0">
|
||||
<?php
|
||||
if(strlen($oferta_descripcion)) {
|
||||
?>
|
||||
<tr><td class="tit azul">DESCRIPCIÓN</td></tr>
|
||||
<tr><td background="_imgs/ptoshg.gif"><img src="_imgs/d.gif" width="168" height="1"></td></tr>
|
||||
<tr><td width="348" class="producto_texto"><br><?php echo $oferta_descripcion; ?></td></tr>
|
||||
<tr><td><img src="_imgs/d.gif" width="170" height="12"></td></tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(strlen($prod_intro)) {
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo str_replace("\r", "<br>", htmlentities(stripslashes($prod_intro))); ?></td></tr>
|
||||
<tr><td><img src="_imgs/d.gif" width="170" height="12"></td></tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(strlen($prod_dimensiones)){
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>Dimensiones:</b> ' . $prod_dimensiones; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
if(strlen($prod_peso) && $prod_peso != '0.00'){
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>Peso:</b> ' . $prod_peso; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
if(strlen($prod_volumen) && $prod_volumen != '0.00'){
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>Volumen:</b> ' . $prod_volumen; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($conn){
|
||||
$query = 'SELECT procat_valor, catop_label FROM shoop_prod_caracteristicas, shoop_cate_caracteristicas WHERE catop_id=procat_catop AND procat_producto=' . $prod_id ;
|
||||
$result = mysql_query($query, $conn);
|
||||
if($result){
|
||||
while($row = mysql_fetch_array($result)) {
|
||||
?>
|
||||
<tr><td width="348" class="producto_texto"><?php echo '<b>' . $row['catop_label'] . ':</b> ' . $row['procat_valor']; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr><td align="center">
|
||||
<?php
|
||||
//SI TIENE PDF la imagen irá al pdf si no a la ficha
|
||||
$path_pdf = '_ofr/' . $oferta_id . '.pdf';
|
||||
$path_jpg = '_ofr/' . $oferta_id . '_348.jpg';
|
||||
if (!file_exists($path_pdf))
|
||||
$path_pdf = "";
|
||||
if (!file_exists($path_jpg))
|
||||
$path_jpg = "";
|
||||
|
||||
if ($path_pdf != "") {
|
||||
$enlace = $path_pdf;
|
||||
}
|
||||
else
|
||||
$enlace = "oferta_ficha.php?id=". $oferta_id;
|
||||
?>
|
||||
|
||||
<a href="<?php echo $enlace; ?>">
|
||||
<?php
|
||||
if ($path_jpg != "") {
|
||||
?>
|
||||
<img src="<?php echo $path_jpg; ?>" width="348" border="0"></a>
|
||||
<?php }
|
||||
|
||||
if ($path_pdf != "") {
|
||||
?>
|
||||
<a href="<?php echo $enlace; ?>">Ver oferta</a>
|
||||
<?php } ?>
|
||||
|
||||
</td></tr>
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td width="168" valign="top">
|
||||
<img src="_bann/168clave.gif" alt="ventajas" border="0">
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||||
<tr>
|
||||
<td colspan="7"><?php include("pie.htm"); ?></td>
|
||||
</tr>
|
||||
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
200
ofertas.php
Normal file
@ -0,0 +1,200 @@
|
||||
<?php
|
||||
// ####################################################
|
||||
// tienda.php
|
||||
// parte de shoop
|
||||
// © ff 2005
|
||||
|
||||
// wfcart siempre antes del inicio de sesion
|
||||
include("_incl/wfCart.php");
|
||||
session_start();
|
||||
|
||||
ini_set ('error_reporting', E_ALL);
|
||||
ini_set ('display_errors', '1');
|
||||
|
||||
|
||||
include('db.php');
|
||||
include("_incl/shoopOfertas.php");
|
||||
include("_incl/shoopBanners.php");
|
||||
|
||||
// ####################################################
|
||||
// cargo el carrito o lo creo nuevo si fuera menester
|
||||
$cart =& $_SESSION['cart'];
|
||||
if(!is_object($cart)) $cart = new wfCart();
|
||||
|
||||
|
||||
$result = false;
|
||||
$conn = db_connect();
|
||||
if($conn) {
|
||||
$query = 'SELECT oferta_id, oferta_fab_id, fab_nombre, oferta_categoria, oferta_nombre, oferta_estado, oferta_pvp, oferta_descripcion
|
||||
FROM shoop_oferta
|
||||
LEFT JOIN shoop_fabricantes on (oferta_fab_id=fab_id)
|
||||
WHERE oferta_unidades > 0
|
||||
ORDER BY oferta_categoria, oferta_id';
|
||||
|
||||
$result = mysql_query($query, $conn);
|
||||
if($result) {
|
||||
$numProductos = mysql_num_rows($result);
|
||||
$topLabel = '<span class="seccion"><a href="tienda.php" class="pielink">Tienda ></a> Material de oferta</span>';
|
||||
}
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// llegados a este punto sabemos en que estado esta la pagina
|
||||
// tenemos, incluso, los resultados de la busqueda, if any
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>clave audio</title>
|
||||
<link href="_incl/ca.css" rel="stylesheet" type="text/css" />
|
||||
<link href="_incl/sformi.css" rel="stylesheet" type="text/css" />
|
||||
<link href="_incl/banners.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="_incl/code.js"></script>
|
||||
</head>
|
||||
<body onLoad="MM_preloadImages('_imgs/comprbm.gif')">
|
||||
<?php
|
||||
// ####################################################
|
||||
// la banda superior y el menœ principal
|
||||
|
||||
include('top.htm');
|
||||
|
||||
// ####################################################
|
||||
// esta es la tabla general que da forma a la pagina.
|
||||
?>
|
||||
<table border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="7"><!--img src="_bann/ocasion.jpg"--></td></tr>
|
||||
<tr>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||||
<td><img src="_imgs/d.gif" width="168" height="12"></td></tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
|
||||
<?php
|
||||
// ####################################################
|
||||
// la celda que contiene el buscador, el menu y el carrito.
|
||||
?>
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" id="colIzda">
|
||||
<tr>
|
||||
<td bgcolor="#7A706A"><img src="_imgs/d.gif" width="6" height="12"></td>
|
||||
<td bgcolor="#7A706A"><img src="_imgs/titSearch.gif" width="156" height="18"></td>
|
||||
<td bgcolor="#7A706A" align="right"><img src="_imgs/crnr.gif" width="6" height="18"></td></tr></table>
|
||||
<?php include("buscar.php"); ?>
|
||||
<img src="_imgs/d.gif" width="168" height="12"><br>
|
||||
<?php
|
||||
$menu_cat = '';
|
||||
include("categorias.php");
|
||||
?>
|
||||
<img src="_imgs/d.gif" width="168" height="12"><br>
|
||||
<?php include("carrito.php"); ?></td>
|
||||
<td></td>
|
||||
<td colspan="5" valign="top" width="528">
|
||||
|
||||
<?php
|
||||
// ####################################################
|
||||
// esta parte es comun: texto y destacado de 3 columnas.
|
||||
?>
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" id="topClaim">
|
||||
|
||||
<?php
|
||||
// ####################################################
|
||||
// dependiendo de si estoy en el indice muestro el bienvenidos o el nombre de la secci—n/busqueda.
|
||||
?>
|
||||
<!--tr><td><?= $topLabel; ?><br><img src="_imgs/g.gif" width="528" height="1"></td></tr-->
|
||||
|
||||
<tr><td>
|
||||
<?php
|
||||
// ####################################################
|
||||
// este es el destacado que aparece en la parte superior de todas las paginas de la tienda.
|
||||
|
||||
// quiero una oferta de tipo dos de la categoria que me han pasado (o de cualquiera si no hay categor’a)
|
||||
$miOferta = new shoopOfertaNueva(1, '');
|
||||
if($miOferta->getNum()){
|
||||
$arrayOferta = $miOferta->getNextOferta();
|
||||
if(!empty($arrayOferta))
|
||||
include('bann2_oferta.php');
|
||||
?>
|
||||
</td></tr>
|
||||
<tr><td background="_imgs/ptoshb.gif"><img src="_imgs/d.gif" width="168" height="8"></td></tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" id="saludo">
|
||||
<tr><td><img src="_imgs/d.gif" width="168" height="8"></td></tr>
|
||||
<tr><td width="528" class="parr">Este es un listado parcial de productos en oferta.<br \>
|
||||
Estos precios incluyen IVA.
|
||||
</td></tr>
|
||||
<tr><td background="_imgs/ptoshb.gif"><img src="_imgs/d.gif" width="168" height="8"></td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
if($result && $numProductos) {
|
||||
?>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="528">
|
||||
<tr>
|
||||
<td colspan="2" class="lbl">OFERTA<img src="_imgs/d.gif" width="15" height="18"></td>
|
||||
<td width="70" class="lbl" align="right" valign="bottom">PVP Oferta</td>
|
||||
<td width="30"></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$secciones = array('', 'Altavoces', 'Electrónicas', 'Reproductores de CD, convertidores D/A, etc.', 'Varios');
|
||||
$curSeccion='';
|
||||
while ($row = mysql_fetch_array($result))
|
||||
{
|
||||
$oferta_id = $row['oferta_id'];
|
||||
$oferta_categoria = $row['oferta_categoria'];
|
||||
$oferta_nombre = $row['oferta_nombre'];
|
||||
$oferta_estado = $row['oferta_estado'];
|
||||
$oferta_pvp = $row['oferta_pvp'];
|
||||
$oferta_fab_id = $row['oferta_fab_id'];
|
||||
$fab_nombre = $row['fab_nombre'];
|
||||
$oferta_descripcion = $row['oferta_descripcion'];
|
||||
|
||||
// if($oferta_categoria != $curSeccion){
|
||||
// $curSeccion = $oferta_categoria;
|
||||
?>
|
||||
<?php
|
||||
// }
|
||||
?>
|
||||
<tr onMouseOver="overRow(this);return false;" onMouseOut="outRow(this);return false;">
|
||||
<td width="10"></td>
|
||||
<td width="335" valign="top" class="data">
|
||||
<span class="tit azul"><a href="oferta_ficha.php?id=<?= $oferta_id; ?> " class="pielink"> <?= $oferta_nombre . (strlen($oferta_estado) ? '</span>': "") ; ?></a></span><br/>
|
||||
|
||||
<?php if(strlen($oferta_descripcion)) { echo substr($oferta_descripcion, 0, 150); } ?><a href="oferta_ficha.php?id=<?php echo $oferta_id; ?>" class="mas">[+]</a>
|
||||
|
||||
</td>
|
||||
<td width="70" valign="top" align="right" class="data"><?= miNumberFormat($oferta_pvp); ?> €</td>
|
||||
<td width="30" align="right" valign="top"><a href="oferta_add.php?id=<?= $oferta_id; ?>&precio=<?= $oferta_pvp; ?>&modelo=<?= $oferta_nombre; ?>" onMouseOver="MM_swapImage('comprar<?= $oferta_id; ?>','','_imgs/comprbm.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="_imgs/compram.gif" name="comprar<?= $oferta_id; ?>" width="16" height="13" border="0" id="comprar<?= $oferta_id; ?>"></a></td></tr>
|
||||
|
||||
<tr>
|
||||
<td bgcolor="#EDEEF1" colspan="5"><img src="_imgs/d.gif" width="2" height="1"></td></tr>
|
||||
<?php
|
||||
} // while
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td></tr>
|
||||
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||||
<tr>
|
||||
<td colspan="7"><?php include('pie.htm'); ?></td>
|
||||
</tr>
|
||||
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
2
pie.htm
@ -1,4 +1,4 @@
|
||||
<div align="center" class="pie">| <a href="index.php" class="pielink">home</a> | <a href="articulos.php?t=1" class="pielink">novedades</a> | <a href="tienda.php" class="pielink">tienda</a> | <a href="ocasion.php" class="pielink"><b>ocasión</b></a> |<br />
|
||||
<div align="center" class="pie">| <a href="index.php" class="pielink">inicio</a> | <a href="articulos.php?t=1" class="pielink">novedades</a> | <a href="tienda.php" class="pielink">tienda</a> | <a href="ocasion.php" class="pielink"><b>ocasión</b></a> |<br />
|
||||
| <a href="clavequien.php" class="pielink">quiénes somos</a> | <a href="articulos.php?t=2" class="pielink">learning center</a> | <a href="articulos.php?t=3" class="pielink">instalaciones</a> | <a href="articulos.php?t=4" class="pielink">curiosidades</a> | <a href="mailto:info@claveaudio.com" class="pielink">contacto</a> |<br>
|
||||
© Clave Audio, S.L. 2005 - 2008 • Padilla, 68 •
|
||||
28006 Madrid • <strong>91 401 63 07</strong> • <a href="clavelegal.php" class="pielink">Información LSSI y Protección
|
||||
|
||||
16
top.htm
@ -1,14 +1,14 @@
|
||||
<style type="text/css">
|
||||
<!--
|
||||
#menu {font:normal 11px Verdana, Arial, sans-serif;color:#555555;text-align:center;background:url(_imgs/banda.png) repeat-x;padding-bottom:3px;}
|
||||
#menu a{text-decoration:none;color:#555555;}
|
||||
#menu a:hover{text-decoration:underline;color:blue}
|
||||
-->
|
||||
</style>
|
||||
<table width="708" border="0" align="center" cellpadding="0" cellspacing="0" id="top">
|
||||
<tr>
|
||||
<td bgcolor="#000000" width="174"><a href="index.php"><img src="_imgs/logo.gif" width="174" height="60" border="0"></a></td>
|
||||
<td valign="bottom" id="menu">
|
||||
<a href="index.php">Home</a> | <a href="clavequien.php">Quiénes somos</a> | <a href="tienda.php">Tienda</a> | <a href="articulos.php?t=1">Novedades</a> | <a href="articulos2.php?t=2">Learning center</a> | <a href="articulos3.php?t=3">Instalaciones</a> | <a href="ocasion.php">Ocasión</a>
|
||||
<a href="index.php">Inicio</a> |
|
||||
<a href="clavequien.php">Quiénes somos</a> |
|
||||
<a href="tienda.php">Tienda</a> |
|
||||
<a href="articulos.php?t=1">Novedades</a> |
|
||||
<a href="ocasion.php">Ocasión</a> |
|
||||
<a href="ofertas.php">Ofertas</a> |
|
||||
<a href="articulos3.php?t=3">Instalaciones</a> |
|
||||
<a href="clavemarcas.php">Marcas</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||