20/07/2008, 15:48
|
| | Fecha de Ingreso: julio-2008
Mensajes: 9
Antigüedad: 16 años, 6 meses Puntos: 0 | |
Respuesta: Problemas de compatibilidad entre IE y FireFox Si, en ambos navegadores la muestra. Estoy viendo que paso con el html, igual cualquier sugerencia bienvenida es.
comprar.php
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-image: url(BACKS/imagenes/patter.jpg);
background-attachment:fixed;
}
.style1 {color: #FFFFFF}
.style2 {
font-size: small;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style3 {
font-size: small;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-weight: bold;
}
-->
</style></head>
<body>
<div align="center">
<table width="460" border="0" cellpadding="0" cellspacing="0" background="BACKS/productsback/background.png">
<!--DWLayoutTable-->
<tr>
<td height="32" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="BACKS/productsback/header.png">
<!--DWLayoutTable-->
<tr>
<td width="13" height="5"></td>
<td width="433"></td>
<td width="14"></td>
</tr>
<tr>
<td height="20"></td>
<td valign="top"><div align="left"><span class="style1">COMPRA EXISTOSA </span></div></td>
<td></td>
</tr>
<tr>
<td height="7"></td>
<td></td>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td width="10" height="16"></td>
<td width="438"></td>
<td width="12"></td>
</tr>
<tr>
<td height="158"></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="BACKS/productsback/productpicback.png">
<!--DWLayoutTable-->
<tr>
<td width="9" height="4"></td>
<td width="163"></td>
<td width="15"></td>
<td width="239"></td>
<td width="12"></td>
</tr>
<tr>
<td height="148"></td>
<td colspan="3" valign="top"><p align="left" class="style3">Su compra ha sido confirmada.</p>
<p align="left" class="style3">En unos minutos nuestro servicio de atencion al cliente se comunicara con usted telefonicamente para confirmar la informacion suministrada.</p>
<p align="left" class="style3">Su compra consiste en:</p>
<?php
include("conectar.phtml");
$connect=Conectarse();
$codigo_producto = $_GET['imagenBotonCompra'];
$nombre_cliente = $_GET['nombrecliente'];
$cedula_cliente = $_GET['cedulacliente'];
$dircliente = $_GET['dircliente'];
$telcliente = $_GET['telcliente'];
$mail_cliente = $_GET['emailcliente'];
$results = mysql_query("SELECT productos.cantidad,productos.nombre,productos.descripcion,
productos.tipo_producto,proveedores.nombre_proveedor,
proveedores.direccion,proveedores.telefono,productos.precio,
productos.imagen_pequenya,
proveedores.id_proveedor FROM productos,proveedores
WHERE productos.id_proveedor=proveedores.id_proveedor
AND productos.id_producto='$codigo_producto'")
or die(mysql_error());
while ($row = mysql_fetch_assoc($results))
{
$producto=$row["nombre"];
$descripcion_producto_venta =$row["descripcion"];
$tipo_producto_venta=$row['tipo_producto'];
$precio_producto_venta=$row['precio'];
$url_imagen_pequenya=$row["imagen_pequenya"];
$cantidad=$row["cantidad"];
if($url_imagen_pequenya=="")
{$url_imagen_pequenya="BACKS/imagenes/productos/noimagen.jpg";}
$nombre_almacen=$row['nombre_proveedor'];
$direccion_almacen=$row['direccion'];
$telefono_almacen=$row['telefono'];
$codigo_almacen =$row['id_proveedor'];
}
$mail_casaquindio = '[email protected]';
//Mail a cliente
$header = 'From: ' . $mail_casaquindio . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$mensaje = "En unos minutos nuestro servicio de atencion al cliente se comunicara con usted telefonicamente para confirmar la informacion suministrada. \r\n";
$mensaje .= "Este mensaje fue enviado por www.casaquindio.com, \r\n";
$mensaje .= "Su nombre es: " . $nombre_cliente . " \r\n";
$mensaje .= "Su e-mail es: " . $mail_cliente . " \r\n";
$mensaje .= "El telefono es: " . $telcliente . " \r\n";
$mensaje .= "La dieccion es: " . $dircliente. " \r\n \r\n";
$mensaje .= "El producto solicitado tiene como codigo: " .$codigo_producto."\r\n\r\n";
$mensaje .= "El nombre del producto es: " .$producto. "\r\n";
$mensaje .= "Con un costo total de: " .$precio_producto_venta. "\r\n";
$mensaje .= "MUCHAS GRACIAS POR CONFIAR EN NOSOTROS. \r\n";
$mensaje .= "CASAQUINDIO.COM - EL PORTAL QUE HACE RENDIR TU DINERO. \r\n";
$mensaje .= "Enviado el " . date('Y-m-d', time());
$para = $mail_cliente;
$asunto = 'CONFIRMACION DE SERVICIOS';
mail($para, $asunto, utf8_decode($mensaje), $header);
//////////////////////////////////////////////////////////
//MAIL EMPRESA
$header2 = 'From: ' . $mail_cliente . " \r\n";
$header2 .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header2 .= "Mime-Version: 1.0 \r\n";
$header2 .= "Content-Type: text/plain";
$mensaje2 = "Confirmar Venta. \r\n";
$mensaje2 .= "Este mensaje fue enviado por www.casaquindio.com \r\n";
$mensaje2 .= "Nombre comprador: " . $nombre_cliente . " \r\n";
$mensaje2 .= "E-mail comprador: " . $mail_cliente . " \r\n";
$mensaje2 .= "Cedula comprador: " . $cedula_cliente . " \r\n";
$mensaje2 .= "Telefono comprador: " . $telcliente . " \r\n";
$mensaje2 .= "Dieccion comprador: " . $dircliente. " \r\n";
$mensaje2 .= "El producto solicitado tiene como codigo: $codigo_producto \r\n\r\n";
$mensaje2 .= "El nombre del producto es: " .$producto. "\r\n";
$mensaje2 .= "Con un costo total de: " .$precio_producto_venta. "\r\n";
$mensaje2 .= "Enviado el " . date('Y-m-d', time());
$para2 = "[email protected]";
$asunto2 = 'CONFIRMACION DE SERVICIOS';
mail($para2, $asunto2, utf8_decode($mensaje2), $header2);
/////////////////////////
//ACTUALIZAR VENTA
$fecha =date('Y-m-d', time());
mysql_query("INSERT INTO ventas (fecha_venta,id_producto,id_proveedor,id_cliente,nombre_cliente,direccion_cliente,telefono_cliente,email_cliente)
VALUES ('$fecha', '$codigo_producto', '$codigo_almacen', '$cedula_cliente','$nombre_cliente','$dircliente','$telcliente','$mail_cliente')")
or die(mysql_error());
$cantidad-=1;
mysql_query("update productos set cantidad=$cantidad where id_producto='$codigo_producto'")
or die(mysql_error());
echo "<input type=\"image\" name=\"imageField\" src=\"$url_imagen_pequenya\"/>";
echo "<br><font color = 'white'><b>Nombre Producto:</b> $producto .</font><br>";
echo "<font color = 'white'><b>Descripción:</b><br> $descripcion_producto_venta .</font><br>";
echo "<font color = 'white'><b>Precio Producto: $</b> $precio_producto_venta .</font><br>";
echo "<font color = 'white'><b>Del alamacen:</b> $nombre_almacen .</font><br>";
echo "<font color = 'white'><b>Telefono almacen:</b> $telefono_almacen .</font><br>";
echo "<font color = 'white'><b>Con el código interno:</b> $codigo_producto .</font><br>";
mysql_free_result($results);
mysql_close($connect);
?>
<p align="left" class="style3"> </p></td>
<td> </td>
</tr>
<tr>
<td height="6"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td height="18"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="269"></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="BACKS/productsback/MaintextBack.png">
<!--DWLayoutTable-->
<tr>
<td width="13" height="9"></td>
<td width="413"></td>
<td width="12"></td>
</tr>
<tr>
<td height="249"></td>
<td valign="top"><p align="left" class="style2"><br />
</p>
</td>
<td></td>
</tr>
<tr>
<td height="11"></td>
<td></td>
<td></td>
</tr>
</table></td>
<td></td>
</tr>
</table>
</div>
</body>
</html>
|