Viewing file: confirmar-datos-pedido.php (40.59 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? $pagina_actual="administrar-productos"; $categoria_actual="productos"; require_once("includes/config.php"); require_once("includes/funciones.php");
$mail_cabecera=' <!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=UTF-8" /> <title>Punto de Mascotas</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> </head> <body style="margin: 0; padding: 0;"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="padding: 10px 0 30px 0;"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc; border-collapse: collapse;"> <tr> <td align="center" bgcolor="#EA6E6E" style="padding: 20px 0 20px 0; color: #153643; font-size: 28px; font-weight: bold; font-family: Arial, sans-serif;"> <img src="'.$url_instalacion.'img/logo.png" alt="" width="109" height="96" style="display: block;" /> </td> </tr> <tr> <td bgcolor="#ffffff" style="padding: 40px 30px 40px 30px;"> '; $mail_pie = ' </td> </tr> </table> </td> </tr> </table>
</body> </html> ';
require('../PHPMailer-master/PHPMailerAutoload.php');
if (isset($_POST["id"])){ extract($_POST, EXTR_SKIP);
$result=$mysqli->query(" SELECT c.id, c.fecha, c.detalle, c.total, c.estado, u.nombre, u.apellido, u.email, u.ciudad, c.codigo, c.fecha_envio, c.tipo, c.tipo_envio, c.fecha_envio, c.horario_envio, c.calle_envio, c.numero_envio, c.telefono_envio, c.info_envio, c.sucursal_envio, c.empresa_envio, c.web_empresa_envio, c.codigo_envio FROM cotizacion c INNER JOIN usuario u ON u.id=c.id_usuario WHERE c.id='$id' "); $cotizacion = mysqli_fetch_assoc($result);
if ($cotizacion["tipo"]=='web'){ if ($cotizacion["tipo_envio"]=='sucursal'){ $nuevo_estado='retira en local contrareembolso'; } if ($cotizacion["tipo_envio"]=='a_domicilio'){ $nuevo_estado='envio a domicilio contrareembolso'; } } else { if ($cotizacion["tipo_envio"]=='sucursal'){ $nuevo_estado='finalizado'; } if ($cotizacion["tipo_envio"]=='a_domicilio'){ $nuevo_estado='envio a domicilio mercadopago'; } if ($cotizacion["tipo_envio"]=='expreso'){ $nuevo_estado='expreso mercadopago'; } } if ($calle_envio == ''){ $calle_envio=$calle_envio_expreso; } if ($numero_envio == ''){ $numero_envio=$numero_envio_expreso; } if ($telefono_envio == ''){ $telefono_envio=$telefono_envio_expreso; } if ($info_envio == ''){ $info_envio=$info_envio_expreso; } if ($fecha_envio == ''){ $fecha_envio=$fecha_envio_expreso; } if ($horario_envio == ''){ $horario_envio=$horario_envio_expreso; } $result=$mysqli->query(" UPDATE cotizacion SET fecha_envio='".$fecha_envio."', estado='".$nuevo_estado."', horario_envio='".utf8_decode($horario_envio)."', calle_envio='".utf8_decode($calle_envio)."', numero_envio='".utf8_decode($numero_envio)."', telefono_envio='".utf8_decode($telefono_envio)."', info_envio='".utf8_decode($info_envio)."', sucursal_envio='".utf8_decode($sucursal_envio)."', empresa_envio='".utf8_decode($empresa_envio)."', web_empresa_envio='".utf8_decode($web_empresa_envio)."', codigo_envio='".utf8_decode($codigo_envio)."' WHERE id='$id' ");
$result=$mysqli->query(" SELECT c.id, c.fecha, c.detalle, c.total, c.estado, u.nombre, u.apellido, u.email, u.ciudad, c.codigo, c.fecha_envio, c.tipo, c.tipo_envio, c.fecha_envio, c.horario_envio, c.calle_envio, c.numero_envio, c.telefono_envio, c.info_envio, c.sucursal_envio, c.empresa_envio, c.web_empresa_envio, c.codigo_envio FROM cotizacion c INNER JOIN usuario u ON u.id=c.id_usuario WHERE c.id='$id' "); $cotizacion = mysqli_fetch_assoc($result);
$productos = $mysqli->query(" SELECT p.id, p.titulo, rpc.cantidad, rpc.precio FROM producto p INNER JOIN renglon_producto_cotizacion rpc ON rpc.id_producto=p.id WHERE rpc.id_cotizacion='".$id."' ");
$id_cotizacion=$id; $titulo = utf8_decode('Confirmación de compra'); $nombre=utf8_encode($cotizacion["nombre"]);
// mensaje cabecera $mensaje = $mail_cabecera; //mensaje web
$item=$cotizacion;//para reutilizar codigo
if ($cotizacion["tipo"]=='web'){ $titulo = utf8_decode('Pedido disponible para retirar'); if ($cotizacion["tipo_envio"]!='a_domicilio'){ $mensaje .= ' <!-- MENSAJE 1 --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Hola '.$nombre.'!</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Confirmación para la entrega y pago de su compra. (esta información la podrás ver también desde tu cuenta en nuestra web) </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Orden de compra: N° '.$id_cotizacion.'</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Fecha: '.ver_fecha_mysql_lindo($cotizacion["fecha_envio"]).' </td> </tr> ';
$total=0; while ($producto = mysqli_fetch_assoc($productos)){ $total+=$producto["precio"]*$producto["cantidad"]; $mensaje.=' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> '.$producto["cantidad"].' - '.$producto["titulo"].' ( $ '.$producto["precio"].' P/U ) - Código del producto: '.$producto["id"].' </td> </tr> '; } $mensaje .= ' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Total de la compra: $ '.$total.' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>ESTADO DE LA COMPRA Y MÉTODO DE ENVÍO: </b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> '.$estados_pedido[$nuevo_estado].' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Gracias por usar nuestros servicios, cualquier duda puede escribirnos a '.$email_consultas[0].' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Saludos!<br /><b>El equipo de '.$nombre_empresa.'</b> </td> </tr> </table> <!-- FIN MENSAJE 1 --> '; //mensaje pie } else { $titulo = utf8_decode('Confirmación para entrega de pedido'); $mensaje .= ' <!-- MENSAJE 1 --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Hola '.$nombre.'!</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Confirmación para la entrega y pago de su compra. (esta información la podrás ver también desde tu cuenta en nuestra web) </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Orden de compra: N° '.$id_cotizacion.'</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Fecha: '.date("d/m/Y").' </td> </tr> ';
$total=0; while ($producto = mysqli_fetch_assoc($productos)){ $total+=$producto["precio"]*$producto["cantidad"]; $mensaje.=' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> '.$producto["cantidad"].' - '.$producto["titulo"].' ( $ '.$producto["precio"].' P/U ) - Código del producto: '.$producto["id"].' </td> </tr> '; } $mensaje .= ' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Total de la compra: $ '.$total.' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>ESTADO DE LA COMPRA Y MÉTODO DE ENVÍO: </b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Día de envío: '.ver_fecha_mysql_lindo($item["fecha_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Horario de entrega: '.($item["horario_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Calle: '.($item["calle_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Número: '.($item["numero_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Teléfono: '.($item["telefono_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Información adicional: '.($item["info_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Gracias por usar nuestros servicios, cualquier duda puede escribirnos a '.$email_consultas[0].' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Saludos!<br /><b>El equipo de '.$nombre_empresa.'</b> </td> </tr> </table> <!-- FIN MENSAJE 1 --> '; //mensaje pie }
} else { //si es por mercadopago
if ($item["tipo_envio"]=='a_domicilio'){
$mensaje .= ' <!-- MENSAJE 1 --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Hola '.$nombre.'!</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Gracias por su compra, copiamos el pedido realizado (esta información la podrá ver también desde tu cuenta en nuestra web.) </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Orden de compra: N° '.$id_cotizacion.'</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Fecha: '.date("d/m/Y").' </td> </tr> ';
$total=0; while ($producto = mysqli_fetch_assoc($productos)){ $total+=$producto["precio"]*$producto["cantidad"]; $mensaje.=' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> '.$producto["cantidad"].' - '.$producto["titulo"].' ( $ '.$producto["precio"].' P/U ) - Código del producto: '.$producto["codigo"].' </td> </tr> '; }
$mensaje .= ' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Total de la compra: $ '.$total.' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>METODO DE PAGO Y FORMA DE ENVIO</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> COMPRA PAGADA </td> </tr>
<tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Día de envío: '.ver_fecha_mysql_lindo($item["fecha_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Horario de entrega: '.($item["horario_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Calle: '.($item["calle_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Número: '.($item["numero_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Teléfono: '.($item["telefono_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Información adicional: '.($item["info_envio"]).' </td> </tr>
<tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Gracias por usar nuestros servicios, cualquier duda puede escribirnos a '.$email_consultas[0].' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Saludos!<br /><b>El equipo de '.$nombre_empresa.'</b> </td> </tr> </table> <!-- FIN MENSAJE 1 --> '; } //fin si envia a domicilio
if ($item["tipo_envio"]=='expreso'){ $titulo = utf8_decode('Confirmación de pedido despachado'); $mensaje .= ' <!-- MENSAJE 1 --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Hola '.$nombre.'!</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Gracias por su compra, copiamos el pedido realizado (esta información la podrá ver también desde tu cuenta en nuestra web.) </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>Orden de compra: N° '.$id_cotizacion.'</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Fecha: '.date("d/m/Y").' </td> </tr> ';
$total=0; while ($producto = mysqli_fetch_assoc($productos)){ $total+=$producto["precio"]*$producto["cantidad"]; $mensaje.=' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> '.$producto["cantidad"].' - '.$producto["titulo"].' ( $ '.$producto["precio"].' P/U ) - Código del producto: '.$producto["codigo"].' </td> </tr> '; }
$mensaje .= ' <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Total de la compra: $ '.$total.' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> <b>METODO DE PAGO Y FORMA DE ENVIO</b> </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #1a888b; font-family: Arial, sans-serif; font-size: 18px;"> COMPRA PAGADA </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> ENVIO A TRAVES DE EXPRESO ('.$item["empresa_envio"].') </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Día de envío: '.ver_fecha_mysql_lindo($item["fecha_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Código de seguimiento: '.($item["codigo_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Dirección de traking: '.($item["web_empresa_envio"]).' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Gracias por usar nuestros servicios, cualquier duda puede escribirnos a '.$email_consultas[0].' </td> </tr> <tr> <td style="padding: 0px 0 10px 0; color: #153643; font-family: Arial, sans-serif; font-size: 12px; line-height: 20px;"> Saludos!<br /><b>El equipo de '.$nombre_empresa.'</b> </td> </tr> </table> <!-- FIN MENSAJE 1 --> '; } //fin si envia a traves de expreso }//fin si es mercado pago
$mensaje .= $mail_pie; //para el usuario $php_email = new PHPMailer();
$php_email->From = $email_consultas; $php_email->FromName = $nombre_empresa; $php_email->Subject = $titulo; $php_email->Body = utf8_decode($mensaje); $php_email->AddAddress( $cotizacion["email"] ); $php_email->IsHTML(true);
$php_email->Send();
header('Location: administrar-pedidos.php?exito=si'); }
if (isset($_GET["id"])){ $id=cadena_segura($_GET["id"],11); $result=$mysqli->query(" SELECT c.id, c.fecha, c.total, u.email FROM pedido_carrito c INNER JOIN usuario_carrito u ON u.id=c.id_usuario_carrito WHERE c.id='$id' "); $item = mysqli_fetch_assoc($result); $productos = $mysqli->query(" SELECT p.id, p.nombre, rpc.cantidad, rpc.precio FROM producto p INNER JOIN renglon_pedido_producto rpc ON rpc.id_producto=p.id WHERE rpc.id_pedido='".$item["id"]."' "); ?> <div class="modal-content"> <form method="post" action="confirmar-datos-pedido.php"> <input type="hidden" name="id" value="<?=$id?>"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title"></h4> </div> <div class="modal-body"> <div class="form-group"> <h4>Orden de compra #<?=$item["id"]?><?=$item["collection_id"]!=""?" - CODIGO DE VERIFICACION DE MERCADOPAGO: ".$item["collection_id"]:""?></h4> <table border="1" class="table-padding-10"> <thead> <tr><th>Codigo</th> <th> Producto </th> <th> Cant</th> <th> Precio/u</th> <th> Total </th> </tr> </thead> <tbody> <? while ($producto = mysqli_fetch_assoc($productos)){?> <tr> <td> #<?=$producto["id"]?> </td> <td> <?=utf8_encode($producto["nombre"])?> </td> <td> <?=$producto["cantidad"]?> </td> <td> <?=$producto["precio"]?> </td> <td> <?=$producto["precio"]*$producto["cantidad"]?> </td> </tr> <? }?> </tbody> </table> </div>
<div class="form-horizontal">
<div class="form-group"> <label for="" class="col-sm-3 control-label">Tipo de envío</label> <div class="col-sm-9"> <select name="tipo_envio" class="form-control"> <option value="sucursal" <?=$item['tipo_envio']=='sucursal'?"selected":""?>>Retiro en sucursal</option> <option value="a_domicilio" <?=$item['tipo_envio']=='a_domicilio'?"selected":""?>>Envio a domicilio</option> <option value="expreso" <?=$item['tipo_envio']=='expreso'?"selected":""?>>Envío por expreso</option> </select> </div> </div>
<div class="sucursal col-sm-9 col-sm-offset-3"> <div class="form-group"> <label> <input type="radio" name="sucursal_envio" value="Tandil" <?=$item['sucursal_envio']=='Tandil'?"checked":""?>> Sucursal Tandil | Av. Colon 1101 <br> <span class="espacio-radio">Horario de entrega: </span> <br> <span class="espacio-radio">Lunes a viernes de 9 a 12 y 15 a 20hs</span> </label> </div> <div class="form-group"> <label> <input type="radio" name="sucursal_envio" value="Las Flores" <?=$item['sucursal_envio']=='Las Flores'?"checked":""?>> Sucursal Las Flores | San Martin 750 <br> <span class="espacio-radio">Horario de entrega: </span> <br> <span class="espacio-radio">Lunes a viernes de 9 a 12 y 15 a 20hs</span> </label> </div> </div>
<div class="a_domicilio">
<div class="form-group"> <label for="" class="col-sm-3 control-label">Día de envío</label> <div class="col-sm-9"> <input type="date" class="form-control top-buffer-sm radius-none" name="fecha_envio" value="<?=($item["fecha_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Horario de entrega</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="Ej.: de 8 a 12hs" name="horario_envio" value="<?=($item["horario_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Calle</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="" name="calle_envio" value="<?=($item["calle_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Número</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="" name="numero_envio" value="<?=($item["numero_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Teléfono</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="" name="telefono_envio" value="<?=($item["telefono_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Información adicional</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="Ej.: Piso 5, Dpto. A, Timbre 4." name="info_envio" value="<?=($item["info_envio"])?>"></input> </div> </div>
</div>
<div class="expreso"> <div class="form-group"> <label for="" class="col-sm-3 control-label">Empresa de transporte</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" name="empresa_envio" value="<?=($item["empresa_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Web Empresa de transporte</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" name="web_empresa_envio" value="<?=($item["web_empresa_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Código de seguimiento</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" name="codigo_envio" value="<?=($item["codigo_envio"])?>"></input> </div> </div>
<div class="form-group"> <label for="" class="col-sm-3 control-label">Día de envío</label> <div class="col-sm-9"> <input type="date" class="form-control top-buffer-sm radius-none" name="fecha_envio_expreso" value="<?=($item["fecha_envio"])?>"></input> </div> </div>
<div class="form-group"> <label for="" class="col-sm-3 control-label">Calle</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="" name="calle_envio_expreso" value="<?=($item["calle_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Número</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="" name="numero_envio_expreso" value="<?=($item["numero_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Teléfono</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="" name="telefono_envio_expreso" value="<?=($item["telefono_envio"])?>"></input> </div> </div> <div class="form-group"> <label for="" class="col-sm-3 control-label">Información adicional</label> <div class="col-sm-9"> <input type="text" class="form-control top-buffer-sm radius-none" placeholder="Ej.: Piso 5, Dpto. A, Timbre 4." name="info_envio_expreso" value="<?=($item["info_envio"])?>"></input> </div> </div>
</div>
<h4>Datos de usuario</h4>
<div class="form-group"> <label class="col-sm-3">Nombre y apellido: </label> <div class="col-sm-9"> <p><?=utf8_encode($item["nombre"])?> <?=utf8_encode($item["apellido"])?> (<?=utf8_encode($item["ciudad"])?>)</p> </div> </div>
<div class="form-group"> <label class="col-sm-3">Teléfono</label> <div class="col-sm-9"> <p><?=utf8_encode($item["telefono_envio"])?></p> </div> </div>
<div class="form-group"> <label class="col-sm-3">Email: </label> <div class="col-sm-9"> <p><?=utf8_encode($item["email"])?></p> </div> </div>
</div> </div> <div class="modal-footer"> <? if ($item["tipo_envio"]=="sucursal"){?> <? if ($item["tipo"]=='mercadopago'){?> <p class="text-info">Al confirmar el pedido, este se moverá a pedidos finalizados</p> <? } else {?> <p class="text-info">Al confirmar el pedido, le llegará un aviso al cliente de que el pedido ya está disponible para retiro en la sucursal</p> <? } }?> <? if ($item["tipo_envio"]=="a_domicilio"){?> <p class="text-info">Al confirmar el pedido, le llegará un aviso al cliente del día y horario de entrega</p> <? }?> <? if ($item["tipo_envio"]=="expreso"){?> <p class="text-info">Al confirmar el pedido, le llegará un aviso al cliente de que el pedido ya fue despachado</p> <? }?> <a href="#" class="btn btn-white" data-dismiss="modal">Cerrar</a> <input type="submit" class="btn btn-primary" value="Confirmar"> </div> </form> </div><!-- /.modal-content --> <? }?>
|