Viewing file: reporte_ventas_view.php (3.11 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="content-wrapper" style="min-height: 946px;"> <div style="margin-left:20px;"> <section class="content-header"> <div class="box"> <div class="box-header"> <h1 class="blue"><?php echo($titulo); ?></h1> </div> <div class="box-content"> <div class="row"> <div class="col-md-12 form-inline"> <form action="<?php echo base_url()?>Reportes/reporteVentas/" method="post"> <strong>Filtrado Clientes:</strong> <select name="comboCliente" id="comboCliente" style="width:200px" class="form-control"> <option><?php echo($nombre);?></option> <?php $respuestaCombo=$this->consultas_model->getClientes(); foreach($respuestaCombo as $file):?> <option><?php if ($nombre != $file->nombre) echo ($file->nombre); ?></option> <?php endforeach;?> </select> <input type="submit" class="btn btn-primary btn-lg" value="Filtrar" /> </form> </section> <section class="content"> <div id="ventaImagen" style="min-width: 200px; height: 450px; margin: 0 auto"></div> </section> </div> <script type="text/javascript"> $(function () { $('#ventaImagen').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>' }, series: [{ name: 'Acumulado', data: [ <?php $resultado=$this->consultas_model->ventas($filtro); foreach($resultado as $file): echo ("['".$file['mes']."',"); echo ($file['cant']." ],"); // echo ($file['porcentaje']."%"); endforeach; ?> ], 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' } } }] }); });
</script>
|