?> camisetas</td> </tr> <tr class="order-total"> <th style="width: 50%;">Estado</th> <td><?php echo $pedido['estado']; ?> </td> </tr> <tr class="order-total"> <th style="width: 50%;">Fecha pedido</th> <td><?php echo cambiaFormatoFecha($pedido['fecha_pedido']); ?> </td> </tr> </tbody> </table> </div> <div class="cart_totals" style=" float: none; width: 100%;"> <h2>Datos de envío</h2> <table cellspacing="0"> <tbody> <tr class="cart-subtotal"> <th style="width: 50%;">Dirección</th> <td><?php
/** * Crea la tabla de los datos generales del pedido * @param Array $data Datos del pedido */ function CreaTablaPedido($data) { $CI = get_instance(); //CABECERA tabla // Colores, ancho de línea y fuente en negrita $this->SetFillColor(26, 188, 156); //Verde agua $this->SetTextColor(255); $this->SetDrawColor(255, 255, 255); $this->SetLineWidth(0.3); $this->SetFont('', 'B'); //Datos $header = array('IMPORTE TOTAL', 'CANTIDAD TOTAL', 'ESTADO', 'FECHA PEDIDO'); $w = array(50, 50, 40, 50); $this->Cell($w[0], 7, utf8_decode($header[0]), 1, 0, 'C', true); $this->Cell($w[1], 7, utf8_decode($header[1]), 1, 0, 'C', true); $this->Cell($w[2], 7, utf8_decode($header[2]), 1, 0, 'C', true); $this->Cell($w[3], 7, utf8_decode($header[3]), 1, 0, 'C', true); $this->Ln(); //CUERPO // Restauración de colores y fuentes $this->SetFillColor(223, 223, 223); //gris $this->SetTextColor(0); $this->SetFont('', '', 10); // Datos $CI =& get_instance(); $CI->load->helper('Fechas'); $fill = true; //Para que salga en gris la fila $this->Cell($w[0], 6, utf8_decode(round($data['importe'] * $CI->session->userdata('rate'), 2)) . " " . $CI->session->userdata('currency'), 'LR', 0, 'L', $fill); $this->Cell($w[1], 6, utf8_decode($data['cantidad_total'] . " camisetas"), 'LR', 0, 'L', $fill); $this->Cell($w[2], 6, utf8_decode($data['estado']), 'LR', 0, 'L', $fill); $this->Cell($w[3], 6, utf8_decode(cambiaFormatoFecha($data['fecha_pedido'])), 'LR', 0, 'L', $fill); // Línea de cierre $this->Cell(array_sum($w), 0, '', 'T'); $this->Ln(10); //Salto de linea }