Viewing file: reporte_ventas_excel.php (3.75 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<h1><?= $titulo ?></h1> <div class="col-md-12 form-inline"> <h1>VENTAS DIARIAS</h1>
<form action="<?php echo base_url()?>home/reporteVentasDiariasExcel/" method="post"> <label>FECHA INICIAL:</label> <input name="datapicker4" id="datepicker4" value=""> <label>FECHA FINAL:</label> <input name="datapicker5" id="datepicker5" value=""> <input type="submit" class="btn btn-success" value="VENTAS" /> <br> </form> <h1>PRODUCTOS VENDIDOS</h1>
<form action="<?php echo base_url()?>home/reporteProductosExcel/" method="post"> <label>FECHA INICIAL:</label> <input name="datapicker7" id="datepicker7" value=""> <label>FECHA FINAL:</label> <input name="datapicker8" id="datepicker8" value=""> <input type="submit" class="btn btn-info" value="PRODUCTOS VENDIDOS" />
</form> <h1>GRAFICO SEMANAL</h1> <div id="ventasMensuales" style="min-width: 300px; height: 500px; margin: 0 auto"></div> <script type="text/javascript"> $( "#datepicker7" ).datepicker({ dateFormat: "yy-m-dd", // Primer dia de la semana El lunes firstDay: 1, // Dias Largo en castellano // Cuando seleccionamos la fecha esta se pone en el campo Input onSelect: function(dateText) {
} });
$( "#datepicker8" ).datepicker({ dateFormat: "yy-m-dd", // Primer dia de la semana El lunes firstDay: 1, // Dias Largo en castellano // Cuando seleccionamos la fecha esta se pone en el campo Input onSelect: function(dateText) {
} });
$( "#datepicker5" ).datepicker({ dateFormat: "yy-m-dd", // Primer dia de la semana El lunes firstDay: 1, // Dias Largo en castellano // Cuando seleccionamos la fecha esta se pone en el campo Input onSelect: function(dateText) {
} }); $( "#datepicker4" ).datepicker({ dateFormat: "yy-m-dd", // Primer dia de la semana El lunes firstDay: 1, // Dias Largo en castellano // Cuando seleccionamos la fecha esta se pone en el campo Input onSelect: function(dateText) {
} });
$(function () { $('#ventasMensuales').highcharts({ chart: { type: 'column' }, title: { text: 'PEDIDOS/MES' }, xAxis: { type: 'category', labels: { rotation: -45, style: { fontSize: '13px', fontFamily: 'Verdana, sans-serif' } } }, yAxis: { min: 0, title: { text: 'Acumulado en Pesos' } }, legend: { enabled: false }, tooltip: { pointFormat: 'Ventas acumuladas: <b>{point.y:.1f} pesos</b>' }, dataLabels: { enabled: true, rotation: 0, color: '#FFFFFF', align: 'center', format: '{point.y:.1f}', // one decimal y: 100, // 10 pixels down from the top style: { fontSize: '13px', fontFamily: 'Verdana, sans-serif' } }, series: [{ name: 'Acumulado', data: [ <?php $resultado=$this->consultas_model->ventasSemanales(); echo($resultado); foreach($resultado as $file): echo ($file['cant'].","); endforeach; ?> ]
}] }); }); </script>
|