Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
300 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,71 @@ | ||
<!-- Content Wrapper. Contains page content --> | ||
<div class="content-wrapper"> | ||
<!-- Content Header (Page header) --> | ||
|
||
<section class="content-header"> | ||
|
||
<h1> | ||
Tablero | ||
|
||
Tablero | ||
|
||
<small>Panel de Control</small> | ||
|
||
</h1> | ||
|
||
<ol class="breadcrumb"> | ||
<li><a href="inicio"><i class="fa fa-dashboard"></i> Inicio</a></li> | ||
<li class="active">Tablero</li> | ||
|
||
<li><a href="inicio"><i class="fa fa-dashboard"></i> Inicio</a></li> | ||
|
||
<li class="active">Tablero</li> | ||
|
||
</ol> | ||
|
||
</section> | ||
|
||
<!-- Main content --> | ||
<section class="content"> | ||
|
||
<!-- Default box --> | ||
<div class="box"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title">Title</h3> | ||
<div class="box-tools pull-right"> | ||
<button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" | ||
title="Collapse"> | ||
<i class="fa fa-minus"></i></button> | ||
<button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove"> | ||
<i class="fa fa-times"></i></button> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
|
||
<?php | ||
|
||
include "inicio/cajas-superiores.php"; | ||
|
||
?> | ||
|
||
</div> | ||
|
||
<div class="row"> | ||
|
||
<div class="col-lg-12"> | ||
|
||
<?php | ||
|
||
<div class="box-body"> | ||
Start creating your amazing application! | ||
</div> | ||
<!-- /.box-body --> | ||
<div class="box-footer"> | ||
Footer | ||
</div> | ||
<!-- /.box-footer--> | ||
include "reportes/grafico-ventas.php"; | ||
|
||
?> | ||
|
||
</div> | ||
|
||
<div class="col-lg-6"> | ||
|
||
<?php | ||
|
||
include "reportes/productos-mas-vendidos.php"; | ||
|
||
?> | ||
|
||
</div> | ||
|
||
<div class="col-lg-6"> | ||
|
||
<?php | ||
|
||
include "inicio/productos-recientes.php"; | ||
|
||
?> | ||
|
||
</div> | ||
|
||
</div> | ||
<!-- /.box --> | ||
|
||
</section> | ||
<!-- /.content --> | ||
|
||
</div> | ||
<!-- /.content-wrapper --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<?php | ||
|
||
$item = null; | ||
$valor = null; | ||
$orden = "id"; | ||
|
||
$ventas = ControladorVentas::ctrSumaTotalVentas(); | ||
|
||
$categorias = ControladorCategorias::ctrMostrarCategorias($item, $valor); | ||
$totalCategorias = count($categorias); | ||
|
||
$clientes = ControladorClientes::ctrMostrarClientes($item, $valor); | ||
$totalClientes = count($clientes); | ||
|
||
$productos = ControladorProductos::ctrMostrarProductos($item, $valor, $orden); | ||
$totalProductos = count($productos); | ||
|
||
?> | ||
|
||
|
||
|
||
<div class="col-lg-3 col-xs-6"> | ||
|
||
<div class="small-box bg-green"> | ||
|
||
<div class="inner"> | ||
|
||
<h3>S/. <?php echo number_format($ventas["total"],2); ?></h3> | ||
|
||
<p>Ventas</p> | ||
|
||
</div> | ||
|
||
<div class="icon"> | ||
|
||
<i class="ion ion-social-usd"></i> | ||
|
||
</div> | ||
|
||
<a href="ventas" class="small-box-footer"> | ||
|
||
Más info <i class="fa fa-arrow-circle-right"></i> | ||
|
||
</a> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class="col-lg-3 col-xs-6"> | ||
|
||
<div class="small-box bg-aqua"> | ||
|
||
<div class="inner"> | ||
|
||
<h3><?php echo number_format($totalCategorias); ?></h3> | ||
|
||
<p>Categorías</p> | ||
|
||
</div> | ||
|
||
<div class="icon"> | ||
|
||
<i class="ion ion-clipboard"></i> | ||
|
||
</div> | ||
|
||
<a href="categorias" class="small-box-footer"> | ||
|
||
Más info <i class="fa fa-arrow-circle-right"></i> | ||
|
||
</a> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class="col-lg-3 col-xs-6"> | ||
|
||
<div class="small-box bg-orange"> | ||
|
||
<div class="inner"> | ||
|
||
<h3><?php echo number_format($totalClientes); ?></h3> | ||
|
||
<p>Clientes</p> | ||
|
||
</div> | ||
|
||
<div class="icon"> | ||
|
||
<i class="ion ion-person-add"></i> | ||
|
||
</div> | ||
|
||
<a href="clientes" class="small-box-footer"> | ||
|
||
Más info <i class="fa fa-arrow-circle-right"></i> | ||
|
||
</a> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class="col-lg-3 col-xs-6"> | ||
|
||
<div class="small-box bg-navy"> | ||
|
||
<div class="inner"> | ||
|
||
<h3><?php echo number_format($totalProductos); ?></h3> | ||
|
||
<p>Productos</p> | ||
|
||
</div> | ||
|
||
<div class="icon"> | ||
|
||
<i class="ion ion-ios-cart"></i> | ||
|
||
|
||
</div> | ||
|
||
<a href="productos" class="small-box-footer"> | ||
|
||
Más info <i class="fa fa-arrow-circle-right"></i> | ||
|
||
</a> | ||
|
||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php | ||
|
||
$item = null; | ||
$valor = null; | ||
$orden = "id"; | ||
|
||
$productos = ControladorProductos::ctrMostrarProductos($item, $valor, $orden); | ||
|
||
?> | ||
|
||
<div class="box box-primary"> | ||
|
||
<div class="box-header with-border"> | ||
|
||
<h3 class="box-title">Productos Recientemente Agregados</h3> | ||
|
||
<div class="box-tools pull-right"> | ||
|
||
<button type="button" class="btn btn-box-tool" data-widget="collapse"> | ||
|
||
<i class="fa fa-minus"></i> | ||
|
||
</button> | ||
|
||
<button type="button" class="btn btn-box-tool" data-widget="remove"> | ||
|
||
<i class="fa fa-times"></i> | ||
|
||
</button> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class="box-body"> | ||
|
||
<ul class="products-list product-list-in-box"> | ||
|
||
<?php | ||
|
||
for($i = 0; $i < 10; $i++){ | ||
|
||
echo '<li class="item"> | ||
<div class="product-img"> | ||
<img src="'.$productos[$i]["imagen"].'" alt="Product Image"> | ||
</div> | ||
<div class="product-info"> | ||
<a href="" class="product-title"> | ||
'.$productos[$i]["descripcion"].' | ||
<span class="label label-warning pull-right">S/. '.$productos[$i]["precio_venta"].'</span> | ||
</a> | ||
</div> | ||
</li>'; | ||
|
||
} | ||
|
||
?> | ||
|
||
</ul> | ||
|
||
</div> | ||
|
||
<div class="box-footer text-center"> | ||
|
||
<a href="productos" class="uppercase">Ver todos los productos</a> | ||
|
||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters