Esempio n. 1
0
    if (count($products) > 0) {
        ?>
<h3>Resultados de la Busqueda</h3>
<table class="table table-bordered table-hover">
	<thead>
		<th>Codigo</th>
		<th>Nombre</th>
		<th>Unidad</th>
		<th>Precio unitario</th>
		<th>Cantidad</th>
		<th style="width:100px;"></th>
	</thead>
	<?php 
        $products_in_cero = 0;
        foreach ($products as $product) {
            $q = ProductData::getAllActive();
            ?>
	<?php 
            if ($q > 0) {
                ?>
		<form method="post" action="index.php?view=addtocart">
	<tr class="<?php 
                if ($q <= 5) {
                    echo "danger";
                }
                ?>
">
		<td style="width:80px;"><?php 
                echo $product->id;
                ?>
</td>
Esempio n. 2
0

	<div class="col-md-12">
		<div class="clearfix"></div>


<?php 
$page = 1;
if (isset($_GET["page"])) {
    $page = $_GET["page"];
}
$limit = 10;
if (isset($_GET["limit"]) && $_GET["limit"] != "" && $_GET["limit"] != $limit) {
    $limit = $_GET["limit"];
}
$products = ProductData::getAllActive();
if (count($products) > 0) {
    ?>

<div class="clearfix"></div>
<div class="box box-solid box-primary">
                                <div class="box-header">
                                    <h3 class="box-title"></h3>
                                </div>
                                <div class="box-body table-responsive">
                                <table class="table table-bordered table-hover datatable">
	<thead>
		<th>Codigo</th>
		<th>Nombre</th>
		<th>Precio</th>
		<th></th>