Você está na página 1de 2

<?php if ($this->cart->total_items() > 0) { ?

>
<?php echo form_open('ventas/updateCarrito/'
); ?>
<table class="table table-striped table-bord
ered table-condensed table-hover">
<tr>
<th>Cantidad</th>
<th>Descripcion</th>
<th class="text-right">Precio Unitar
io</th>
<th class="text-right">Sub-Total</th
>
<th class="text-center">Acciones</th
>
</tr>
<?php $i = 1; ?>
<?php foreach ($this->cart->contents() a
s $items): ?>
<input type="hidden" name="<?php ech
o 'id[]'; ?>" value="<?php echo $items['id']; ?>">
<input type="hidden" name="<?php ech
o 'rowid[]'; ?>" value="<?php echo $items['rowid']; ?>">
<tr>
<td>
<input type="text" name="qty
[]" value="<?php echo $items['qty']; ?>" maxlength="3" size="5">
</td>
<td>
<?php echo $items['name']; ?
>
</td>
<td class="text-right">S/. <?php
echo $this->cart->format_number($items['price']); ?></td>
<td class="text-right">S/. <?php
echo $this->cart->format_number($items['subtotal']); ?></td>
<td class="text-center">
<a href="<?php echo base_url
('ventas/deleteItemCarrito/' . $items['rowid']); ?>" class="btn btn-danger btn-x
s" ><span class="glyphicon glyphicon glyphicon-trash"></span> Eliminar</a>
</td>
</tr>
<?php $i++; ?>
<?php endforeach; ?>
<tr>
<td colspan="2"> </td>
<td class="text-right"><strong>Total
</strong></td>
<td class="text-right"><strong>S/. <
?php echo $this->cart->format_number($this->cart->total()); ?></strong></td>
</tr>
</table>
<div class="espacio"></div>
<div class="form-group" style="margin-left:
5px;">
<button type="submit" class="btn btn-inf
o update_cart">
<span class="glyphicon glyphicon gly
phicon-refresh"></span> Actualizar Lista
</button>

<a href="<?php echo base_url('ventas/del


eteCarrito/'); ?>" class="btn btn-danger empty_cart">
<span class="glyphicon glyphicon gly
phicon-trash"></span> Eliminar Lista
</a>
</div>
<?php echo form_close(); ?>
<?php } ?>

Você também pode gostar